Open iicuken opened 1 week ago
I receive the same build error, however I did follow the build documents and selected everything correctly (including the non-Artifact build).
I'm not sure why the link to the docs was posted without further comment. I have been over the docs several times and nothing called out therein differs from actions taken on my end.
Good day.I am trying to compile Mercury from source. I have Arch linux latest with all build tools installed. Ive done bootstrap into ~/tmpfs1/mozsrc dir: On question "Please choose the version of Firefox you want to build " i select "Firefox for Desktop Artifact Mode [default]" same as "Firefox for Desktop". Bootstrap successive.
I set up env var: export HG_SRC_DIR=/home/qq/tmpfs1/mozsrc
Ive done setup. Setup successive.
Ive done build. Build fail with error:
0:00.48 checking for vcs source checkout... hg 0:00.49 checking for a shell... /usr/bin/sh 0:00.52 checking for host system type... x86_64-pc-linux-gnu 0:00.53 checking for target system type... x86_64-pc-linux-gnu 0:00.57 Traceback (most recent call last): 0:00.57 File "/home/qq/tmpfs1/mozsrsrc/configure.py", line 351, in
0:00.57 sys.exit(main(sys.argv))
0:00.57 ^^^^^^^^^^^^^^
0:00.57 File "/home/qq/tmpfs1/mozsrsrc/configure.py", line 138, in main
0:00.57 sandbox.include_file(os.path.join(os.path.dirname(file), "moz.configure"))
0:00.57 File "/home/qq/tmpfs1/mozsrsrc/python/mozbuild/mozbuild/configure/init.py", line 498, in include_file
0:00.57 exec(code, self)
0:00.57 File "/home/qq/tmpfs1/mozsrsrc/moz.configure", line 232, in
0:00.57 include("build/moz.configure/libraries.configure", when="--enable-compile-environment")
0:00.57 File "/home/qq/tmpfs1/mozsrsrc/python/mozbuild/mozbuild/configure/init.py", line 872, in include_impl
0:00.57 self.include_file(what)
0:00.57 File "/home/qq/tmpfs1/mozsrsrc/python/mozbuild/mozbuild/configure/init.py", line 498, in include_file
0:00.58 exec(code, self)
0:00.58 File "/home/qq/tmpfs1/mozsrsrc/build/moz.configure/libraries.configure", line 30, in
0:00.58 have_raw_clock_monotonic_support = check_clock_monotonic_support()
0:00.58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0:00.58 File "/home/qq/tmpfs1/mozsrsrc/python/mozbuild/mozbuild/configure/init.py", line 916, in wrapper
0:00.58 ret = template(*args, kwargs)
0:00.58 ^^^^^^^^^^^^^^^^^^^^^^^^^
0:00.58 File "/home/qq/tmpfs1/mozsrsrc/python/mozbuild/mozbuild/configure/init.py", line 1316, in wrapped
0:00.58 return new_func(*args, *kwargs)
0:00.58 ^^^^^^^^^^^^^^^^^^^^^^^^^
0:00.58 File "/home/qq/tmpfs1/mozsrsrc/build/moz.configure/libraries.configure", line 17, in check_clock_monotonic_support
0:00.58 check_when = building_with_gnu_compatible_cc
0:00.58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0:00.58 NameError: name 'building_with_gnu_compatible_cc' is not defined
Fix above errors and then restart with "./mach build"
0:00.59 W Exception when writing resource usage file: [Errno 2] No such file or directory: '/home/qq/tmpfs1/mozsrsrc/obj-x86_64-pc-linux-gnu/instrumented/.mozbuild/profile_build_resources.json'
NameError: name 'building_with_gnu_compatible_cc' is not defined
But when i skip setup step build succeeds and compiled firefox works fine.
Pls help.