0:13.07 checking whether the target C compiler can be used... yes 0:13.09 Traceback (most recent call last): 0:13.09 File "/var/tmp/portage/www-client/firefox-61.0/work/firefox-61.0/configure.py", line 127, in <module> 0:13.09 sys.exit(main(sys.argv)) 0:13.09 File "/var/tmp/portage/www-client/firefox-61.0/work/firefox-61.0/configure.py", line 29, in main 0:13.09 sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure')) 0:13.09 File "/var/tmp/portage/www-client/firefox-61.0/work/firefox-61.0/python/mozbuild/mozbuild/configure/__init__.py", line 424, in run 0:13.09 raise InvalidOptionError('Unknown option: %s' % without_value) 0:13.09 mozbuild.configure.options.InvalidOptionError: Unknown option: --disable-stylo 0:13.14 *** Fix above errors and then restart with\ 0:13.14 "/usr/bin/gmake -f client.mk build" 0:13.14 gmake: *** [client.mk:149: configure] Error 1 * ERROR: www-client/firefox-61.0::gentoo failed (configure phase): * (no error message)
I was able to get passed this problem by removing: use x86 && mozconfig_annotate 'Upstream bug 1341234' --disable-stylo from: /usr/portage/eclass/mozconfig-v6.60.eclass However, the build still failed due to the following (unrelated) error: 824:05.02 error: failed to run custom build command for `libloading v0.5.0` 824:05.03 process didn't exit successfully: `/var/tmp/portage/www-client/firefox-61.0/work/firefox-61.0/ff/toolkit/library/release/build/libloading-8b64741937501b5b/build-script-build` (exit code: 101) 824:05.03 --- stdout 824:05.04 cargo:rustc-link-lib=dl 824:05.04 TARGET = Some("i686-unknown-linux-gnu") 824:05.04 OPT_LEVEL = Some("2") 824:05.04 TARGET = Some("i686-unknown-linux-gnu") 824:05.04 HOST = Some("i686-unknown-linux-gnu") 824:05.05 TARGET = Some("i686-unknown-linux-gnu") 824:05.05 TARGET = Some("i686-unknown-linux-gnu") 824:05.06 HOST = Some("i686-unknown-linux-gnu") 824:05.06 CC_i686-unknown-linux-gnu = None 824:05.06 CC_i686_unknown_linux_gnu = None 824:05.06 HOST_CC = Some("/usr/bin/i686-pc-linux-gnu-gcc -std=gnu99") 824:05.06 TARGET = Some("i686-unknown-linux-gnu") 824:05.07 HOST = Some("i686-unknown-linux-gnu") 824:05.07 CFLAGS_i686-unknown-linux-gnu = None 824:05.07 CFLAGS_i686_unknown_linux_gnu = None 824:05.07 HOST_CFLAGS = None 824:05.08 CFLAGS = Some("-march=i686 -pipe") 824:05.08 DEBUG = Some("false") 824:05.09 running: "/usr/bin/i686-pc-linux-gnu-gcc" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-march=i686" "-pipe" "-m32" "-march=i686" "-Wall" "-Wextra" "-o" "/var/tmp/portage/www-client/firefox-61.0/work/firefox-61.0/ff/toolkit/library/release/build/libloading-c4eee0deca964368/out/src/os/unix/global_static.o" "-c" "src/os/unix/global_static.c" 824:05.09 cargo:warning=Assembler messages: 824:05.09 cargo:warning=Internal error (Segmentation fault). 824:05.10 cargo:warning=Please report this bug. 824:05.10 exit code: 2 824:05.11 --- stderr 824:05.11 thread 'main' panicked at ' 824:05.13 Internal error occurred: Command "/usr/bin/i686-pc-linux-gnu-gcc" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-march=i686" "-pipe" "-m32" "-march=i686" "-Wall" "-Wextra" "-o" "/var/tmp/portage/www-client/firefox-61.0/work/firefox-61.0/ff/toolkit/library/release/build/libloading-c4eee0deca964368/out/src/os/unix/global_static.o" "-c" "src/os/unix/global_static.c" with args "i686-pc-linux-gnu-gcc" did not execute successfully (status code exit code: 2). 824:05.13 ', third_party/rust/cc/src/lib.rs:2070:5 824:05.14 stack backtrace: 824:05.14 0: 0x4ab592 - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::h20b6c17bcf6204f1 824:05.15 1: 0x4b3e13 - std::sys_common::backtrace::print::h704302eecdaab944 824:05.15 2: 0x499ad3 - std::panicking::default_hook::{{closure}}::ha07d545fc6b54494 824:05.16 3: 0x4997cc - std::panicking::default_hook::hdb7c2f818c8c7209 824:05.16 4: 0x49a1b0 - std::panicking::rust_panic_with_hook::h167084ddd627aa97 824:05.16 5: 0x499ce5 - std::panicking::begin_panic_fmt::h2d1e07f246c6d8e4 824:05.17 6: 0x495f2e - cc::fail::hd20381ca36446f5c 824:05.17 7: 0x48d679 - cc::Build::compile::h308e65991ced6783 824:05.18 8: 0x480286 - build_script_build::main::hc81a399613ec7bca 824:05.18 9: 0x47f3a5 - std::rt::lang_start::{{closure}}::hafb21e43eb9d5cf2 824:05.19 10: 0x4b45ed - std::sys_common::backtrace::__rust_begin_short_backtrace::hfecb05f6849c3e46 824:05.19 11: 0x499bf1 - std::panicking::try::do_call::h19f56ed0831c535f 824:05.19 12: 0x4bb937 - __rust_maybe_catch_panic 824:05.20 13: 0x4a2127 - std::rt::lang_start_internal::h88d25bae90d0534e 824:05.20 14: 0x480420 - main 824:05.20 15: 0xb7d198c7 - __libc_start_main 824:05.21 16: 0x47f0dd - <unknown> 824:05.21 gmake[4]: *** [/var/tmp/portage/www-client/firefox-61.0/work/firefox-61.0/config/rules.mk:950: force-cargo-library-build] Error 101 824:05.22 gmake[4]: Leaving directory '/var/tmp/portage/www-client/firefox-61.0/work/firefox-61.0/ff/toolkit/library/rust' 824:05.22 gmake[3]: *** [/var/tmp/portage/www-client/firefox-61.0/work/firefox-61.0/config/recurse.mk:73: toolkit/library/rust/target] Error 2
(In reply to acmondor from comment #1) > I was able to get passed this problem by removing: > > use x86 && mozconfig_annotate 'Upstream bug 1341234' --disable-stylo > > from: > > /usr/portage/eclass/mozconfig-v6.60.eclass > > However, the build still failed due to the following (unrelated) error: > > 824:05.02 error: failed to run custom build command for `libloading v0.5.0` > 824:05.03 process didn't exit successfully: > `/var/tmp/portage/www-client/firefox-61.0/work/firefox-61.0/ff/toolkit/ > library/release/build/libloading-8b64741937501b5b/build-script-build` (exit > code: 101) > 824:05.03 --- stdout > 824:05.04 cargo:rustc-link-lib=dl > 824:05.04 TARGET = Some("i686-unknown-linux-gnu") > 824:05.04 OPT_LEVEL = Some("2") > 824:05.04 TARGET = Some("i686-unknown-linux-gnu") > 824:05.04 HOST = Some("i686-unknown-linux-gnu") > 824:05.05 TARGET = Some("i686-unknown-linux-gnu") > 824:05.05 TARGET = Some("i686-unknown-linux-gnu") > 824:05.06 HOST = Some("i686-unknown-linux-gnu") > 824:05.06 CC_i686-unknown-linux-gnu = None > 824:05.06 CC_i686_unknown_linux_gnu = None > 824:05.06 HOST_CC = Some("/usr/bin/i686-pc-linux-gnu-gcc -std=gnu99") > 824:05.06 TARGET = Some("i686-unknown-linux-gnu") > 824:05.07 HOST = Some("i686-unknown-linux-gnu") > 824:05.07 CFLAGS_i686-unknown-linux-gnu = None > 824:05.07 CFLAGS_i686_unknown_linux_gnu = None > 824:05.07 HOST_CFLAGS = None > 824:05.08 CFLAGS = Some("-march=i686 -pipe") > 824:05.08 DEBUG = Some("false") > 824:05.09 running: "/usr/bin/i686-pc-linux-gnu-gcc" "-O2" > "-ffunction-sections" "-fdata-sections" "-fPIC" "-march=i686" "-pipe" "-m32" > "-march=i686" "-Wall" "-Wextra" "-o" > "/var/tmp/portage/www-client/firefox-61.0/work/firefox-61.0/ff/toolkit/ > library/release/build/libloading-c4eee0deca964368/out/src/os/unix/ > global_static.o" "-c" "src/os/unix/global_static.c" > 824:05.09 cargo:warning=Assembler messages: > 824:05.09 cargo:warning=Internal error (Segmentation fault). > 824:05.10 cargo:warning=Please report this bug. > 824:05.10 exit code: 2 > 824:05.11 --- stderr > 824:05.11 thread 'main' panicked at ' > 824:05.13 Internal error occurred: Command "/usr/bin/i686-pc-linux-gnu-gcc" > "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-march=i686" "-pipe" > "-m32" "-march=i686" "-Wall" "-Wextra" "-o" > "/var/tmp/portage/www-client/firefox-61.0/work/firefox-61.0/ff/toolkit/ > library/release/build/libloading-c4eee0deca964368/out/src/os/unix/ > global_static.o" "-c" "src/os/unix/global_static.c" with args > "i686-pc-linux-gnu-gcc" did not execute successfully (status code exit code: > 2). > 824:05.13 ', third_party/rust/cc/src/lib.rs:2070:5 > 824:05.14 stack backtrace: > 824:05.14 0: 0x4ab592 - > std::sys::unix::backtrace::tracing::imp::unwind_backtrace::h20b6c17bcf6204f1 > 824:05.15 1: 0x4b3e13 - > std::sys_common::backtrace::print::h704302eecdaab944 > 824:05.15 2: 0x499ad3 - > std::panicking::default_hook::{{closure}}::ha07d545fc6b54494 > 824:05.16 3: 0x4997cc - std::panicking::default_hook::hdb7c2f818c8c7209 > 824:05.16 4: 0x49a1b0 - > std::panicking::rust_panic_with_hook::h167084ddd627aa97 > 824:05.16 5: 0x499ce5 - > std::panicking::begin_panic_fmt::h2d1e07f246c6d8e4 > 824:05.17 6: 0x495f2e - cc::fail::hd20381ca36446f5c > 824:05.17 7: 0x48d679 - cc::Build::compile::h308e65991ced6783 > 824:05.18 8: 0x480286 - build_script_build::main::hc81a399613ec7bca > 824:05.18 9: 0x47f3a5 - > std::rt::lang_start::{{closure}}::hafb21e43eb9d5cf2 > 824:05.19 10: 0x4b45ed - > std::sys_common::backtrace::__rust_begin_short_backtrace::hfecb05f6849c3e46 > 824:05.19 11: 0x499bf1 - std::panicking::try::do_call::h19f56ed0831c535f > 824:05.19 12: 0x4bb937 - __rust_maybe_catch_panic > 824:05.20 13: 0x4a2127 - std::rt::lang_start_internal::h88d25bae90d0534e > 824:05.20 14: 0x480420 - main > 824:05.20 15: 0xb7d198c7 - __libc_start_main > 824:05.21 16: 0x47f0dd - <unknown> > 824:05.21 gmake[4]: *** > [/var/tmp/portage/www-client/firefox-61.0/work/firefox-61.0/config/rules.mk: > 950: force-cargo-library-build] Error 101 > 824:05.22 gmake[4]: Leaving directory > '/var/tmp/portage/www-client/firefox-61.0/work/firefox-61.0/ff/toolkit/ > library/rust' > 824:05.22 gmake[3]: *** > [/var/tmp/portage/www-client/firefox-61.0/work/firefox-61.0/config/recurse. > mk:73: toolkit/library/rust/target] Error 2 The above error has something to do with rust 1.27.0 and/or cargo 0.28.0. The build completed successfully after I switched back to rust 1.26.0 and cargo 0.27.0, and the resultant firefox seems to run fine. And, in case it wasn't already obvious, this is specific to x86, amd64 had no such issues.
I'm using rust 1.25 and cargo 0.26.0 and also run into this problem :-( and yes, only x86 affected, no problem on amd64.
(In reply to Gerhard Hintermayer from comment #3) > I'm using rust 1.25 and cargo 0.26.0 and also run into this problem :-( and > yes, only x86 affected, no problem on amd64. Fails also with rust-1.26.2 together with cargo-0.28.0. will downgrade cargo to 0.27.0 and retry building.
(In reply to Gerhard Hintermayer from comment #4) > (In reply to Gerhard Hintermayer from comment #3) > > I'm using rust 1.25 and cargo 0.26.0 and also run into this problem :-( and > > yes, only x86 affected, no problem on amd64. > > Fails also with rust-1.26.2 together with cargo-0.28.0. will downgrade cargo > to 0.27.0 and retry building. Build also fails :-( rust-1.26.2 with cargo 0.27.0. Why the hell the option --disable-stylo is generated, if the configure script does not understand it.
(In reply to Gerhard Hintermayer from comment #5) > Why the hell the option --disable-stylo is generated, if the configure > script does not understand it. it's not generated but added by force as stated above: > use x86 && mozconfig_annotate 'Upstream bug 1341234' --disable-stylo
commit 3b7713187a844e3a010a693aa293b1c7f59b9fbd (HEAD -> master, origin/master, origin/HEAD) Author: Jory A. Pratt <anarchy@gentoo.org> Date: Thu Jul 12 22:56:30 2018 -0500 www-client/firefox: fix x86 builds, bug #659820 Package-Manager: Portage-2.3.42, Repoman-2.3.9
trying to build firefox-62.0 and ran into the same issue :-( removed the line which generates the option that configure does not understand from the ebuild and build is starting ....