<html>
    <head>
      <base href="https://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 --- - STL search path missing in self-compiled clang on OS X 10.10.5"
   href="https://llvm.org/bugs/show_bug.cgi?id=25044">25044</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>STL search path missing in self-compiled clang on OS X 10.10.5
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </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>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tm@ayena.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I'm trying to build current trunk of clang on OS X 10.10.5.

# clang++ --version
Apple LLVM version 7.0.0 (clang-700.0.72)
Target: x86_64-apple-darwin14.5.0
Thread model: posix

I'm building using the following commands:

cmake \
    -G "Ninja" \
    -DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" \
    -DCMAKE_INSTALL_PREFIX:PATH="/Users/tobias/Development/llvm/llvm_prefix" \
    -DCMAKE_CXX_FLAGS:STRING="-DLLVM_ENABLE_DUMP" \
    ../llvm
ninja -j 4
ninja install

When building a minimal c++ example with the just installed clang compiler it
won't find the STL headers. They are usually located somewhere inside
XCode.app.

<span class="quote">> cat foo.cpp </span >
#include <iostream>

int main() {
    return 0;
}
<span class="quote">> clang++ -v -o foo foo.cpp </span >
clang version 3.8.0 (<a href="http://llvm.org/git/clang.git">http://llvm.org/git/clang.git</a>
6a948411b24f78177db24b0b06acf2ca202b469d) (<a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a>
ea978bb5631cd8dce5af87a2678750936a90d40c)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
InstalledDir: /Users/tobias/Development/llvm/llvm_prefix/bin
 "/Users/tobias/Development/llvm/llvm_prefix/bin/clang-3.8" -cc1 -triple
x86_64-apple-macosx10.10.0 -emit-obj -mrelax-all -disable-free
-disable-llvm-verifier -main-file-name foo.cpp -mrelocation-model pic
-pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose
-munwind-tables -target-cpu core2 -target-linker-version 253.3.3 -v
-dwarf-column-info -resource-dir
/Users/tobias/Development/llvm/llvm_prefix/bin/../lib/clang/3.8.0
-stdlib=libc++ -fdeprecated-macro -fdebug-compilation-dir
/Users/tobias/Development/swift/swift-mac -ferror-limit 19 -fmessage-length 238
-stack-protector 1 -fblocks -fobjc-runtime=macosx-10.10.0
-fencode-extended-block-signature -fcxx-exceptions -fexceptions
-fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/jk/173vrmtn09n08c_8d_my9l400000gn/T/foo-d4f0b7.o -x c++ foo.cpp
clang -cc1 version 3.8.0 based upon LLVM 3.8.0svn default target
x86_64-apple-darwin14.5.0
ignoring nonexistent directory
"/Users/tobias/Development/llvm/llvm_prefix/bin/../include/c++/v1"
ignoring nonexistent directory "/usr/include/c++/v1"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /Users/tobias/Development/llvm/llvm_prefix/bin/../lib/clang/3.8.0/include
 /usr/include
 /System/Library/Frameworks (framework directory)
 /Library/Frameworks (framework directory)
End of search list.
foo.cpp:1:10: fatal error: 'iostream' file not found
#include <iostream>
         ^
1 error generated.</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>