[llvm-bugs] [Bug 39388] New: Compilation failure LLVM >= 7, gcc > 5 when system CUDA present

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 22 14:36:43 PDT 2018


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

            Bug ID: 39388
           Summary: Compilation failure LLVM >= 7, gcc > 5 when system
                    CUDA present
           Product: Build scripts
           Version: 7.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: cmake
          Assignee: unassignedbugs at nondot.org
          Reporter: sknigh at sandia.gov
                CC: llvm-bugs at lists.llvm.org

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?

-- 
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/20181022/99292e69/attachment.html>


More information about the llvm-bugs mailing list