[llvm-bugs] [Bug 45880] New: regression: locally-built Clang can't find C++ stdlib headers on Mac

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 11 18:23:30 PDT 2020


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

            Bug ID: 45880
           Summary: regression: locally-built Clang can't find C++ stdlib
                    headers on Mac
           Product: new-bugs
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: sean at rogue-research.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

Created attachment 23468
  --> https://bugs.llvm.org/attachment.cgi?id=23468&action=edit
patch

On macOS with Xcode:

- check out clang from git master
- build with Xcode's AppleClang as per https://clang.llvm.org/get_started.html
- use resulting build to compile a Hello World C++ program (anything that
#includes an STL header file)

Expected:
- for the STL header files that Xcode already provides to be found

Actual:
- compiler error, for example: "fatal error: 'string' file not found"

This used to work.  I'm not sure when it broke, I think it was in the svn to
git switch.

It's been discussed on cfe-dev, I'm not alone in having this happen:
http://lists.llvm.org/pipermail/cfe-dev/2019-September/063394.html

List member Jens Jorgensen shared a patch, see attached.  It works for me, but
I have no idea if it's fit to commit.

-- 
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/20200512/da370b95/attachment-0001.html>


More information about the llvm-bugs mailing list