Build Chromium using mold. And this happens: [726/60913] "python3.11" "../../build/toolchain/gcc_link_wrapper.py" --output="./chrome_sandbox" -- x86_64-pc-linux-gnu-clang++-18 -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 -nostdlib++ -Wl,--lto-O0 -rdynamic -pie -Wl,--disable-new-dtags -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -fuse-ld=mold -Wl,--undefined-version -o "./chrome_sandbox" -Wl,--start-group @"./chrome_sandbox.rsp" -Wl,--end-group -ldl -lpthread -lrt -Wl,--start-group -Wl,--end-group FAILED: chrome_sandbox "python3.11" "../../build/toolchain/gcc_link_wrapper.py" --output="./chrome_sandbox" -- x86_64-pc-linux-gnu-clang++-18 -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 -nostdlib++ -Wl,--lto-O0 -rdynamic -pie -Wl,--disable-new-dtags -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -fuse-ld=mold -Wl,--undefined-version -o "./chrome_sandbox" -Wl,--start-group @"./chrome_sandbox.rsp" -Wl,--end-group -ldl -lpthread -lrt -Wl,--start-group -Wl,--end-group mold: fatal: unknown -m argument: llvm Reproducible: Always
Created attachment 898482 [details] build.log
Created attachment 898483 [details] emerge --info
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=213cf8bacaee8816cd161bf4f48879befede462d commit 213cf8bacaee8816cd161bf4f48879befede462d Author: Matt Jolly <kangie@gentoo.org> AuthorDate: 2024-08-07 10:26:20 +0000 Commit: Matt Jolly <kangie@gentoo.org> CommitDate: 2024-08-07 14:40:32 +0000 www-client/chromium: add 127.0.6533.99 Attempt to detect and `die` if ld is 'mold'. This is not supported and causes builds to fail when targets are linked. Bug: https://bugs.gentoo.org/936858 Bug: https://bugs.gentoo.org/937510 Closes: https://bugs.gentoo.org/936792 Signed-off-by: Matt Jolly <kangie@gentoo.org> www-client/chromium/Manifest | 2 + www-client/chromium/chromium-127.0.6533.99.ebuild | 1480 +++++++++++++++++++++ 2 files changed, 1482 insertions(+)