Open
Bug 1602411
Opened 4 years ago
Updated 2 years ago
./mach bootstrap with MacPorts fails with: CalledProcessError: Command '[u'sudo', u'/opt/local/bin/port', u'-v', u'install', u'nodejs8']' returned non-zero exit status 1
Categories
(Firefox Build System :: Bootstrap Configuration, defect)
Firefox Build System
Bootstrap Configuration
Tracking
(Not tracked)
NEW
People
(Reporter: ato, Unassigned)
Details
(Keywords: in-triage)
Attachments
(1 file)
19.80 KB,
text/plain
|
Details |
Trying to set up a development environment for desktop artifact builds using MacPorts fails this way:
% ./mach bootstrap
Note on Artifact Mode:
Artifact builds download prebuilt C++ components rather than building
them locally. Artifact builds are faster!
Artifact builds are recommended for people working on Firefox or
Firefox for Android frontends, or the GeckoView Java API. They are unsuitable
for those working on C++ code. For more information see:
https://developer.mozilla.org/en-US/docs/Artifact_builds.
Please choose the version of Firefox you want to build:
1. Firefox for Desktop Artifact Mode
2. Firefox for Desktop
3. GeckoView/Firefox for Android Artifact Mode
4. GeckoView/Firefox for Android
Your choice: 1
Looks like you have MacPorts installed. We will install all required packages via MacPorts.
We are now installing all required packages via MacPorts. You will see a lot of
output as packages are built.
Executing as root: sudo /opt/local/bin/port -v install nodejs8
Password:
---> Computing dependencies for nodejs8.
---> Fetching archive for nodejs8
---> nodejs8-8.16.2_0.darwin_19.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
---> Attempting to fetch nodejs8-8.16.2_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/nodejs8
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
---> Attempting to fetch nodejs8-8.16.2_0.darwin_19.x86_64.tbz2 from http://lil.fr.packages.macports.org/nodejs8
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
---> Attempting to fetch nodejs8-8.16.2_0.darwin_19.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/nodejs8
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 287 100 287 0 0 280 0 0:00:01 0:00:01 --:--:-- 280
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
---> Configuring nodejs8
Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nodejs8/nodejs8/work/node-v8.16.2" && ./configure --prefix=/opt/local --without-npm --with-intl=small-icu --shared-openssl --shared-openssl-includes=/opt/local/include/openssl --shared-openssl-libpath=/opt/local/lib --dest-cpu=x64
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
gyp: No Xcode or CLT version detected!
creating icu_config.gypi
* Using ICU in deps/icu-small
creating icu_config.gypi
{ 'target_defaults': { 'cflags': [],
'default_configuration': 'Release',
'defines': [],
'include_dirs': ['/opt/local/include/openssl'],
'libraries': ['-L/opt/local/lib', '-lcrypto', '-lssl']},
'variables': { 'asan': 0,
'coverage': 'false',
'debug_devtools': 'node',
'debug_http2': 'false',
'debug_nghttp2': 'false',
'force_dynamic_crt': 0,
'host_arch': 'x64',
'icu_data_file': 'icudt60l.dat',
'icu_data_in': '../../deps/icu-small/source/data/in/icudt60l.dat',
'icu_endianness': 'l',
'icu_gyp_path': 'tools/icu/icu-generic.gyp',
'icu_locales': 'en,root',
'icu_path': 'deps/icu-small',
'icu_small': 'true',
'icu_ver_major': '60',
'llvm_version': 0,
'node_byteorder': 'little',
'node_enable_d8': 'false',
'node_enable_v8_vtunejit': 'false',
'node_install_npm': 'false',
'node_module_version': 57,
'node_no_browser_globals': 'false',
'node_prefix': '/opt/local',
'node_release_urlbase': '',
'node_shared': 'false',
'node_shared_cares': 'false',
'node_shared_http_parser': 'false',
'node_shared_libuv': 'false',
'node_shared_nghttp2': 'false',
'node_shared_openssl': 'true',
'node_shared_zlib': 'false',
'node_tag': '',
'node_target_type': 'executable',
'node_use_bundled_v8': 'true',
'node_use_dtrace': 'true',
'node_use_etw': 'false',
'node_use_lttng': 'false',
'node_use_openssl': 'true',
'node_use_perfctr': 'false',
'node_use_v8_platform': 'true',
'node_without_node_options': 'false',
'openssl_fips': '',
'openssl_no_asm': 0,
'shlib_suffix': '57.dylib',
'target_arch': 'x64',
'uv_parent_path': '/deps/uv/',
'uv_use_dtrace': 'true',
'v8_enable_gdbjit': 0,
'v8_enable_i18n_support': 1,
'v8_enable_inspector': 1,
'v8_no_strict_aliasing': 1,
'v8_optimized_debug': 0,
'v8_promise_internal_field_count': 1,
'v8_random_seed': 0,
'v8_trace_maps': 0,
'v8_use_snapshot': 'true',
'want_separate_host_toolset': 0}}
creating config.gypi
creating config.mk
Error running GYP
Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nodejs8/nodejs8/work/node-v8.16.2" && ./configure --prefix=/opt/local --without-npm --with-intl=small-icu --shared-openssl --shared-openssl-includes=/opt/local/include/openssl --shared-openssl-libpath=/opt/local/lib --dest-cpu=x64
Exit code: 1
Error: Failed to configure nodejs8: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nodejs8/nodejs8/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port nodejs8 failed
Error running mach:
['bootstrap']
The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.
If filing a bug, please include the full output of mach, including this error
message.
The details of the failure are as follows:
CalledProcessError: Command '[u'sudo', u'/opt/local/bin/port', u'-v', u'install', u'nodejs8']' returned non-zero exit status 1
File "/Users/ato/src/gecko/python/mozboot/mozboot/mach_commands.py", line 44, in bootstrap
bootstrapper.bootstrap()
File "/Users/ato/src/gecko/python/mozboot/mozboot/bootstrap.py", line 445, in bootstrap
self.instance.install_system_packages()
File "/Users/ato/src/gecko/python/mozboot/mozboot/osx.py", line 188, in install_system_packages
getattr(self, 'ensure_%s_system_packages' % self.package_manager)()
File "/Users/ato/src/gecko/python/mozboot/mozboot/osx.py", line 422, in ensure_macports_system_packages
self._ensure_macports_packages(packages)
File "/Users/ato/src/gecko/python/mozboot/mozboot/osx.py", line 408, in _ensure_macports_packages
self.run_as_root([self.port, '-v', 'install'] + missing)
File "/Users/ato/src/gecko/python/mozboot/mozboot/base.py", line 366, in run_as_root
subprocess.check_call(command, stdin=sys.stdin)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
Comment 1•4 years ago
|
||
I was able to complete bootstrap, but I think the underlying issue here is we need a certain xcode configuration to be correct for this to work, which seems unfortunate. Does brew
complete successfully?
Flags: needinfo?(ato)
Reporter | ||
Comment 2•4 years ago
|
||
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•