<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 - Compilation failure LLVM >= 7, gcc > 5 when system CUDA present"
href="https://bugs.llvm.org/show_bug.cgi?id=39388">39388</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Compilation failure LLVM >= 7, gcc > 5 when system CUDA present
</td>
</tr>
<tr>
<th>Product</th>
<td>Build scripts
</td>
</tr>
<tr>
<th>Version</th>
<td>7.0
</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>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>cmake
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>sknigh@sandia.gov
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>LLVM's build system will automatically search system paths for a CUDA
installation. CUDA strictly limits itself to old versions of GCC. When building
LLVM with a recent version of GCC on a system with an installation of CUDA, the
build will fail with the following error.
/usr/local/cuda/include/host_config.h:119:2: error: #error -- unsupported GNU
version! gcc versions later than 5 are not supported!
#error -- unsupported GNU version! gcc versions later than 5 are not supported!
In my case, the error occurred when building LLVM 7.0.0 with GCC 6.3, 7.2, and
8.2 on Centos 7, however I could successfully build with the same combination
in a debian container without a CUDA installation.
Ideally LLVM's build system would check CUDA for compiler compatibility before
including it, but at a minimum, is there a way to explicitly disable CUDA
support for LLVM?</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>