Closed
Description
Describe the bug
The build fails whenever OpenMP support is enabled.
To Reproduce
From a clean build directory enable the OpenMP project then try to build:
python ../buildbot/configure.py -o . --llvm-external-projects=openmp
ninja
As part of the main build it will then try to build DeviceRTL
for a number of targets and fail to link the IR with the following error:
cd /home/npmiller/llvm/build2/projects/openmp/libomptarget/DeviceRTL && /home/npmiller/llvm/build2/bin/llvm-link -o /home/npmiller/llvm/build2/projects/openmp/libomptarget/DeviceRTL/linked_libomptarget-nvptx-sm_60.bc Configuration.cpp-sm_60.bc Debug.cpp-sm_60.bc Kernel.cpp-sm_60.bc LibC.cpp-sm_60.bc Mapping.cpp-sm_60.bc Misc.cpp-sm_60.bc Parallelism.cpp-sm_60.bc Reduction.cpp-sm_60.bc State.cpp-sm_60.bc Synchronization.cpp-sm_60.bc Tasking.cpp-sm_60.bc Utils.cpp-sm_60.bc Workshare.cpp-sm_60.bc
invalid uses of intrinsic global variable
[2 x i8*]* @llvm.used
/home/npmiller/llvm/build2/bin/llvm-link: error: linked module is broken!