Skip to content

Build failure with OpenMP support enabled #8633

Closed
@npmiller

Description

@npmiller

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions