Open haoyi-codes opened 3 days ago
I can confirm that this also occurs with chromium-131.0.6778.85.
I have noticed that the build log shows some warnings during the linking phase, which seem unrelated but could be the cause of a later issue.
[50898/50898] "python3.12" "../../build/toolchain/gcc_link_wrapper.py" --output="./chrome" -- x86_64-pc-linux-musl-clang++-19 -Wl,--version-script=../../build/linux/chrome.map -fuse-ld=lld -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--icf=all -Wl,--color-diagnostics -Wl,--thinlto-cache-dir=thinlto-cache -Wl,--thinlto-cache-policy=cache_size=10\%:cache_size_bytes=40g:cache_size_files=100000 -flto=thin -Wl,--thinlto-jobs=all -Wl,-mllvm,-import-instr-limit=30 -Wl,-mllvm,-disable-auto-upgrade-debug-info -Wl,-mllvm,-inlinehint-threshold=360 -fwhole-program-vtables -Wl,--undefined-version -Wl,--no-call-graph-profile-sort -no-canonical-prefixes -Wl,-z,defs -Wl,--as-needed -fsanitize=cfi-vcall -fsanitize=cfi-icall -rdynamic -pie -Wl,--disable-new-dtags -Wl,--lto-O2 prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-musl/lib/libcfg_if.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-musl/lib/libcore.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-musl/lib/libgetopts.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-musl/lib/libhashbrown.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-musl/lib/libpanic_abort.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-musl/lib/libpanic_unwind.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_demangle.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd_detect.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-musl/lib/libtest.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-musl/lib/libunicode_width.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-musl/lib/libunwind.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-musl/lib/libaddr2line.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-musl/lib/libadler.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-musl/lib/libgimli.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-musl/lib/libmemchr.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-musl/lib/libminiz_oxide.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-musl/lib/libobject.rlib -Wl,-O2 -Wl,--as-needed -Wl,-z,defs -Wl,-z,now -Wl,-z,relro -Wl,--undefined-version -o "./chrome" -Wl,--start-group @"./chrome.rsp" -Wl,--end-group -ldl -lpthread -lrt -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -ldbus-1 -latk-bridge-2.0 -latk-1.0 -lgio-2.0 -ldrm -lfontconfig -lexecinfo -lz -lresolv -lzstd -lexpat -lpng16 -lwebpdemux -lwebpmux -lwebp -lfreetype -ljpeg -lharfbuzz-subset -lharfbuzz -lgbm -lEGL -lxkbcommon -lpci -lffi -lpangocairo-1.0 -lpango-1.0 -lcairo -ludev -lasound -lpulse -lFLAC -lm -lxml2 -licuuc -latspi -lminizip -lxslt -Wl,--start-group obj/third_party/rust/cxx/v1/lib/libcxx_lib.rlib obj/third_party/rust/serde_json_lenient/v0_2/wrapper/libthird_uparty_srust_sserde_ujson_ulenient_sv0_u2_swrapper_cwrapper.rlib obj/third_party/rust/serde/v1/lib/libserde_lib.rlib obj/third_party/rust/serde_json_lenient/v0_2/lib/libserde_json_lenient_lib.rlib obj/third_party/rust/itoa/v1/lib/libitoa_lib.rlib obj/third_party/rust/ryu/v1/lib/libryu_lib.rlib obj/build/rust/chromium_prelude/libchromium.rlib obj/skia/libskia_cbridge_urust_uside.rlib obj/third_party/rust/font_types/v0_7/lib/libfont_types_lib.rlib obj/third_party/rust/bytemuck/v1/lib/libbytemuck_lib.rlib obj/third_party/rust/read_fonts/v0_22/lib/libread_fonts_lib.rlib obj/third_party/rust/skrifa/v0_23/lib/libskrifa_lib.rlib obj/third_party/blink/common/rust_crash/libthird_uparty_sblink_scommon_srust_ucrash_crs.rlib obj/third_party/crabbyavif/libthird_uparty_scrabbyavif_ccrabbyavif.rlib obj/third_party/crabbyavif/libdav1d_sys.rlib obj/third_party/crabbyavif/liblibyuv_sys.rlib obj/third_party/rust/libc/v0_2/lib/liblibc_lib.rlib obj/components/qr_code_generator/libcomponents_sqr_ucode_ugenerator_cqr_ucode_ugenerator_uffi_uglue.rlib obj/third_party/rust/qr_code/v2/lib/libqr_code_lib.rlib -Wl,--end-group
ld.lld: warning: Linking two modules of different target triples: 'obj/third_party/dav1d/libdav1d.a(lib.o at 6256)' is 'x86_64-pc-linux-musl' whereas 'obj/third_party/crabbyavif/libthird_uparty_scrabbyavif_ccrabbyavif.rlib(libthird_uparty_scrabbyavif_ccrabbyavif.third_uparty_scrabbyavif_ccrabbyavif.245c77fe8d5deb74-cgu.0.rcgu.o at 1110336)' is 'x86_64-unknown-linux-musl'
ld.lld: warning: Linking two modules of different target triples: 'obj/third_party/libyuv/libyuv_internal.a(row_common.o at 34684)' is 'x86_64-pc-linux-musl' whereas 'obj/third_party/crabbyavif/libthird_uparty_scrabbyavif_ccrabbyavif.rlib(libthird_uparty_scrabbyavif_ccrabbyavif.third_uparty_scrabbyavif_ccrabbyavif.245c77fe8d5deb74-cgu.0.rcgu.o at 1110336)' is 'x86_64-unknown-linux-musl'
ld.lld: warning: Linking two modules of different target triples: 'obj/skia/libbridge_rust_side_cxx_generated.a(ffi.rs.o at 9186)' is 'x86_64-pc-linux-musl' whereas 'obj/skia/libskia_cbridge_urust_uside.rlib(libskia_cbridge_urust_uside.skia_cbridge_urust_uside.2b732acbccc1f768-cgu.0.rcgu.o at 420130)' is 'x86_64-unknown-linux-musl'
ld.lld: warning: Linking two modules of different target triples: 'obj/build/rust/libcxx_cppdeps.a(cxx.o at 29740)' is 'x86_64-pc-linux-musl' whereas 'obj/third_party/rust/cxx/v1/lib/libcxx_lib.rlib(libcxx_lib.cxx.4c8320cfa23ca798-cgu.0.rcgu.o at 772210)' is 'x86_64-unknown-linux-musl'
ld.lld: warning: Linking two modules of different target triples: 'obj/third_party/rust/cxx/v1/lib/libcxx_lib.rlib(libcxx_lib.cxx.4c8320cfa23ca798-cgu.0.rcgu.o at 772210)' is 'x86_64-unknown-linux-musl' whereas 'obj/build/rust/libcxx_cppdeps.a(cxx.o at 29740)' is 'x86_64-pc-linux-musl'
ld.lld: warning: Linking two modules of different target triples: 'obj/skia/libskia_cbridge_urust_uside.rlib(libskia_cbridge_urust_uside.skia_cbridge_urust_uside.2b732acbccc1f768-cgu.0.rcgu.o at 420130)' is 'x86_64-unknown-linux-musl' whereas 'obj/skia/libskia.a(SkTypeface_fontations.o at 1287954)' is 'x86_64-pc-linux-musl'
ld.lld: warning: Linking two modules of different target triples: 'obj/third_party/rust/cxx/v1/lib/libcxx_lib.rlib(libcxx_lib.cxx.4c8320cfa23ca798-cgu.0.rcgu.o at 772210)' is 'x86_64-unknown-linux-musl' whereas 'obj/skia/libskia.a(SkTypeface_fontations.o at 1287954)' is 'x86_64-pc-linux-musl'
ld.lld: warning: Linking two modules of different target triples: 'obj/third_party/crabbyavif/libthird_uparty_scrabbyavif_ccrabbyavif.rlib(libthird_uparty_scrabbyavif_ccrabbyavif.third_uparty_scrabbyavif_ccrabbyavif.245c77fe8d5deb74-cgu.0.rcgu.o at 1110336)' is 'x86_64-unknown-linux-musl' whereas 'obj/third_party/blink/renderer/platform/image-decoders/libimage_decoders.a(crabbyavif_image_decoder.o at 65310)' is 'x86_64-pc-linux-musl'
ld.lld: warning: Linking two modules of different target triples: 'obj/third_party/rust/serde_json_lenient/v0_2/wrapper/libwrapper_cxx_generated.a(lib.rs.o at 1136)' is 'x86_64-pc-linux-musl' whereas 'obj/third_party/rust/serde_json_lenient/v0_2/wrapper/libthird_uparty_srust_sserde_ujson_ulenient_sv0_u2_swrapper_cwrapper.rlib(libthird_uparty_srust_sserde_ujson_ulenient_sv0_u2_swrapper_cwrapper.third_uparty_srust_sserde_ujson_ulenient_sv0_u2_swrapper_cwrapper.6204f2e4f80acc51-cgu.0.rcgu.o at 74964)' is 'x86_64-unknown-linux-musl'
ld.lld: warning: Linking two modules of different target triples: 'obj/skia/libskia_cbridge_urust_uside.rlib(libskia_cbridge_urust_uside.skia_cbridge_urust_uside.2b732acbccc1f768-cgu.0.rcgu.o at 420130)' is 'x86_64-unknown-linux-musl' whereas 'obj/skia/libbridge_rust_side_cxx_generated.a(ffi.rs.o at 9186)' is 'x86_64-pc-linux-musl'
ld.lld: warning: Linking two modules of different target triples: 'obj/third_party/rust/cxx/v1/lib/libcxx_lib.rlib(libcxx_lib.cxx.4c8320cfa23ca798-cgu.0.rcgu.o at 772210)' is 'x86_64-unknown-linux-musl' whereas 'obj/skia/libbridge_rust_side_cxx_generated.a(ffi.rs.o at 9186)' is 'x86_64-pc-linux-musl'
ld.lld: warning: Linking two modules of different target triples: 'obj/third_party/rust/cxx/v1/lib/libcxx_lib.rlib(libcxx_lib.cxx.4c8320cfa23ca798-cgu.0.rcgu.o at 772210)' is 'x86_64-unknown-linux-musl' whereas 'obj/base/libbase.a(json_reader.o at 1069984)' is 'x86_64-pc-linux-musl'
ld.lld: warning: Linking two modules of different target triples: 'obj/third_party/rust/serde_json_lenient/v0_2/wrapper/libthird_uparty_srust_sserde_ujson_ulenient_sv0_u2_swrapper_cwrapper.rlib(libthird_uparty_srust_sserde_ujson_ulenient_sv0_u2_swrapper_cwrapper.third_uparty_srust_sserde_ujson_ulenient_sv0_u2_swrapper_cwrapper.6204f2e4f80acc51-cgu.0.rcgu.o at 74964)' is 'x86_64-unknown-linux-musl' whereas 'obj/base/libbase.a(json_reader.o at 1069984)' is 'x86_64-pc-linux-musl'
ld.lld: warning: Linking two modules of different target triples: 'obj/third_party/blink/common/rust_crash/libthird_uparty_sblink_scommon_srust_ucrash_crs.rlib(libthird_uparty_sblink_scommon_srust_ucrash_crs.third_uparty_sblink_scommon_srust_ucrash_crs.fd05da68626c7609-cgu.0.rcgu.o at 6314)' is 'x86_64-unknown-linux-musl' whereas 'obj/third_party/blink/common/common/chrome_debug_urls.o' is 'x86_64-pc-linux-musl'
ld.lld: warning: Linking two modules of different target triples: 'obj/build/rust/libcxx_cppdeps.a(cxx.o at 29740)' is 'x86_64-pc-linux-musl' whereas 'obj/components/qr_code_generator/libcomponents_sqr_ucode_ugenerator_cqr_ucode_ugenerator_uffi_uglue.rlib(libcomponents_sqr_ucode_ugenerator_cqr_ucode_ugenerator_uffi_uglue.components_sqr_ucode_ugenerator_cqr_ucode_ugenerator_uffi_uglue.44a8e199e23c83d2-cgu.0.rcgu.o at 14666)' is 'x86_64-unknown-linux-musl'
ld.lld: warning: Linking two modules of different target triples: 'obj/third_party/rust/serde_json_lenient/v0_2/wrapper/libthird_uparty_srust_sserde_ujson_ulenient_sv0_u2_swrapper_cwrapper.rlib(libthird_uparty_srust_sserde_ujson_ulenient_sv0_u2_swrapper_cwrapper.third_uparty_srust_sserde_ujson_ulenient_sv0_u2_swrapper_cwrapper.6204f2e4f80acc51-cgu.0.rcgu.o at 74964)' is 'x86_64-unknown-linux-musl' whereas 'obj/third_party/rust/serde_json_lenient/v0_2/wrapper/libwrapper_cxx_generated.a(lib.rs.o at 1136)' is 'x86_64-pc-linux-musl'
ld.lld: warning: Linking two modules of different target triples: 'obj/components/qr_code_generator/libcomponents_sqr_ucode_ugenerator_cqr_ucode_ugenerator_uffi_uglue.rlib(libcomponents_sqr_ucode_ugenerator_cqr_ucode_ugenerator_uffi_uglue.components_sqr_ucode_ugenerator_cqr_ucode_ugenerator_uffi_uglue.44a8e199e23c83d2-cgu.0.rcgu.o at 14666)' is 'x86_64-unknown-linux-musl' whereas 'obj/components/qr_code_generator/qr_code_generator/qr_code_generator.o' is 'x86_64-pc-linux-musl'
ld.lld: warning: Linking two modules of different target triples: 'obj/third_party/rust/cxx/v1/lib/libcxx_lib.rlib(libcxx_lib.cxx.4c8320cfa23ca798-cgu.0.rcgu.o at 772210)' is 'x86_64-unknown-linux-musl' whereas 'obj/components/qr_code_generator/qr_code_generator/qr_code_generator.o' is 'x86_64-pc-linux-musl'
ld.lld: warning: Linking two modules of different target triples: 'obj/third_party/blink/common/rust_crash/librs_cxx_generated.a(lib.rs.o at 308)' is 'x86_64-pc-linux-musl' whereas 'obj/third_party/blink/common/rust_crash/libthird_uparty_sblink_scommon_srust_ucrash_crs.rlib(libthird_uparty_sblink_scommon_srust_ucrash_crs.third_uparty_sblink_scommon_srust_ucrash_crs.fd05da68626c7609-cgu.0.rcgu.o at 6314)' is 'x86_64-unknown-linux-musl'
ld.lld: warning: Linking two modules of different target triples: 'obj/third_party/blink/common/rust_crash/libthird_uparty_sblink_scommon_srust_ucrash_crs.rlib(libthird_uparty_sblink_scommon_srust_ucrash_crs.third_uparty_sblink_scommon_srust_ucrash_crs.fd05da68626c7609-cgu.0.rcgu.o at 6314)' is 'x86_64-unknown-linux-musl' whereas 'obj/third_party/blink/common/rust_crash/librs_cxx_generated.a(lib.rs.o at 308)' is 'x86_64-pc-linux-musl'
ld.lld: warning: Linking two modules of different target triples: 'obj/components/qr_code_generator/libcomponents_sqr_ucode_ugenerator_cqr_ucode_ugenerator_uffi_uglue.rlib(libcomponents_sqr_ucode_ugenerator_cqr_ucode_ugenerator_uffi_uglue.components_sqr_ucode_ugenerator_cqr_ucode_ugenerator_uffi_uglue.44a8e199e23c83d2-cgu.0.rcgu.o at 14666)' is 'x86_64-unknown-linux-musl' whereas 'obj/components/qr_code_generator/libqr_code_generator_ffi_glue_cxx_generated.a(qr_code_generator_ffi_glue.rs.o at 344)' is 'x86_64-pc-linux-musl'
ld.lld: warning: Linking two modules of different target triples: 'obj/third_party/blink/common/rust_crash/libthird_uparty_sblink_scommon_srust_ucrash_crs.rlib(libthird_uparty_sblink_scommon_srust_ucrash_crs.third_uparty_sblink_scommon_srust_ucrash_crs.fd05da68626c7609-cgu.0.rcgu.o at 6314)' is 'x86_64-unknown-linux-musl' whereas 'obj/third_party/blink/common/rust_crash/cpp/rust_crash.o' is 'x86_64-pc-linux-musl'
warning: ThinLTO cache pruning happens since the total size of the cache files consumed by the current link job (912743352 bytes) exceeds maximum cache size (883339285 bytes); consider adjusting --thinlto-cache-policy
* Skipping make test/check due to ebuild restriction.
/var/tmp/portage/www-client/chromium-131.0.6778.85/work/chromium-131.0.6778.85
It seems alpine doesn't enable CFI. https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/community/chromium/APKBUILD#L693
Perhaps they are aware of this issue? Maybe I could ask for their reasonings behind disabling it.
I have compiled this chromium version with
-flto=thin
therefore enabling CFI. However, it fails on launch and the terminal gives me this output:I have compiled this version before with the exact same patches/use flags but without lto/cfi and it functioned properly without this error.
Here are the package settings from when I compiled it without LTO:
Please let me know if you need anything further such as an
emerge --info
.