Closed Bug 1768428 Opened 2 years ago Closed 2 years ago

AttributeError raised in `js/moz.configure` (`wasm_verify_serialization_for_size`) when running `./mach build` with `--enable-debug`

Categories

(Core :: JavaScript: WebAssembly, defect, P1)

defect

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox100 --- unaffected
firefox101 --- unaffected
firefox102 --- fixed

People

(Reporter: willdurand, Assigned: willdurand)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

On Linux, I ran into a build error when trying to build FF Desktop in artifact mode with debug enabled (it works when debug isn't enabled). Here is my mozconfig:

# Automatically download and use compiled C++ components:
ac_add_options --enable-artifact-builds

# Enable debug versions of the pre-built binary artifacts:
ac_add_options --enable-debug

Running ./mach build produces this stack trace:

 [...]
 0:01.78 checking for Python 3... /workspace/gitpod-firefox-dev/mozilla-unified/obj-x86_64-pc-linux-gnu/_virtualenvs/build/bin/python (3.8.13)
 0:01.78 checking for git... /usr/bin/git
 0:01.78 checking for Git version... 2.35.1
 0:01.80 checking for sparse checkout... no
 0:03.49 checking for wget... /usr/bin/wget
 0:03.54 Traceback (most recent call last):
 0:03.54   File "/workspace/gitpod-firefox-dev/mozilla-unified/configure.py", line 349, in <module>
 0:03.54     sys.exit(main(sys.argv))
 0:03.54   File "/workspace/gitpod-firefox-dev/mozilla-unified/configure.py", line 131, in main
 0:03.54     sandbox.run(os.path.join(os.path.dirname(__file__), "moz.configure"))
 0:03.54   File "/workspace/gitpod-firefox-dev/mozilla-unified/python/mozbuild/mozbuild/configure/__init__.py", line 567, in run
 0:03.54     func(*args)
 0:03.54   File "/workspace/gitpod-firefox-dev/mozilla-unified/python/mozbuild/mozbuild/configure/__init__.py", line 618, in _value_for
 0:03.55     return self._value_for_depends(obj)
 0:03.55   File "/workspace/gitpod-firefox-dev/mozilla-unified/python/mozbuild/mozbuild/util.py", line 1061, in method_call
 0:03.55     cache[args] = self.func(instance, *args)
 0:03.55   File "/workspace/gitpod-firefox-dev/mozilla-unified/python/mozbuild/mozbuild/configure/__init__.py", line 627, in _value_for_depends
 0:03.55     value = obj.result()
 0:03.55   File "/workspace/gitpod-firefox-dev/mozilla-unified/python/mozbuild/mozbuild/util.py", line 1061, in method_call
 0:03.55     cache[args] = self.func(instance, *args)
 0:03.55   File "/workspace/gitpod-firefox-dev/mozilla-unified/python/mozbuild/mozbuild/configure/__init__.py", line 163, in result
 0:03.55     return self._func(*resolved_args)
 0:03.55   File "/workspace/gitpod-firefox-dev/mozilla-unified/python/mozbuild/mozbuild/configure/__init__.py", line 1310, in wrapped
 0:03.55     return new_func(*args, **kwargs)
 0:03.55   File "/workspace/gitpod-firefox-dev/mozilla-unified/js/moz.configure", line 849, in wasm_verify_serialization_for_size
 0:03.55     and c_compiler.type == "clang"
 0:03.55 AttributeError: 'NoneType' object has no attribute 'type'
*** Fix above errors and then restart with "./mach build"

It looks like the wasm_verify_serialization_for_size function has been added in https://phabricator.services.mozilla.com/D144585

c_compiler appears to be undefined when we use artifact + debug mode.

Severity: -- → S3
Status: NEW → ASSIGNED
Priority: -- → P1
Has Regression Range: --- → yes
Pushed by wdurand@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3204ddf7f056
Check that `c_compiler` is defined in `wasm_verify_serialization_for_size`. r=rhunt
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: