PF4Public / gentoo-overlay

Personal Gentoo overlay

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

www-client/ungoogled-chromium-121.0.6167.139_p1: ld.lld: error: undefined symbol: snappy::Compress(char const*, unsigned long, std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>>*)

crabbedhaloablution opened this issue · comments

Last bits of the log:

[56739/56739] "python3.11" "../../build/toolchain/gcc_link_wrapper.py" --output="./chrome" -- x86_64-pc-linux-gnu-clang++ -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-di
agnostics -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 -fwhole-program-vtables -Wl,--undefined-version -Wl,--no-call-graph-profile-so
rt -no-canonical-prefixes -Wl,-z,defs -Wl,--as-needed -nostdlib++ -rdynamic -pie -Wl,--disable-new-dtags -Wl,--lto-O2 -Wl,--as-needed -Wl,--thinlto-jobs=24 -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 -licui18n -licuuc -licudata -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -ldbus-1 -latk-1.0 -latk-bridge-2.0 -lcups -lgio-2.0 -ldrm -lfontconfig -latomic -lz -levent -latspi -lresolv -lzstd -lexpat -lpng16 -lwebp -lwebpdemux -lwebpmux -lfreetype -ljpeg -lharfbuzz-
subset -lharfbuzz -lopenh264 -lm -lX11 -lXcomposite -lXdamage -lXext -lXfixes -lXrender -lXrandr -lXtst -lgbm -lEGL -lxcb -lxkbcommon -lXi -lpci -lffi -lpangocairo-1.0 -lpango-1.0 -lcairo -lasound -lpulse -lFLAC -lsnappy -lminizip -lxml2 -lxslt -lxshmfence -lstdc++ -llcms2 -llcms2_
fast_float -llcms2_threaded -lpng 
FAILED: chrome 
"python3.11" "../../build/toolchain/gcc_link_wrapper.py" --output="./chrome" -- x86_64-pc-linux-gnu-clang++ -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 -fwhole-program-vtables -Wl,--undefined-version -Wl,--no-call-graph-profile-sort -no-canonic
al-prefixes -Wl,-z,defs -Wl,--as-needed -nostdlib++ -rdynamic -pie -Wl,--disable-new-dtags -Wl,--lto-O2 -Wl,--as-needed -Wl,--thinlto-jobs=24 -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 -
licui18n -licuuc -licudata -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -ldbus-1 -latk-1.0 -latk-bridge-2.0 -lcups -lgio-2.0 -ldrm -lfontconfig -latomic -lz -levent -latspi -lresolv -lzstd -lexpat -lpng16 -lwebp -lwebpdemux -lwebpmux -lfreetype -ljpeg -lharfbuzz-subset -lharfb
uzz -lopenh264 -lm -lX11 -lXcomposite -lXdamage -lXext -lXfixes -lXrender -lXrandr -lXtst -lgbm -lEGL -lxcb -lxkbcommon -lXi -lpci -lffi -lpangocairo-1.0 -lpango-1.0 -lcairo -lasound -lpulse -lFLAC -lsnappy -lminizip -lxml2 -lxslt -lxshmfence -lstdc++ -llcms2 -llcms2_fast_float -ll
cms2_threaded -lpng 
ld.lld: error: undefined symbol: snappy::Compress(char const*, unsigned long, std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>>*)
>>> referenced by compression_module.cc
>>>               thinlto-cache/llvmcache-ABFF9ED13F9F03E516D2AD5E0CE909A467A7CDAB:(reporting::CompressionModule::CompressRecord(std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>>, scoped_refptr<reporting::ResourceManager>, base::OnceCallback<vo
id (std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>>, std::__Cr::optional<reporting::CompressionInformation>)>) const)
x86_64-pc-linux-gnu-clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

Use flags:

[ebuild     U  ] www-client/ungoogled-chromium-121.0.6167.139_p1::pf4public [119.0.6045.199_p1::pf4public] USE="X bluetooth clang cups custom-cflags libcxx%* official optimize-thinlto proprietary-codecs pulseaudio qt5 screencast system-harfbuzz system-icu system-libevent system-libusb system-openh264 system-png system-snappy system-zstd thinlto vaapi wayland -cfi -convert-dict -cromite% -debug -enable-driver -gtk4 -hangouts -headless -hevc -kerberos -nvidia -optimize-webui -override-data-dir -pax-kernel -pgo -qt6 (-selinux) -system-abseil-cpp -system-av1 -system-brotli -system-crc32c -system-double-conversion -system-ffmpeg -system-jsoncpp* -system-libvpx -system-openjpeg -system-re2 -system-woff2 -widevine (-uazo-bromite%)" L10N="af am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr sv sw ta te th tr uk ur vi zh-CN zh-TW" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB

You need to rebuild snappy with Clang.

Or disable it.

if use libcxx; then
ewarn
ewarn "You have enabled libcxx, please be aware that system-*"
ewarn "and some other c++ dependencies need to be compiled"
ewarn "with the same library as ungoogled-chromium itself"
ewarn "dev-libs/jsoncpp is most problematic, see #58 #49 #119 for details"
ewarn "Simplest solution would be to disable corresponding system-* flags"
ewarn
fi