[LLVMbugs] [Bug 15885] New: Driver assumes libc++ headers in /usr/include, libc++ installs them into current install location

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 1 03:50:29 PDT 2013


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

            Bug ID: 15885
           Summary: Driver assumes libc++ headers in /usr/include, libc++
                    installs them into current install location
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jesullivan1965 at hotmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10449
  --> http://llvm.org/bugs/attachment.cgi?id=10449&action=edit
possible patch for ToolChains.cpp

There is currently a mismatch between where the driver expects to find the C++
headers if  the -stdlib=libc++ flag is used( /usr/include/c++/v1) and where a
libc++ 'install' actually installs them (
${CMAKE_INSTALL_PREFIX}/include/c++/v1 ).

 If the driver and the libraries are explicitly installed into different places
then the user can be expected to have to supply correct -I and -L flags (or
there should be a option to point to a common install area).

 For a simple install to a single area though, Things Should Just Work.

I have attached a patch for ToolChains.cpp that looks in the installation
directory, rather than the fixed location, though a more sophisticated system
could no doubt be devised.

-- 
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/20130501/f77e2e9a/attachment.html>


More information about the llvm-bugs mailing list