<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 - Please backport eb2ba2ea953b5e to 10.x ([CUDA] Warn about unsupported CUDA SDK version only if it's used)"
   href="https://bugs.llvm.org/show_bug.cgi?id=45270">45270</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Please backport eb2ba2ea953b5e to 10.x ([CUDA] Warn about unsupported CUDA SDK version only if it's used)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>10.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>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mgorny@gentoo.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>44555
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=23270" name="attach_23270" title="0001-CUDA-Warn-about-unsupported-CUDA-SDK-version-only-if.patch (rebased)">attachment 23270</a> <a href="attachment.cgi?id=23270&action=edit" title="0001-CUDA-Warn-about-unsupported-CUDA-SDK-version-only-if.patch (rebased)">[details]</a></span>
0001-CUDA-Warn-about-unsupported-CUDA-SDK-version-only-if.patch (rebased)

We've gotten a bug report today indicating that the new clang version throws
warning about unsupported CUDA versions unconditionally (even when not using
CUDA).  This means that if the user happens to have newer CUDA installed, a lot
of CMake checks fail wrongly, and it can't even compile LLVM correctly.

I realize that it's really late for fixes but I think this is a serious
blocker.  I'm attaching a rebased version of the following commit:

commit eb2ba2ea953b5ea73cdbb598f77470bde1c6a011
Author: Artem Belevich <<a href="mailto:tra@google.com">tra@google.com</a>>
Date:   2020-03-11 22:53:03 +0100

    [CUDA] Warn about unsupported CUDA SDK version only if it's used.

    This fixes an issue with clang issuing a warning about unknown CUDA SDK if
it's
    detected during non-CUDA compilation.

    Differential Revision: <a href="https://reviews.llvm.org/D76030">https://reviews.llvm.org/D76030</a></pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_CONFIRMED "
   title="CONFIRMED - [meta] 10.0.0 Release Blockers"
   href="https://bugs.llvm.org/show_bug.cgi?id=44555">Bug 44555</a>] [meta] 10.0.0 Release Blockers
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>