New LLVM C front-end: "clang"

I normally build in a separate builddir and
after reconfiguring I got:

ggreif@my [!734] cd llvm-buil/tools/
ggreif@my [!735] ls clang/
Basic Makefile
ggreif@my [!737] cd clang/
ggreif@my [!738] make
make[1]: Entering directory `/home/ggreif/llvm-build/tools/clang/Basic'
llvm[1]: Compiling SourceManager.cpp for Release build
/home/ggreif/llvm/tools/clang/Basic/SourceManager.cpp: In function `const llvm::MemoryBuffer* ReadFileFast(const clang::FileEntry*)':
/home/ggreif/llvm/tools/clang/Basic/SourceManager.cpp:63: error: `::open' has not been declared
make[1]: *** [/home/ggreif/llvm-build/tools/clang/Basic/Release/SourceManager.o] Error 1
make[1]: Leaving directory `/home/ggreif/llvm-build/tools/clang/Basic'
make: *** [all] Error 1

Any clues?



Yep, you're stuck in a quagmire of code that should be removed once libsystem gets a bit smarter. Does it build correctly if you add "#include <fcntl.h>" at line 45 of that file?