[Openmp-commits] [PATCH] D103545: [NFC][libomptarget] Reduce the dependency on libelf
Shilei Tian via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Jun 17 15:20:38 PDT 2021
tianshilei1992 added a comment.
This patch seems to break the link of `libomptarget.rtl.cuda.so`. Here is the error on my machine.
[46/48] Linking CXX shared library libomptarget/libomptarget.rtl.x86_64.so
FAILED: libomptarget/libomptarget.rtl.x86_64.so
: && /home/shiltian/Documents/deploy/llvm/release/bin/clang++ -fPIC -Wall -Wcast-qual -Wformat-pedantic -Wimplicit-fallthrough -Wsign-compare -Wno-extra -Wno-pedantic -std=gnu++14 -g -shared -Wl,-soname,libomptarget.rtl.x86_64.so -o libomptarget/libomptarget.rtl.x86_64.so libomptarget/plugins/common/elf_common/CMakeFiles/elf_common.dir/elf_common.cpp.o libomptarget/plugins/x86_64/CMakeFiles/omptarget.rtl.x86_64.dir/__/generic-elf-64bit/src/rtl.cpp.o /usr/lib64/libffi.so /usr/lib64/libelf.so -ldl -lpthread -Wl,--version-script=/home/shiltian/Documents/vscode/llvm-project/openmp/libomptarget/plugins/x86_64/../exports /home/shiltian/Documents/deploy/llvm/release/lib/libLLVMObject.a /home/shiltian/Documents/deploy/llvm/release/lib/libLLVMBitReader.a /home/shiltian/Documents/deploy/llvm/release/lib/libLLVMCore.a /home/shiltian/Documents/deploy/llvm/release/lib/libLLVMRemarks.a /home/shiltian/Documents/deploy/llvm/release/lib/libLLVMBitstreamReader.a /home/shiltian/Documents/deploy/llvm/release/lib/libLLVMMCParser.a /home/shiltian/Documents/deploy/llvm/release/lib/libLLVMMC.a /home/shiltian/Documents/deploy/llvm/release/lib/libLLVMDebugInfoCodeView.a /home/shiltian/Documents/deploy/llvm/release/lib/libLLVMTextAPI.a /home/shiltian/Documents/deploy/llvm/release/lib/libLLVMBinaryFormat.a /home/shiltian/Documents/deploy/llvm/release/lib/libLLVMSupport.a -lrt -lm /usr/lib64/libz.so /usr/lib64/libtinfo.so /home/shiltian/Documents/deploy/llvm/release/lib/libLLVMDemangle.a -ldl -lpthread && :
/usr/bin/ld: libomptarget/plugins/common/elf_common/CMakeFiles/elf_common.dir/elf_common.cpp.o: relocation R_X86_64_32S against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
[47/48] Linking CXX shared library libomptarget/libomptarget.rtl.cuda.so
I checked its parent commit that there is no problem.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103545/new/
https://reviews.llvm.org/D103545
More information about the Openmp-commits
mailing list