Dear all,
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].
I’ve found one mailing list post mentioning this [2], but not proposing how to work around it. I’d welcome any suggestions.
Yours,
James.
[1]
$ export MACOSX_DEPLOYMENT_TARGET=10.6
$ export TRIPLE=-apple-
$ ./buildit
- for FILE in ‘…/src/*.cpp’
- clang++ -c -g -Os -arch i386 -arch x86_64 -std=c++0x -U__STRICT_ANSI__ -nostdinc++ -I…/include …/src/algorithm.cpp
- for FILE in ‘…/src/*.cpp’
- clang++ -c -g -Os -arch i386 -arch x86_64 -std=c++0x -U__STRICT_ANSI__ -nostdinc++ -I…/include …/src/bind.cpp
- for FILE in ‘…/src/*.cpp’
- clang++ -c -g -Os -arch i386 -arch x86_64 -std=c++0x -U__STRICT_ANSI__ -nostdinc++ -I…/include …/src/chrono.cpp
- for FILE in ‘…/src/*.cpp’
- clang++ -c -g -Os -arch i386 -arch x86_64 -std=c++0x -U__STRICT_ANSI__ -nostdinc++ -I…/include …/src/condition_variable.cpp
- for FILE in ‘…/src/*.cpp’
- clang++ -c -g -Os -arch i386 -arch x86_64 -std=c++0x -U__STRICT_ANSI__ -nostdinc++ -I…/include …/src/debug.cpp
- for FILE in ‘…/src/*.cpp’
- clang++ -c -g -Os -arch i386 -arch x86_64 -std=c++0x -U__STRICT_ANSI__ -nostdinc++ -I…/include …/src/exception.cpp
…/src/exception.cpp:18:12: fatal error: ‘cxxabi.h’ file not found
#include <cxxabi.h>
^
1 error generated.
…/src/exception.cpp:18:12: fatal error: ‘cxxabi.h’ file not found
#include <cxxabi.h>
^
1 error generated.
/usr/bin/lipo: can’t open input file: /var/folders/nD/nDG6jzxRGq4an-b7cCbemU+++TI/-Tmp-/exception-MhXFPU.o (No such file or directory)
clang: error: lipo command failed with exit code 1 (use -v to see invocation)
[2] http://lists.cs.uiuc.edu/pipermail/llvmbugs/2011-July.txt