<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 - regression: locally-built Clang can't find C++ stdlib headers on Mac"
   href="https://bugs.llvm.org/show_bug.cgi?id=45880">45880</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>regression: locally-built Clang can't find C++ stdlib headers on Mac
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>sean@rogue-research.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=23468" name="attach_23468" title="patch">attachment 23468</a> <a href="attachment.cgi?id=23468&action=edit" title="patch">[details]</a></span>
patch

On macOS with Xcode:

- check out clang from git master
- build with Xcode's AppleClang as per <a href="https://clang.llvm.org/get_started.html">https://clang.llvm.org/get_started.html</a>
- 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:
<a href="http://lists.llvm.org/pipermail/cfe-dev/2019-September/063394.html">http://lists.llvm.org/pipermail/cfe-dev/2019-September/063394.html</a>

List member Jens Jorgensen shared a patch, see attached.  It works for me, but
I have no idea if it's fit to commit.</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>