<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - 12.0.0-rc1 build error for device runtime"
href="https://bugs.llvm.org/show_bug.cgi?id=49158">49158</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>12.0.0-rc1 build error for device runtime
</td>
</tr>
<tr>
<th>Product</th>
<td>OpenMP
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Runtime Library
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>protze@itc.rwth-aachen.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>