Closed Bug 1580533 Opened 5 years ago Closed 5 years ago

Compile Firefox 70 fails with MOZ_CONFIGURE_OPTIONS value is not unicode.

Categories

(Firefox Build System :: General, defect)

69 Branch
defect
Not set
normal

Tracking

(firefox70 fixed, firefox71 fixed)

RESOLVED FIXED
mozilla71
Tracking Status
firefox70 --- fixed
firefox71 --- fixed

People

(Reporter: arobertson1, Assigned: glandium)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0

Steps to reproduce:

https://ftp.mozilla.org/pub/firefox/releases/
Download and unpack firefox-70.0b5.source.tar.xz
mkdir ff && cd ff
cargo install cbindgen --force
../configure --with-clang-path=/usr/bin/clang-8

Actual results:

....
js/src> creating ./config.data
js/src> Creating config.status
MOZ_CONFIGURE_OPTIONS value is not unicode.
substs value is not unicode.
Configuration should be all unicode.
Please file a bug for the above.

Expected results:

make -j9
sudo make install

Firefox 69.0b9 compiles fine on same computer.
Linux Mint 19, kernel 5.3.0-050300rc8-generic

Hi Alan Robertson,

Thank you for your report.

Unfortunately, I don't have the Linux version to test this on my end, but as a starting point, I'll add a product and component so the devs can take a look at this and investigate.

Regards,

Component: Untriaged → General
Product: Firefox → Firefox Build System

Just a quick follow up - just tried firefox-70.0b9 and the same issue is present:

https://ftp.mozilla.org/pub/firefox/releases/70.0b9/source/firefox-70.0b9.source.tar.xz

MOZ_CONFIGURE_OPTIONS value is not unicode

This appears in:
/firefox-70.0b9.source/firefox-70.0/toolkit/moz.configure
/firefox-70.0b9.source/firefox-70.0/toolkit/content/moz.build

Not sure what the problem is.
node --version
v10.16.3
cargo --version
cargo 1.39.0-nightly (fe0e5a48b 2019-09-04)

The good news is that Mach seems to work perfectly:

./mach build
sudo ./mach install

firefox --version
Mozilla Firefox 70.0b9

Awesome! Mach it is then.

Regressed by: 1575135
Keywords: regression
Assignee: nobody → mh+mozilla
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/989e51b08291 Ensure MOZ_CONFIGURE_OPTIONS is unicode. r=chmanchester

Comment on attachment 9097540 [details]
Bug 1580533 - Ensure MOZ_CONFIGURE_OPTIONS is unicode.

Beta/Release Uplift Approval Request

  • User impact if declined: Build failure in some setups
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Build system change only. No-op in most cases.
  • String changes made/needed: N/A
Attachment #9097540 - Flags: approval-mozilla-beta?
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71

Comment on attachment 9097540 [details]
Bug 1580533 - Ensure MOZ_CONFIGURE_OPTIONS is unicode.

Build related fix, OK for beta 12 uplift.

Attachment #9097540 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Backed out changeset ca06dcc43bb7 (Bug 1580533) for build bustage in ensure_unicode a=backout

Push with failure: https://treeherder.mozilla.org/#/jobs?repo=mozilla-beta&resultStatus=testfailed%2Cbusted%2Cexception&classifiedState=unclassified&revision=b63b75ad69b6a5a7d72811a9971f0f7555379905

Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=269498698&repo=mozilla-beta&lineNumber=1024

Backout link: https://treeherder.mozilla.org/#/jobs?repo=mozilla-beta&resultStatus=testfailed%2Cbusted%2Cexception&classifiedState=unclassified&revision=24de1dfb60861c82f36c75e700d843cf75081adc

