Firefox 73.0 currently doesn't compile with gcc 9.2.0, it fails at the end with an unknown error: 810:01.01 gmake[4]: Leaving directory '/var/tmp/notmpfs/portage/www-client/firefox-73.0/work/firefox-73.0/ff/devtools/shared/heapsnapshot' 810:28.30 Finished release [optimized] target(s) in 10m 01s 810:29.86 gmake[4]: Entering directory '/var/tmp/notmpfs/portage/www-client/firefox-73.0/work/firefox-73.0/ff/toolkit/library/rust' 810:29.86 /var/tmp/notmpfs/portage/www-client/firefox-73.0/work/firefox-73.0/ff/_virtualenvs/init/bin/python -m mozbuild.action.check_binary --target --networking /var/tmp/notmpfs/portage/www-client/firefox-73.0/work/firefox-73.0/ff/x86_64-unknown-linux-gnu/release/libgkrust.a 810:29.86 gmake[4]: Leaving directory '/var/tmp/notmpfs/portage/www-client/firefox-73.0/work/firefox-73.0/ff/toolkit/library/rust' 810:29.86 gmake[2]: *** [/var/tmp/notmpfs/portage/www-client/firefox-73.0/work/firefox-73.0/config/recurse.mk:34: compile] Error 2 810:29.87 gmake[1]: *** [/var/tmp/notmpfs/portage/www-client/firefox-73.0/work/firefox-73.0/config/rules.mk:394: default] Error 2 810:29.87 gmake: *** [client.mk:125: build] Error 2 810:29.88 11 compiler warnings present. 8 * ERROR: www-client/firefox-73.0::gentoo failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 125: Called src_compile * environment, line 5236: Called die * The specific snippet of code: * GDK_BACKEND=x11 MOZ_MAKE_FLAGS="${MAKEOPTS} -O" SHELL="${SHELL:-${EPREFIX}/bin/bash}" MOZ_NOSPAM=1 ${_virtx} ./mach build --verbose || die * * If you need support, post the output of `emerge --info '=www-client/firefox-73.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=www-client/firefox-73.0::gentoo'`. * The complete build log is located at '/var/tmp/notmpfs/portage/www-client/firefox-73.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/notmpfs/portage/www-client/firefox-73.0/temp/environment'. * Working directory: '/var/tmp/notmpfs/portage/www-client/firefox-73.0/work/firefox-73.0' * S: '/var/tmp/notmpfs/portage/www-client/firefox-73.0/work/firefox-73.0' Compilation works fine with clang.
Created attachment 613584 [details] emerge --info
Please attach the entire build log to this bug report.
Created attachment 613586 [details] build log
It's lto-related (again). With lto disabled, firefox compiles with gcc. Upstream bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57703
This is a regression with respect to bug 689358. The same fix works again for www-client/firefox-73.0.
(In reply to Maciej S. Szmigiero from comment #5) > This is a regression with respect to bug 689358. > > The same fix works again for www-client/firefox-73.0. I have taken the update from fedora for gcc lto support, it is in the mozilla overlay, soon as I have someone test pgo builds will push it to tree. Feel free to test it yourself as well, would like to close both bugs at same time. No revision bump was introduced.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f2ceab0a79e973d3e1e70dc4cf201bd09c5154b commit 2f2ceab0a79e973d3e1e70dc4cf201bd09c5154b Author: Jory Pratt <anarchy@gentoo.org> AuthorDate: 2020-02-14 13:09:14 +0000 Commit: Jory Pratt <anarchy@gentoo.org> CommitDate: 2020-02-14 13:09:29 +0000 www-client/firefox: Fix pgo/lto builds Closes: https://bugs.gentoo.org/709440 Closes: https://bugs.gentoo.org/706772 Closes: https://bugs.gentoo.org/709594 Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Jory Pratt <anarchy@gentoo.org> .../firefox/files/firefox-69.0-lto-gcc-fix.patch | 26 ----------- .../files/firefox-73.0_fix_lto_pgo_builds.patch | 51 ++++++++++++++++++++++ www-client/firefox/firefox-73.0.ebuild | 2 + 3 files changed, 53 insertions(+), 26 deletions(-)