<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Dear all,</div><div><br></div><div>I'm currently attempting to build a self-hosted clang / LLVM toolset. The initial build of clang / LLVM with GCC has been successful (and clang is currently building itself, all good so far), I'm now wanting to build libc++ with clang (in order to then re-build clang with itself and a self-hosted libc++), however following the simple instructions on the lib++ index page, I'm getting the error "'cxxabi.h' file not found" shown below [1].</div><div><br></div><div>I've found one mailing list post mentioning this [2], but not proposing how to work around it. I'd welcome any suggestions.</div><div><br></div><div>Yours,</div><div>James.</div><div><br></div><div>[1]</div><div>$ export MACOSX_DEPLOYMENT_TARGET=10.6</div><div>$ export TRIPLE=-apple-</div><div>$ ./buildit </div><div>+ for FILE in '../src/*.cpp'</div><div>+ clang++ -c -g -Os -arch i386 -arch x86_64 -std=c++0x -U__STRICT_ANSI__ -nostdinc++ -I../include ../src/algorithm.cpp</div><div>+ for FILE in '../src/*.cpp'</div><div>+ clang++ -c -g -Os -arch i386 -arch x86_64 -std=c++0x -U__STRICT_ANSI__ -nostdinc++ -I../include ../src/bind.cpp</div><div>+ for FILE in '../src/*.cpp'</div><div>+ clang++ -c -g -Os -arch i386 -arch x86_64 -std=c++0x -U__STRICT_ANSI__ -nostdinc++ -I../include ../src/chrono.cpp</div><div>+ for FILE in '../src/*.cpp'</div><div>+ clang++ -c -g -Os -arch i386 -arch x86_64 -std=c++0x -U__STRICT_ANSI__ -nostdinc++ -I../include ../src/condition_variable.cpp</div><div>+ for FILE in '../src/*.cpp'</div><div>+ clang++ -c -g -Os -arch i386 -arch x86_64 -std=c++0x -U__STRICT_ANSI__ -nostdinc++ -I../include ../src/debug.cpp</div><div>+ for FILE in '../src/*.cpp'</div><div>+ clang++ -c -g -Os -arch i386 -arch x86_64 -std=c++0x -U__STRICT_ANSI__ -nostdinc++ -I../include ../src/exception.cpp</div><div>../src/exception.cpp:18:12: fatal error: 'cxxabi.h' file not found</div><div>  #include <cxxabi.h></div><div>           ^</div><div>1 error generated.</div><div>../src/exception.cpp:18:12: fatal error: 'cxxabi.h' file not found</div><div>  #include <cxxabi.h></div><div>           ^</div><div>1 error generated.</div><div>/usr/bin/lipo: can't open input file: /var/folders/nD/nDG6jzxRGq4an-b7cCbemU+++TI/-Tmp-/exception-MhXFPU.o (No such file or directory)</div><div>clang: error: lipo command failed with exit code 1 (use -v to see invocation)</div><div><br></div><div>[2] <a href="http://lists.cs.uiuc.edu/pipermail/llvmbugs/2011-July.txt">http://lists.cs.uiuc.edu/pipermail/llvmbugs/2011-July.txt</a></div></body></html>