Summary: | sys-libs/libcxxabi-15.0.1 - clang-15: error: linker command failed with exit code 1 (use -v to see invocation) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | LLVM support project <llvm> |
Status: | RESOLVED CANTFIX | ||
Severity: | normal | CC: | mgorny |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 870412 | ||
Attachments: |
emerge-info.txt
CMakeError.log CMakeOutput.log emerge-history.txt environment etc.portage.tar.bz2 logs.tar.bz2 sys-libs:libcxxabi-15.0.1:20220922-002043.log temp.tar.bz2 |
Description
Toralf Förster
2022-09-22 09:56:10 UTC
Created attachment 813526 [details]
emerge-info.txt
Created attachment 813529 [details]
CMakeError.log
Created attachment 813532 [details]
CMakeOutput.log
Created attachment 813535 [details]
emerge-history.txt
Created attachment 813538 [details]
environment
Created attachment 813541 [details]
etc.portage.tar.bz2
Created attachment 813544 [details]
logs.tar.bz2
Created attachment 813547 [details]
sys-libs:libcxxabi-15.0.1:20220922-002043.log
Created attachment 813550 [details]
temp.tar.bz2
RUSTFLAGS="${RUSTFLAGS} -C link-arg=-lunwind" resolved the issue for me (In reply to Jimmy.Jazz from comment #10) > RUSTFLAGS="${RUSTFLAGS} -C link-arg=-lunwind" resolved the issue for me oops ignore the noise, wrong patch (works for icecat) Was sys-devel/clang built with USE="default-compiler-rt"? (In reply to Michał Górny from comment #12) > Was sys-devel/clang built with USE="default-compiler-rt"? # emerge -qpvO sys-devel/clang [ebuild R ] sys-devel/clang-15.0.1 USE="default-compiler-rt default-libcxx default-lld (pie) static-analyzer xml -debug -doc -llvm-libunwind -test -verify-sig" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) (-ARC) (-CSKY) (-DirectX) (-LoongArch) (-M68k) (-SPIRV)" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9 -python3_11" Essentially the problem seems to be that you're trying to build libcxxabi with abi_x86_32 but you've built libunwind without. Unfortunately clang can't properly depend on the right set of ABI_X86 flags on its runtime dependencies. |