https://bugs.llvm.org/show_bug.cgi?id=48907

            Bug ID: 48907
           Summary: OpenMP compilation broken on non-CUDA system
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: Runtime Library
          Assignee: unassignedb...@nondot.org
          Reporter: tianshilei1...@gmail.com
                CC: llvm-bugs@lists.llvm.org

https://reviews.llvm.org/D95466 dropped CUDA to build NVPTX deviceRTL and
enabled it by default. However, the building requires some libraries that are
not available on non-CUDA system by default, which could break the compilation.
```
[ 38%] Building LLVM bitcode target_impl.cu-cuda_80-sm_80.bc
In file included from
/w/src/llvm.org/openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.cu:14:
In file included from
/w/src/llvm.org/openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h:15:
In file included from /usr/include/assert.h:35:
/usr/include/features.h:424:12: fatal error: 'sys/cdefs.h' file not found
#  include <sys/cdefs.h>
           ^~~~~~~~~~~~~
1 error generated.
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to