Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 907889 - dev-util/include-what-you-use: linker error: multiple undefined reference with LLVM 16.0.5
Summary: dev-util/include-what-you-use: linker error: multiple undefined reference wit...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-05 08:42 UTC by foearb
Modified: 2023-06-05 08:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info include-what-you-use (file_907889.txt,7.32 KB, text/plain)
2023-06-05 08:47 UTC, foearb
Details
build.log (file_907889.txt,39.47 KB, text/plain)
2023-06-05 08:48 UTC, foearb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description foearb 2023-06-05 08:42:09 UTC
I get multiple underfined references when linking include-what-you-use with LLVM 16.0.5.

Reproducible: Always

Steps to Reproduce:
1. Emerge Clang and LLVM 16.0.5
2. Emerge include-what-you-use-0.20
Actual Results:  
Link fails.

Expected Results:  
Link succeeds
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-05 08:43:20 UTC
Please include the full build.log and emerge --info.
Comment 2 foearb 2023-06-05 08:47:30 UTC
Created attachment 863319 [details]
emerge --info include-what-you-use
Comment 3 foearb 2023-06-05 08:47:59 UTC
Compiles with Clang.
Comment 4 foearb 2023-06-05 08:48:48 UTC
Created attachment 863320 [details]
build.log
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-05 08:50:43 UTC
-- IWYU: configuring for LLVM 16.0.5+libcxx from /usr/lib/llvm/16/lib64/cmake/llvm

This makes it sound like you're mixing libstdc++ and libcxx which is invalid.
Comment 6 foearb 2023-06-05 08:53:42 UTC
Right, I have my LLVM stack compiled with Clang, but that linker error didn't happen before that...
I have linker issue with mesa[llvm] as well.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-05 08:56:45 UTC
(In reply to nobounce from comment #6)
> Right, I have my LLVM stack compiled with Clang, but that linker error
> didn't happen before that...

That doesn't matter, unfortunately. If something links with LLVM, it's going to get libcxx gunk.

It's okay to build LLVM with Clang, but if you're going to do it with libcxx *as well*, you can't mix it with libstdc++.