Open
Bug 1018588
Opened 11 years ago
Updated 3 years ago
mach build or gmake fails on MozconfigLoadException when MOZCONFIG is set
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
UNCONFIRMED
People
(Reporter: tehhzstar, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; rv:11.0) like Gecko
Steps to reproduce:
This is re-produced on a PC running Solaris 11.2 Beta with Solaris Studio 12.4 Beta.
1. Checkout the comm-central repository. (/export/home/cpe479/comm-central-hg)
2. Go to comm-central folder. (/export/home/cpe479/comm-central-hg/mozilla)
3. Create a .mozconfig in comm-central folder (/export/home/cpe479/comm-central-hg/mozilla) with the following contents:
ac_add_options --enable-application=browser
ac_add_options --disable-debug
ac_add_options --enable-optimize
ac_add_options --disable-tests
ac_add_options --enable-jemalloc
ac_add_options --enable-official-branding
ac_add_options --disable-updater
ac_add_options --enable-dtrace
ac_add_options --with-system-zlib
ac_add_options --with-system-icu
ac_add_options --with-system-bz2
ac_add_options --enable-system-pixman
ac_add_options --enable-system-ffi
ac_add_options --disable-crashreporter
ac_add_options --disable-debug-symbols
ac_add_options --enable-startup-notification
4. Set MOZCONFIG variable (export MOZCONFIG=/export/home/cpe479/comm-central-hg/Mozilla/mozconfig)
5. Go to comm-central/mozilla directory (/export/home/cpe479/comm-central-hg/Mozilla/Mozilla)
6. Start the build using either "gmake -sf client.mk build" or "./mach build".
7. Build fails with MozconfigLoader Exception.
Actual results:
MozconfigLoadException: Evaluation of your mozconfig exited with an error. This could be triggered
by a command inside your mozconfig failing. Please change your mozconfig
to not error and/or to catch errors in executed commands.
File "/export/home/cpe479/comm-central-hg/mozilla/mozilla/python/mach/mach/main.py", line 313, in run
return self._run(argv)
File "/export/home/cpe479/comm-central-hg/mozilla/mozilla/python/mach/mach/main.py", line 399, in _run
instance = cls(context)
File "/export/home/cpe479/comm-central-hg/mozilla/mozilla/python/mozbuild/mozbuild/base.py", line 552, in __init__
dummy = MozbuildObject.from_environment(cwd=context.cwd)
File "/export/home/cpe479/comm-central-hg/mozilla/mozilla/python/mozbuild/mozbuild/base.py", line 164, in from_environment
config = loader.read_mozconfig(mozconfig)
File "/export/home/cpe479/comm-central-hg/mozilla/mozilla/python/mozbuild/mozbuild/mozconfig.py", line 230, in read_mozconfig
raise MozconfigLoadException(path, MOZCONFIG_BAD_EXIT_CODE, lines)
Expected results:
The build should have been started without any errors, since mozconfigLoader is able to parse the mozconfig successfully.
Python used under Solaris 11.2 Beta is Python 2.7.3 (SunOS).
The attachment for Build Results (gmake) under Solaris 11.2 Beta that shows the build failure also applies to Thunderbird as well.
This error is because the script
mozilla-central/python/mozbuild/mozbuild/mozconfig_loader
is not a shell script. It is a bash script.
So change the first line in this file from
#!/bin/sh
to
#!/bin/bash
PS. Of course you must have bash installed.
Updated•8 years ago
|
Product: Core → Firefox Build System
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•