------ Original Message ------
From "efeizbudak" <efeizbu...@disroot.org>
To gentoo-user@lists.gentoo.org
Date 06.08.2024 20:27:36
Subject Re: [gentoo-user] Cannot compile firefox::rapid with +lto +pgo
Do you have any idea why that might have happened?
If I read your emerge --info correctly, a prime suspect is right at the
top:
On 2024-08-06 20:22, Eli Schwartz wrote:
On 8/6/24 2:03 PM, efeizbudak wrote:
I am on a musl system and I cannot compile www-client/firefox-128.0.3
with +lto +pgo flags. The compilation runs fine otherwise. Can anyone
point me in the right direction?
Here are the logs:
build.log: http://0x0.st/XVSx.txt
emerge --info: https://paste.gentoo.zip/hSkfCD7R
emerge -pqv: https://paste.gentoo.zip/WOeQw5hA
The error is very hard to track down in the logs, due to "waiting for
other jobs to finish" resulting in massive quantities of text to scroll
through.
I did manage to track down the actual error message though, and it's an
issue with the compiler receiving a SIGKILL:
389:20.50 error: could not compile `style` (lib)
389:20.54 Caused by:
389:20.72 process didn't exit successfully:
`CARGO=/usr/lib/rust/1.79.0/bin/cargo-1.79.0 CARGO_CRATE_NAME=style
CARGO_MANIFEST_DIR=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox-128.0.3/servo/compone
nts/style CARGO_PKG_AUTHORS='The Servo Project Developers'
CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MPL-2.0
CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=style
CARGO_PKG_README=README.md CARGO
_PKG_REPOSITORY='' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.0.1
CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=0
CARGO_PKG_VERSION_PATCH=1 CARGO_PKG_VERSION_PRE=''
LD_LIBRARY_PATH=/var/tmp/portage/www-cl
ient/firefox-128.0.3/work/firefox_build/release/deps
OUT_DIR=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/build/style-97a68456b2498359/out
/usr/bin/rustc --cra
te-name style --edition=2018 servo/components/style/lib.rs
--error-format=json
--json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type
lib --emit=dep-info,metadata,link -C opt-level=2 -C panic=abo
rt -C embed-bitcode=no --cfg 'feature="bindgen"' --cfg 'feature="gecko"'
--cfg 'feature="mozbuild"' --cfg 'feature="nsstring"' --cfg
'feature="regex"' --cfg 'feature="serde"' --cfg 'feature="toml"' -C
metadata=c
a116bbf990c009c -C extra-filename=-ca116bbf990c009c --out-dir
/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps
--target x86_64-unknown-linux-musl -C linker=/v
ar/tmp/portage/www-client/firefox-128.0.3/work/firefox-128.0.3/build/cargo-linker
-C strip=debuginfo -L
dependency=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release
/deps -L
dependency=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/release/deps
--extern
app_units=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release
/deps/libapp_units-23bb47b34762f781.rmeta --extern
arrayvec=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libarrayvec-2b4eee745db82b3e.rmeta
--extern atomi
c_refcell=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libatomic_refcell-cb57148bd6470ff3.rmeta
--extern bitflags=/var/tmp/portage/www-client/firefox-128.
0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libbitflags-1373efd736a93ba8.rmeta
--extern
byteorder=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/releas
e/deps/libbyteorder-be36daa9a57e230d.rmeta --extern
cssparser=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libcssparser-960378b7a209cc97.rmeta
--extern de
rive_more=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libderive_more-54005a681ceef14f.rmeta
--extern dom=/var/tmp/portage/www-client/firefox-128.0.3/work
/firefox_build/x86_64-unknown-linux-musl/release/deps/libdom-e85e762bf573015d.rmeta
--extern
euclid=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libeuclid
-01cfd351756be0a9.rmeta --extern
fxhash=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libfxhash-10904a7b8f64fef9.rmeta
--extern gecko_profiler=/var/tmp/por
tage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libgecko_profiler-95a2f9db25b8a44c.rmeta
--extern
icu_segmenter=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_
build/x86_64-unknown-linux-musl/release/deps/libicu_segmenter-4d3c7e04a09264b3.rmeta
--extern
indexmap=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libind
exmap-02d003d00ed76105.rmeta --extern
itertools=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libitertools-e3386f949e551411.rmeta
--extern itoa=/var/tmp/po
rtage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libitoa-350c5cabb2760ad2.rmeta
--extern
lazy_static=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_6
4-unknown-linux-musl/release/deps/liblazy_static-ccc7e0953dab0264.rmeta
--extern
log=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/liblog-6484083b68459965.
rmeta --extern
malloc_size_of=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libmalloc_size_of-efc28ed2c09175b7.rmeta
--extern
malloc_size_of_derive=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/release/deps/libmalloc_size_of_derive-28d2e3a3332b15bd.so
--extern
matches=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libmatches-18b2fa707a380497.rmeta
--extern
debug_unreachable=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libdebug_unreachable-ddb9a8df3713f0d8.rmeta
--extern
nsstring=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libnsstring-55d9bd2164fa59ef.rmeta
--extern
num_derive=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/release/deps/libnum_derive-d0bf1f258501f100.so
--extern
num_integer=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libnum_integer-d2b26449f5539538.rmeta
--extern
num_traits=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libnum_traits-89a3ece068b5b3aa.rmeta
--extern
num_cpus=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libnum_cpus-99d92fe17ebda3e6.rmeta
--extern
parking_lot=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libparking_lot-f4b01459d868c694.rmeta
--extern
precomputed_hash=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libprecomputed_hash-562514adfa10fc77.rmeta
--extern
rayon=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/librayon-3a510673591ced6f.rmeta
--extern
rayon_core=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/librayon_core-c997c3ef16c0bcb6.rmeta
--extern
selectors=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libselectors-d8d6e1d0941577c2.rmeta
--extern
serde=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libserde-427611b6f300ef55.rmeta
--extern
servo_arc=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libservo_arc-2d06c7e9d51d69ca.rmeta
--extern
smallbitvec=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libsmallbitvec-475b43bb61fc62e0.rmeta
--extern
smallvec=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libsmallvec-7d3a523a4cd48ad5.rmeta
--extern
static_assertions=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libstatic_assertions-f0c29131f592e259.rmeta
--extern
static_prefs=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libstatic_prefs-84dbe85c516224c9.rmeta
--extern
style_derive=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/release/deps/libstyle_derive-8ededa5f574e653b.so
--extern
style_traits=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libstyle_traits-109975e3c491b813.rmeta
--extern
thin_vec=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libthin_vec-460f585178181373.rmeta
--extern
time=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libtime-37133b45ee1cdf4a.rmeta
--extern
to_shmem=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libto_shmem-c3b41299e5ea1fae.rmeta
--extern
to_shmem_derive=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/release/deps/libto_shmem_derive-891cbc40c047bbae.so
--extern
uluru=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libuluru-f904b7de1acd12fc.rmeta
--extern
unicode_bidi=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libunicode_bidi-237bea115ce1ae16.rmeta
--extern
void=/var/tmp/portage/www-client/firefox-128.0.3/work/firefox_build/x86_64-unknown-linux-musl/release/deps/libvoid-ef178a38bfc1a91c.rmeta
--cap-lints warn -C target-cpu=native -C opt-level=3 -Clinker-plugin-lto
-C codegen-units=1` (signal: 9, SIGKILL: kill)
389:20.73 warning: build failed, waiting for other jobs to finish...