[Openmp-commits] [PATCH] D123177: [libomptarget] Add device RTL to regression test dependencies.
Joseph Huber via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Apr 8 06:54:54 PDT 2022
jhuber6 added a comment.
The patch prevents me from building libomptarget due to linking errors. When building the `tools` subdirectory there is a clash where the version scripts for both `x86` and `nvptx` are included causing the following error,
FAILED: /home2/3n4/llvm/llvm-project/build/bin/llvm-omp-device-info
: && /home2/3n4/llvm/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Wcast-qual -Wformat-pedantic -Wimplicit-fallthrough -Wsign-compare -Wno-extra -Wno-pedantic -std=c++14 -O3 -DNDEBUG -fuse-ld=gold -Wl,--gc-sections openmp/libomptarget/tools/deviceinfo/CMakeFiles/llvm-omp-device-info.dir/llvm-omp-device-info.cpp.o -o /home2/3n4/llvm/llvm-project/build/bin/llvm-omp-device-info -Wl,-rpath,"\$ORIGIN/../lib:/home2/3n4/llvm/llvm-project/build/./lib" -lpthread openmp/runtime/src/libomp.so openmp/libomptarget/libomptarget.so openmp/libomptarget/libomptarget.rtl.cuda.so openmp/libomptarget/libomptarget.rtl.x86_64.so -lpthread -lrt -lm /usr/lib64/libcuda.so -Wl,-z,defs /home2/3n4/llvm/llvm-project/build/lib/libLLVMObject.so.15git /home2/3n4/llvm/llvm-project/build/lib/libLLVMBinaryFormat.so.15git /home2/3n4/llvm/llvm-project/build/lib/libLLVMSupport.so.15git /usr/lib64/libffi.so -ldl /usr/lib64/libelf.so -lpthread -Wl,-rpath-link,/home2/3n4/llvm/llvm-project/build/lib && :
-Wl,--version-script=/home2/3n4/llvm/llvm-project/openmp/libomptarget/plugins/x86_64/../exports
-Wl,--version-script=/home2/3n4/llvm/llvm-project/openmp/libomptarget/plugins/cuda/../exports
/usr/bin/ld.gold: error: linker defined: multiple definition of 'VERS1.0'
/usr/bin/ld.gold: command line: previous definition here
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123177/new/
https://reviews.llvm.org/D123177
More information about the Openmp-commits
mailing list