Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 709440 - www-client/firefox-73.0 - libmozsandbox.so.w9wOaK.ltrans1.ltrans.o:<artificial>:function sandbox::Trap::SigSys(int, siginfo_t*, ucontext_t*): error: undefined reference to 'SyscallAsm'
Summary: www-client/firefox-73.0 - libmozsandbox.so.w9wOaK.ltrans1.ltrans.o:<artificia...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-12 21:20 UTC by darkstalker
Modified: 2020-02-14 13:09 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge_info.txt,6.52 KB, text/plain)
2020-02-12 21:21 UTC, darkstalker
Details
build log (ff73-build.log.xz,478.48 KB, application/x-xz)
2020-02-12 22:06 UTC, darkstalker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description darkstalker 2020-02-12 21:20:09 UTC
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.
Comment 1 darkstalker 2020-02-12 21:21:11 UTC
Created attachment 613584 [details]
emerge --info
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2020-02-12 21:56:37 UTC
Please attach the entire build log to this bug report.
Comment 3 darkstalker 2020-02-12 22:06:19 UTC
Created attachment 613586 [details]
build log
Comment 4 Johannes Hirte 2020-02-13 16:33:34 UTC
It's lto-related (again). With lto disabled, firefox compiles with gcc. Upstream bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57703
Comment 5 Maciej S. Szmigiero 2020-02-13 19:50:20 UTC
This is a regression with respect to bug 689358.

The same fix works again for www-client/firefox-73.0.
Comment 6 Jory A. Pratt gentoo-dev 2020-02-14 02:36:55 UTC
(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.
Comment 7 Larry the Git Cow gentoo-dev 2020-02-14 13:09:40 UTC
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(-)