Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 874336

Summary: sys-libs/libcxxabi-15.0.1: x86_64-pc-linux-gnu-ld: error: unable to find library -lc++
Product: Gentoo Linux Reporter: Rubin Simons <me>
Component: Current packagesAssignee: LLVM support project <llvm>
Status: UNCONFIRMED ---    
Severity: normal CC: mgorny, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info
qlop -d 2022-10-01 -d 2022-10-03

Description Rubin Simons 2022-10-03 00:21:41 UTC
Created attachment 816085 [details]
build.log

Was compiling a bunch of ebuilds, ran into this: 

    Run Build Command(s):/usr/bin/ninja cmTC_e7f94 && [1/2] Building CXX object CMakeFiles/cmTC_e7f94.dir/testCXXCompiler.cxx.o
    [2/2] Linking CXX executable cmTC_e7f94
    FAILED: cmTC_e7f94 
    : && /usr/lib/llvm/15/bin/x86_64-pc-linux-gnu-clang++ --target=x86_64-pc-linux-gnu -march=native -O3 -pipe -Wl,-O1 -Wl,--as-needed CMakeFiles/cmTC_e7f94.dir/testCXXCompiler.cxx.o -o cmTC_e7f94   && :
    x86_64-pc-linux-gnu-ld: error: unable to find library -lc++
    clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
    ninja: build stopped: subcommand failed.
Comment 1 Rubin Simons 2022-10-03 00:22:27 UTC
Created attachment 816088 [details]
emerge --info
Comment 2 Rubin Simons 2022-10-03 00:23:16 UTC
Created attachment 816091 [details]
qlop -d 2022-10-01 -d 2022-10-03
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-04 01:04:13 UTC
I think it's because of the PDEPEND in libcxx, we should probably iterate over the available Clangs and pick the latest one which actually works.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-10-04 06:59:36 UTC
That's a default-libcxx system then?
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-04 13:05:50 UTC
(In reply to Michał Górny from comment #4)
> That's a default-libcxx system then?

yes