[task 2019-10-02T19:50:44.252Z] 19:50:44    ERROR -  Traceback (most recent call last):
[task 2019-10-02T19:50:44.252Z] 19:50:44     INFO -    File "/builds/worker/workspace/build/src/configure.py", line 164, in <module>
[task 2019-10-02T19:50:44.252Z] 19:50:44     INFO -      sys.exit(main(sys.argv))
[task 2019-10-02T19:50:44.252Z] 19:50:44     INFO -    File "/builds/worker/workspace/build/src/configure.py", line 40, in main
[task 2019-10-02T19:50:44.252Z] 19:50:44     INFO -      sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))
[task 2019-10-02T19:50:44.252Z] 19:50:44     INFO -    File "/builds/worker/workspace/build/src/python/mozbuild/mozbuild/configure/__init__.py", line 498, in run
[task 2019-10-02T19:50:44.252Z] 19:50:44     INFO -      func(*args)
[task 2019-10-02T19:50:44.252Z] 19:50:44     INFO -    File "/builds/worker/workspace/build/src/python/mozbuild/mozbuild/configure/__init__.py", line 542, in _value_for
[task 2019-10-02T19:50:44.252Z] 19:50:44     INFO -      return self._value_for_depends(obj)
[task 2019-10-02T19:50:44.253Z] 19:50:44     INFO -    File "/builds/worker/workspace/build/src/python/mozbuild/mozbuild/util.py", line 963, in method_call
[task 2019-10-02T19:50:44.253Z] 19:50:44     INFO -      cache[args] = self.func(instance, *args)
[task 2019-10-02T19:50:44.253Z] 19:50:44     INFO -    File "/builds/worker/workspace/build/src/python/mozbuild/mozbuild/configure/__init__.py", line 551, in _value_for_depends
[task 2019-10-02T19:50:44.253Z] 19:50:44     INFO -      value = obj.result()
[task 2019-10-02T19:50:44.253Z] 19:50:44     INFO -    File "/builds/worker/workspace/build/src/python/mozbuild/mozbuild/util.py", line 963, in method_call
[task 2019-10-02T19:50:44.253Z] 19:50:44     INFO -      cache[args] = self.func(instance, *args)
[task 2019-10-02T19:50:44.253Z] 19:50:44     INFO -    File "/builds/worker/workspace/build/src/python/mozbuild/mozbuild/configure/__init__.py", line 157, in result
[task 2019-10-02T19:50:44.253Z] 19:50:44     INFO -      return self._func(*resolved_args)
[task 2019-10-02T19:50:44.253Z] 19:50:44     INFO -    File "/builds/worker/workspace/build/src/python/mozbuild/mozbuild/configure/__init__.py", line 1156, in wrapped
[task 2019-10-02T19:50:44.253Z] 19:50:44     INFO -      return new_func(*args, **kwargs)
[task 2019-10-02T19:50:44.253Z] 19:50:44     INFO -    File "/builds/worker/workspace/build/src/toolkit/moz.configure", line 33, in all_configure_options
[task 2019-10-02T19:50:44.253Z] 19:50:44     INFO -      system_encoding))
[task 2019-10-02T19:50:44.253Z] 19:50:44    ERROR -  TypeError: ensure_unicode() takes exactly 1 argument (2 given)
[task 2019-10-02T19:50:44.289Z] 19:50:44     INFO -  *** Fix above errors and then restart with\
[task 2019-10-02T19:50:44.289Z] 19:50:44     INFO -                 "./mach build"
[task 2019-10-02T19:50:44.289Z] 19:50:44     INFO -  client.mk:111: recipe for target 'configure' failed
[task 2019-10-02T19:50:44.289Z] 19:50:44     INFO -  make: *** [configure] Error 1
[task 2019-10-02T19:50:44.389Z] 19:50:44    ERROR - Return code: 2
[task 2019-10-02T19:50:44.389Z] 19:50:44  WARNING - setting return code to 2
[task 2019-10-02T19:50:44.389Z] 19:50:44    FATAL - 'mach build -v' did not run successfully. Please check log for errors.
[task 2019-10-02T19:50:44.389Z] 19:50:44    FATAL - Running post_fatal callback...
[task 2019-10-02T19:50:44.389Z] 19:50:44    FATAL - Exiting -1

That comes from having a hidden dependency on a part of bug 1577826.

Depends on: 1577826
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: