Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 765721 - www-client/firefox-84.0.2 clang error: failed to run custom build command for `webrender v0.61.0
Summary: www-client/firefox-84.0.2 clang error: failed to run custom build command for...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-17 10:07 UTC by deim
Modified: 2021-01-17 17:11 UTC (History)
2 users (show)

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


Attachments
build log (build.log.xz,368.84 KB, application/x-xz)
2021-01-17 10:07 UTC, deim
Details
emerge --info (emerge--info.txt,7.41 KB, text/plain)
2021-01-17 10:07 UTC, deim
Details
clang environment for firefox (clang-lto_env,343 bytes, text/plain)
2021-01-17 10:07 UTC, deim
Details

Note You need to log in before you can comment on or make changes to this bug.
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.