Closed Bug 1801746 Opened 3 years ago Closed 3 years ago

AttributeError: 'NoneType' object has no attribute 'llvm_version'

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(firefox-esr102 unaffected, firefox107 unaffected, firefox108 wontfix, firefox109 fixed)

RESOLVED FIXED
109 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox107 --- unaffected
firefox108 --- wontfix
firefox109 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

When rust is not installed, configure fails with:

 0:06.44 checking for rustc... not found
 0:06.44 checking for cargo... not found
 0:06.44 Traceback (most recent call last):
 0:06.44   File "/root/mozilla-unified/configure.py", line 350, in <module>
 0:06.44     sys.exit(main(sys.argv))
 0:06.44   File "/root/mozilla-unified/configure.py", line 132, in main
 0:06.44     sandbox.run(os.path.join(os.path.dirname(__file__), "moz.configure"))
 0:06.44   File "/root/mozilla-unified/python/mozbuild/mozbuild/configure/__init__.py", line 567, in run
 0:06.44     func(*args)
 0:06.44   File "/root/mozilla-unified/python/mozbuild/mozbuild/configure/__init__.py", line 618, in _value_for
 0:06.44     return self._value_for_depends(obj)
 0:06.44   File "/root/mozilla-unified/python/mozbuild/mozbuild/util.py", line 1063, in method_call
 0:06.44     cache[args] = self.func(instance, *args)
 0:06.44   File "/root/mozilla-unified/python/mozbuild/mozbuild/configure/__init__.py", line 627, in _value_for_depends
 0:06.44     value = obj.result()
 0:06.44   File "/root/mozilla-unified/python/mozbuild/mozbuild/util.py", line 1063, in method_call
 0:06.44     cache[args] = self.func(instance, *args)
 0:06.44   File "/root/mozilla-unified/python/mozbuild/mozbuild/configure/__init__.py", line 163, in result
 0:06.44     return self._func(*resolved_args)
 0:06.44   File "/root/mozilla-unified/python/mozbuild/mozbuild/configure/__init__.py", line 1310, in wrapped
 0:06.44     return new_func(*args, **kwargs)
 0:06.44   File "/root/mozilla-unified/build/moz.configure/rust.configure", line 132, in <lambda>
 0:06.44     and c_compiler.version.major > rustc_info.llvm_version.major
 0:06.44 AttributeError: 'NoneType' object has no attribute 'llvm_version'
*** Fix above errors and then restart with "./mach build"

Set release status flags based on info from the regressing bug 1791476

Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/76f0556ef83c Fail more gracefully when rustc is not found after bug 1791476. r=firefox-build-system-reviewers,ahochheiden
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: