Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 765721

Summary: www-client/firefox-84.0.2 clang error: failed to run custom build command for `webrender v0.61.0
Product: Gentoo Linux Reporter: deim <deim>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: ionen, jstein
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
emerge --info
clang environment for firefox

Description deim 2021-01-17 10:07:02 UTC
Created attachment 683272 [details]
build log

Getting this with clang and lto enabled also with 84.0.1-r1:

8312:56.44      Running `/var/tmp/portage/www-client/firefox-84.0.2/work/firefox_build/release/build/webrender-22e8348aef6d6cf4/build-script-build`
8312:56.76 error: failed to run custom build command for `webrender v0.61.0 (/var/tmp/portage/www-client/firefox-84.0.2/work/firefox-84.0.2/gfx/wr/webrender)`
8312:56.76 Caused by:
8312:56.76   process didn't exit successfully: `/var/tmp/portage/www-client/firefox-84.0.2/work/firefox_build/release/build/webrender-22e8348aef6d6cf4/build-script-build` (signal: 4, SIGILL: illegal instruction)
8312:56.81 gmake[4]: *** [/var/tmp/portage/www-client/firefox-84.0.2/work/firefox-84.0.2/config/makefiles/rust.mk:319: force-cargo-library-build] Error 101
8312:56.81 gmake[4]: Leaving directory '/var/tmp/portage/www-client/firefox-84.0.2/work/firefox_build/toolkit/library/rust'
8312:56.81 gmake[3]: *** [/var/tmp/portage/www-client/firefox-84.0.2/work/firefox-84.0.2/config/recurse.mk:72: toolkit/library/rust/target] Error 2
8312:56.81 gmake[3]: *** Waiting for unfinished jobs....
Comment 1 deim 2021-01-17 10:07:28 UTC
Created attachment 683275 [details]
emerge --info
Comment 2 deim 2021-01-17 10:07:50 UTC
Created attachment 683278 [details]
clang environment for firefox
Comment 3 Ionen Wolkens gentoo-dev 2021-01-17 10:34:44 UTC
(signal: 4, SIGILL: illegal instruction)

I see you have some imposing C(XX)FLAGS that enable/disable many instructions, do you really need to set all this (e.g. cross-compiling/distcc)?

If not try something simpler (-march=native -O2), and let's hope nothing else is broken. If they're really needed, may want to verify/simplify with app-misc/resolve-march-native.
Comment 4 Ionen Wolkens gentoo-dev 2021-01-17 10:40:19 UTC
(In reply to deim from comment #2)
> Created attachment 683278 [details]
> clang environment for firefox
And oh, you are setting clang yourself. The firefox ebuild already does this with USE=clang, you should let it handle it.
Comment 5 Jonas Stein gentoo-dev 2021-01-17 17:11:58 UTC
please test the suggestions and reopen, if the problem remains with standard settings.