[LLVMbugs] [Bug 19577] New: Driver does not detect C++ headers if GCC configured with --with-gxx-include-dir

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Apr 27 12:12:43 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19577

            Bug ID: 19577
           Summary: Driver does not detect C++ headers if GCC configured
                    with --with-gxx-include-dir
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sdvormwa at mtu.edu
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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.

-- 
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/20140427/7b7ce64f/attachment.html>


More information about the llvm-bugs mailing list