[PATCH] D126122: Fix RUNPATH not accounting for LLVM_ENABLE_PER_TARGET_RUNTIME_DIR
Arcadiy Ivanov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun May 22 11:26:24 PDT 2022
arcivanov added a comment.
The saga continues. The libcxx/abi do not appear to have any rpath reference to the libunwind:
$ ldd bin/clang-14
linux-vdso.so.1 (0x00007ffcfd7cc000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f7970ad0000)
libclang-cpp.so.14 => /home/user/Documents/src/project/llvm.twostage.build.manylinux2014/tools/clang/stage2-bins/bin/../lib/libclang-cpp.so.14 (0x00007f796ce70000)
libLLVM-14.so => /home/user/Documents/src/project/llvm.twostage.build.manylinux2014/tools/clang/stage2-bins/bin/../lib/libLLVM-14.so (0x00007f796971b000)
libc++.so.1 => /home/user/Documents/src/project/llvm.twostage.build.manylinux2014/tools/clang/stage2-bins/bin/../lib/x86_64-unknown-linux-gnu/libc++.so.1 (0x00007f7969627000)
libc++abi.so.1 => /home/user/Documents/src/project/llvm.twostage.build.manylinux2014/tools/clang/stage2-bins/bin/../lib/x86_64-unknown-linux-gnu/libc++abi.so.1 (0x00007f79695ec000)
libm.so.6 => /lib64/libm.so.6 (0x00007f7969510000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f79694f5000)
libc.so.6 => /lib64/libc.so.6 (0x00007f79692ec000)
/lib64/ld-linux-x86-64.so.2 (0x00007f7970b02000)
librt.so.1 => /lib64/librt.so.1 (0x00007f79692e7000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f79692e0000)
libz.so.1 => /lib64/libz.so.1 (0x00007f79692c6000)
libunwind.so.1 => not found
libunwind.so.1 => not found
It looks like 2-stage builds with embedded shared library runtimes are fundamentally broken with respect to rpath/runpath.
Additional revision is incoming.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126122/new/
https://reviews.llvm.org/D126122
More information about the llvm-commits
mailing list