<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - Driver does not detect C++ headers if GCC configured with --with-gxx-include-dir"
   href="http://llvm.org/bugs/show_bug.cgi?id=19577">19577</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Driver does not detect C++ headers if GCC configured with --with-gxx-include-dir
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.4
          </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>Driver
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>sdvormwa@mtu.edu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>GCC has a configuration option (--with-gxx-include-dir) that can be used to set
where the C++ headers get installed.  If this is set to anything other than
$PREFIX/include/c++, the clang driver does not correctly find these headers
even if it finds the GCC toolchain.  For example, Cray's GCC packages are
configured with --with-gxx-incude-dir=$PREFIX/include/g++ causing clang's
driver to be incompatible with them.

There are a bunch of existing special cases in
Linux::AddClangCXXStdlibIncludeArgs(), but it'd be nice if instead there were a
build option (other than patching the source by hand...) that could be used to
tell the clang driver where to search for headers so distributions/users could
tell the driver exactly where to look if necessary.  I unfortunately am
prohibited by my employer from contributing to clang/llvm, so I can't provide
the local changes I made to do this, but the changes are minimal.</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>