Skip to content

Instantly share code, notes, and snippets.

@jpyper
Created June 20, 2025 23:12
Show Gist options
  • Select an option

  • Save jpyper/0318b7dde7670c199f801fc99e1b9fc5 to your computer and use it in GitHub Desktop.

Select an option

Save jpyper/0318b7dde7670c199f801fc99e1b9fc5 to your computer and use it in GitHub Desktop.
Error While Compiling aur/ungoogled-chromium on Vanilla Arch Linux
==> Sources are ready.
==> Making package: ungoogled-chromium 137.0.7151.103-1 (Fri 20 Jun 2025 02:36:16 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
make: Entering directory '/home/john/.cache/yay/ungoogled-chromium/src/chromium-launcher-8'
cc -o chromium -DLAUNCHER_VERSION=\"v8\" -DCHROMIUM_NAME=\"chromium\" -DCHROMIUM_BINARY=\"/usr/lib/chromium/chromium\" -DCHROMIUM_VENDOR="\"Arch Linux\"" -march=znver3 -mtune=znver3 -O3 -pipe -w -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs launcher.c -lglib-2.0
make: Leaving directory '/home/john/.cache/yay/ungoogled-chromium/src/chromium-launcher-8'
-> Configuring Chromium
Done. Made 26165 targets from 3990 files in 4420ms
-> Building Chromium
ninja: Entering directory `out/Release'
[31271/51615] ACTION //components/optimization_guide/core:on_device_model_execution_proto_generator(//build/toolchain/linux/unbundle:default)
/home/john/.cache/yay/ungoogled-chromium/src/chromium-137.0.7151.103/third_party/protobuf/python/google/__init__.py:2: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
__import__('pkg_resources').declare_namespace(__name__)
[35857/51615] ACTION //third_party/dom_distiller_js:dom_distiller_proto_gen(//build/toolchain/linux/unbundle:default)
/home/john/.cache/yay/ungoogled-chromium/src/chromium-137.0.7151.103/third_party/protobuf/python/google/__init__.py:2: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
__import__('pkg_resources').declare_namespace(__name__)
[35858/51615] ACTION //third_party/dom_distiller_js:json_values_converter_test_proto_gen(//build/toolchain/linux/unbundle:default)
/home/john/.cache/yay/ungoogled-chromium/src/chromium-137.0.7151.103/third_party/protobuf/python/google/__init__.py:2: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
__import__('pkg_resources').declare_namespace(__name__)
[51614/51615] LINK ./chrome
FAILED: chrome
"python3" "../../build/toolchain/gcc_link_wrapper.py" --output="./chrome" -- clang++ -Wl,--version-script=../../build/linux/chrome.map -fuse-ld=lld -Wl,--fatal-warnings -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--icf=all -Wl,--color-diagnostics -Wl,-mllvm,-instcombine-lower-dbg-declare=0 -Wl,-mllvm,-split-threshold-for-reg-with-hint=0 -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 -m64 -no-canonical-prefixes -Wl,-O2 -Wl,--gc-sections -Wl,-z,defs -Wl,--as-needed -nostdlib++ -fsanitize=cfi-vcall -fsanitize=cfi-icall -rdynamic -pie -Wl,--disable-new-dtags -Wl,--lto-O2 prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgetopts.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_abort.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libtest.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunicode_width.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler2.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject.rlib -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -o "./chrome" -Wl,--start-group @"./chrome.rsp" -Wl,--end-group /usr/lib/clang/20/lib/linux/libclang_rt.builtins-x86_64.a -ldl -lpthread -lrt -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -ldbus-1 -lgio-2.0 -latk-bridge-2.0 -latk-1.0 -lcups -lfontconfig -latomic -lz -lresolv -lbrotlidec -lexpat -lpng16 -lwebpdemux -lwebpmux -lwebp -lfreetype -ljpeg -lharfbuzz-subset -lharfbuzz -lxcb -lxkbcommon -latspi -lopus -lm -lX11 -lXcomposite -lXdamage -lXext -lXfixes -lXrandr -lXrender -lXtst -lgbm -ldrm -lXi -lpci -lffi -lpangocairo-1.0 -lpango-1.0 -lcairo -ludev -lasound -lpulse -lFLAC -lxml2 -lminizip -lstdc++ -lxslt -lxshmfence -lbrotlienc -Wl,--start-group obj/third_party/rust/cxx/v1/lib/libcxx_lib.rlib obj/third_party/rust/foldhash/v0_1/lib/libfoldhash_lib.rlib obj/base/libbase_crust_ulogger.rlib obj/base/libbase_clogging_ulog_useverity_ubindgen.rlib obj/build/rust/chromium_prelude/libchromium.rlib obj/build/rust/allocator/libbuild_srust_sallocator_callocator.rlib obj/third_party/rust/log/v0_4/lib/liblog_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/memchr/v2/lib/libmemchr_lib.rlib obj/third_party/rust/ryu/v1/lib/libryu_lib.rlib obj/skia/libskia_cbridge_urust_uside.rlib obj/third_party/rust/font_types/v0_8/lib/libfont_types_lib.rlib obj/third_party/rust/bytemuck/v1/lib/libbytemuck_lib.rlib obj/third_party/rust/read_fonts/v0_27/lib/libread_fonts_lib.rlib obj/third_party/rust/skrifa/v0_29/lib/libskrifa_lib.rlib obj/skia/libskia_crust_upng_uffi.rlib obj/third_party/rust/png/v0_18/lib/libpng_lib.rlib obj/third_party/rust/bitflags/v2/lib/libbitflags_lib.rlib obj/third_party/rust/crc32fast/v1/lib/libcrc32fast_lib.rlib obj/third_party/rust/cfg_if/v1/lib/libcfg_if_lib.rlib obj/third_party/rust/fdeflate/v0_3/lib/libfdeflate_lib.rlib obj/third_party/rust/simd_adler32/v0_3/lib/libsimd_adler32_lib.rlib obj/third_party/rust/flate2/v1/lib/libflate2_lib.rlib obj/third_party/rust/miniz_oxide/v0_8/lib/libminiz_oxide_lib.rlib obj/third_party/rust/adler2/v2/lib/libadler2_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/third_party/rust/llguidance/v0_7/lib/libllguidance_lib.rlib obj/third_party/rust/anyhow/v1/lib/libanyhow_lib.rlib obj/third_party/rust/derivre/v0_3/lib/libderivre_lib.rlib obj/third_party/rust/hashbrown/v0_15/lib/libhashbrown_lib.rlib obj/third_party/rust/regex_syntax/v0_8/lib/libregex_syntax_lib.rlib obj/third_party/rust/strum/v0_27/lib/libstrum_lib.rlib obj/third_party/rust/indexmap/v2/lib/libindexmap_lib.rlib obj/third_party/rust/equivalent/v1/lib/libequivalent_lib.rlib obj/third_party/rust/serde_json/v1/lib/libserde_json_lib.rlib obj/third_party/rust/toktrie/v0_7/lib/libtoktrie_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: error: Linking two modules of different target triples: 'obj/build/rust/allocator/liballocator_cxx_generated.a(allocator_impls_ffi.rs.o at 212)' is 'x86_64-pc-linux-gnu' whereas 'obj/third_party/crabbyavif/libthird_uparty_scrabbyavif_ccrabbyavif.rlib(libthird_uparty_scrabbyavif_ccrabbyavif.third_uparty_scrabbyavif_ccrabbyavif.becfc8e1c6e919a4-cgu.0.rcgu.o at 954922)' is 'x86_64-unknown-linux-gnu'
ld.lld: error: Linking two modules of different target triples: 'obj/build/rust/allocator/liballocator_impls.a(allocator_impls.o at 104)' is 'x86_64-pc-linux-gnu' whereas 'obj/third_party/crabbyavif/libthird_uparty_scrabbyavif_ccrabbyavif.rlib(libthird_uparty_scrabbyavif_ccrabbyavif.third_uparty_scrabbyavif_ccrabbyavif.becfc8e1c6e919a4-cgu.0.rcgu.o at 954922)' is 'x86_64-unknown-linux-gnu'
ld.lld: error: Linking two modules of different target triples: 'obj/third_party/dav1d/libdav1d.a(lib.o at 1050)' is 'x86_64-pc-linux-gnu' whereas 'obj/third_party/crabbyavif/libthird_uparty_scrabbyavif_ccrabbyavif.rlib(libthird_uparty_scrabbyavif_ccrabbyavif.third_uparty_scrabbyavif_ccrabbyavif.becfc8e1c6e919a4-cgu.0.rcgu.o at 954922)' is 'x86_64-unknown-linux-gnu'
ld.lld: error: Linking two modules of different target triples: 'obj/third_party/libyuv/libyuv_internal.a(row_common.o at 2480)' is 'x86_64-pc-linux-gnu' whereas 'obj/third_party/crabbyavif/libthird_uparty_scrabbyavif_ccrabbyavif.rlib(libthird_uparty_scrabbyavif_ccrabbyavif.third_uparty_scrabbyavif_ccrabbyavif.becfc8e1c6e919a4-cgu.0.rcgu.o at 954922)' is 'x86_64-unknown-linux-gnu'
ld.lld: error: Linking two modules of different target triples: 'obj/build/rust/allocator/liballocator_cxx_generated.a(allocator_impls_ffi.rs.o at 212)' is 'x86_64-pc-linux-gnu' whereas 'obj/third_party/rust/skrifa/v0_29/lib/libskrifa_lib.rlib(libskrifa_lib.skrifa.61911450f7d6b6bf-cgu.0.rcgu.o at 2424018)' is 'x86_64-unknown-linux-gnu'
ld.lld: error: Linking two modules of different target triples: 'obj/build/rust/allocator/liballocator_impls.a(allocator_impls.o at 104)' is 'x86_64-pc-linux-gnu' whereas 'obj/third_party/rust/skrifa/v0_29/lib/libskrifa_lib.rlib(libskrifa_lib.skrifa.61911450f7d6b6bf-cgu.0.rcgu.o at 2424018)' is 'x86_64-unknown-linux-gnu'
ld.lld: error: Linking two modules of different target triples: 'obj/build/rust/allocator/liballocator_cxx_generated.a(allocator_impls_ffi.rs.o at 212)' is 'x86_64-pc-linux-gnu' whereas 'obj/third_party/rust/regex_syntax/v0_8/lib/libregex_syntax_lib.rlib(libregex_syntax_lib.regex_syntax.dd75763007f6696-cgu.0.rcgu.o at 4771910)' is 'x86_64-unknown-linux-gnu'
ld.lld: error: Linking two modules of different target triples: 'obj/build/rust/allocator/liballocator_impls.a(allocator_impls.o at 104)' is 'x86_64-pc-linux-gnu' whereas 'obj/third_party/rust/regex_syntax/v0_8/lib/libregex_syntax_lib.rlib(libregex_syntax_lib.regex_syntax.dd75763007f6696-cgu.0.rcgu.o at 4771910)' is 'x86_64-unknown-linux-gnu'
ld.lld: error: Linking two modules of different target triples: 'obj/build/rust/allocator/liballocator_cxx_generated.a(allocator_impls_ffi.rs.o at 212)' is 'x86_64-pc-linux-gnu' whereas 'obj/third_party/rust/llguidance/v0_7/lib/libllguidance_lib.rlib(libllguidance_lib.llguidance.ed65e603a589ad3c-cgu.0.rcgu.o at 2009124)' is 'x86_64-unknown-linux-gnu'
ld.lld: error: Linking two modules of different target triples: 'obj/build/rust/allocator/liballocator_impls.a(allocator_impls.o at 104)' is 'x86_64-pc-linux-gnu' whereas 'obj/third_party/rust/llguidance/v0_7/lib/libllguidance_lib.rlib(libllguidance_lib.llguidance.ed65e603a589ad3c-cgu.0.rcgu.o at 2009124)' is 'x86_64-unknown-linux-gnu'
ld.lld: error: Linking two modules of different target triples: 'obj/build/rust/allocator/liballocator_cxx_generated.a(allocator_impls_ffi.rs.o at 212)' is 'x86_64-pc-linux-gnu' whereas 'obj/third_party/rust/derivre/v0_3/lib/libderivre_lib.rlib(libderivre_lib.derivre.7a72a2389b2f6892-cgu.0.rcgu.o at 388126)' is 'x86_64-unknown-linux-gnu'
ld.lld: error: Linking two modules of different target triples: 'obj/build/rust/allocator/liballocator_impls.a(allocator_impls.o at 104)' is 'x86_64-pc-linux-gnu' whereas 'obj/third_party/rust/derivre/v0_3/lib/libderivre_lib.rlib(libderivre_lib.derivre.7a72a2389b2f6892-cgu.0.rcgu.o at 388126)' is 'x86_64-unknown-linux-gnu'
ld.lld: error: Linking two modules of different target triples: 'obj/build/rust/allocator/liballocator_cxx_generated.a(allocator_impls_ffi.rs.o at 212)' is 'x86_64-pc-linux-gnu' whereas 'obj/skia/libskia_cbridge_urust_uside.rlib(libskia_cbridge_urust_uside.skia_cbridge_urust_uside.8481ae1056610a16-cgu.0.rcgu.o at 313060)' is 'x86_64-unknown-linux-gnu'
ld.lld: error: Linking two modules of different target triples: 'obj/build/rust/allocator/liballocator_impls.a(allocator_impls.o at 104)' is 'x86_64-pc-linux-gnu' whereas 'obj/skia/libskia_cbridge_urust_uside.rlib(libskia_cbridge_urust_uside.skia_cbridge_urust_uside.8481ae1056610a16-cgu.0.rcgu.o at 313060)' is 'x86_64-unknown-linux-gnu'
ld.lld: error: Linking two modules of different target triples: 'obj/skia/libbridge_rust_side_cxx_generated.a(ffi.rs.o at 110)' is 'x86_64-pc-linux-gnu' whereas 'obj/skia/libskia_cbridge_urust_uside.rlib(libskia_cbridge_urust_uside.skia_cbridge_urust_uside.8481ae1056610a16-cgu.0.rcgu.o at 313060)' is 'x86_64-unknown-linux-gnu'
ld.lld: error: Linking two modules of different target triples: 'obj/build/rust/allocator/liballocator_cxx_generated.a(allocator_impls_ffi.rs.o at 212)' is 'x86_64-pc-linux-gnu' whereas 'obj/third_party/rust/serde_json_lenient/v0_2/lib/libserde_json_lenient_lib.rlib(libserde_json_lenient_lib.serde_json_lenient.f06b8c877ee508a7-cgu.0.rcgu.o at 1973522)' is 'x86_64-unknown-linux-gnu'
ld.lld: error: Linking two modules of different target triples: 'obj/build/rust/allocator/liballocator_impls.a(allocator_impls.o at 104)' is 'x86_64-pc-linux-gnu' whereas 'obj/third_party/rust/serde_json_lenient/v0_2/lib/libserde_json_lenient_lib.rlib(libserde_json_lenient_lib.serde_json_lenient.f06b8c877ee508a7-cgu.0.rcgu.o at 1973522)' is 'x86_64-unknown-linux-gnu'
ld.lld: error: Linking two modules of different target triples: 'obj/build/rust/allocator/liballocator_cxx_generated.a(allocator_impls_ffi.rs.o at 212)' is 'x86_64-pc-linux-gnu' whereas 'obj/third_party/rust/serde_json/v1/lib/libserde_json_lib.rlib(libserde_json_lib.serde_json.1d5bced2851c725c-cgu.0.rcgu.o at 1627158)' is 'x86_64-unknown-linux-gnu'
ld.lld: error: Linking two modules of different target triples: 'obj/build/rust/allocator/liballocator_impls.a(allocator_impls.o at 104)' is 'x86_64-pc-linux-gnu' whereas 'obj/third_party/rust/serde_json/v1/lib/libserde_json_lib.rlib(libserde_json_lib.serde_json.1d5bced2851c725c-cgu.0.rcgu.o at 1627158)' is 'x86_64-unknown-linux-gnu'
ld.lld: error: Linking two modules of different target triples: 'obj/build/rust/allocator/liballocator_cxx_generated.a(allocator_impls_ffi.rs.o at 212)' is 'x86_64-pc-linux-gnu' whereas 'obj/third_party/rust/qr_code/v2/lib/libqr_code_lib.rlib(libqr_code_lib.qr_code.3cb45ebe841d7b00-cgu.0.rcgu.o at 293378)' is 'x86_64-unknown-linux-gnu'
ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
Aborting...
-> error making: ungoogled-chromium-exit status 4
-> Failed to install the following packages. Manual intervention is required:
ungoogled-chromium - exit status 4
~ took 2h39m2s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment