[llvm-bugs] [Bug 49158] New: 12.0.0-rc1 build error for device runtime
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Feb 12 06:06:14 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=49158
Bug ID: 49158
Summary: 12.0.0-rc1 build error for device runtime
Product: OpenMP
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Runtime Library
Assignee: unassignedbugs at nondot.org
Reporter: protze at itc.rwth-aachen.de
CC: llvm-bugs at lists.llvm.org
Building the just tagged 12.0.0-rc1, I still cannot compile LLVM including
libomptarget. The build aborts with the following error, I build OpenMP as
runtime, therefore the newly built clang is used:
FAILED: projects/openmp/libomptarget/deviceRTLs/nvptx/loop.cu-cuda_80-sm_70.bc
cd ${BUILD_DIR}/projects/openmp/libomptarget/deviceRTLs/nvptx && clang -S -x
c++ -target nvptx64 -Xclang -emit-llvm-bc -Xclang -aux-triple -Xclang
x86_64-unknown-linux-gnu -fopenmp -fopenmp-cuda-mode -Xclang -fopenmp-is-device
-D__CUDACC__ -I${SOURCE_DIR}/openmp/libomptarget/deviceRTLs
-I${SOURCE_DIR}/openmp/libomptarget/deviceRTLs/nvptx/src
-DOMPTARGET_NVPTX_DEBUG=0 -Xclang -target-cpu -Xclang sm_70 -D__CUDA_ARCH__=700
-Xclang -target-feature -Xclang +ptx42 -DCUDA_VERSION=8000
${SOURCE_DIR}/openmp/libomptarget/deviceRTLs/common/src/loop.cu -o
loop.cu-cuda_80-sm_70.bc
In file included from
${SOURCE_DIR}/openmp/libomptarget/deviceRTLs/common/src/loop.cu:16:
In file included from
${SOURCE_DIR}/openmp/libomptarget/deviceRTLs/common/omptarget.h:18:
In file included from
${SOURCE_DIR}/openmp/libomptarget/deviceRTLs/common/debug.h:31:
In file included from
${SOURCE_DIR}/openmp/libomptarget/deviceRTLs/common/device_environment.h:16:
In file included from
${SOURCE_DIR}/openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h:18:
${SYSTEM}/clang/11.0.0/bin/../include/c++/v1/stdlib.h:128:10: error:
'__builtin_fabsl' requires 128 bit size 'long double' type support, but device
'nvptx64' does not support it
return __builtin_fabsl(__lcpp_x);
^
${SYSTEM}/clang/11.0.0/bin/../include/c++/v1/stdlib.h:128:10: note:
'__builtin_fabsl' defined here
${SYSTEM}/clang/11.0.0/bin/../include/c++/v1/stdlib.h:128:10: error:
'__builtin_fabsl' requires 128 bit size 'long double' type support, but device
'nvptx64' does not support it
return __builtin_fabsl(__lcpp_x);
^
${SYSTEM}/clang/11.0.0/bin/../include/c++/v1/stdlib.h:128:10: note:
'__builtin_fabsl' defined here
${SYSTEM}/clang/11.0.0/bin/../include/c++/v1/stdlib.h:128:26: error: '__lcpp_x'
requires 128 bit size 'long double' type support, but device 'nvptx64' does not
support it
return __builtin_fabsl(__lcpp_x);
^
${SYSTEM}/clang/11.0.0/bin/../include/c++/v1/stdlib.h:127:17: note: '__lcpp_x'
defined here
abs(long double __lcpp_x) _NOEXCEPT {
^
3 errors generated.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210212/57047aee/attachment.html>
More information about the llvm-bugs
mailing list