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

Bug 936570

Summary: llvm-runtimes/libunwind-18.1.8 fails to build
Product: Gentoo Linux Reporter: infopunkie
Component: Current packagesAssignee: LLVM support project <llvm>
Status: UNCONFIRMED ---    
Severity: normal CC: infopunkie, ionen, sachse
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log for sys-libs/llvm-libunwind-18.1.8

Description infopunkie 2024-07-24 02:51:13 UTC
Created attachment 898245 [details]
build log for sys-libs/llvm-libunwind-18.1.8

Hello, not sure what's happening here but it is failing for build when all the other related llvm related packages have no problem.
Comment 1 infopunkie 2024-07-24 02:54:31 UTC
I have tried with clang and with gcc and seem to get the same result every time.
Comment 2 Ionen Wolkens gentoo-dev 2024-07-24 04:49:47 UTC
emerge --info?

Giving me the impression you are using sys-libs/libcxx (USE=default-libcxx on sys-devel/clang-common) but disabled USE=abi_x86_32 on libcxx itself despite being default.

If this was a llvm profile, USE=abi_x86_32 would be forced so I assume you're using clang on a non-llvm profile and maybe have enabled default-libcxx without knowing what it's for (really shouldn't touch that one unless know what you're doing, it'll break a lot of things).
Comment 3 Ionen Wolkens gentoo-dev 2024-07-24 04:51:51 UTC
In other words, if you have manually enabled default-libcxx on clang-common on a non-llvm profile, remove that rather than enable abi_x86_32.
Comment 4 infopunkie 2024-07-24 15:35:18 UTC
Okay, thank you, I'll try that!
Comment 5 sachse 2024-07-25 23:13:46 UTC
Same problem here.
I had tried:

USE"-clang" emerge -1 sys-libs/llvm-libunwind
ABI_X86="64" emerge -1 sys-libs/llvm-libunwind

But all result in the same error:
x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option ‘-nostdlib++’