[cfe-dev] New LLVM C front-end: "clang"

Chris Lattner clattner at apple.com
Thu Jul 12 09:42:12 PDT 2007


On Jul 12, 2007, at 8:52 AM, Gabor Greif wrote:

> I normally build in a separate builddir and
> after reconfiguring I got:
>
> ggreif at my [!734] cd llvm-buil/tools/
> ggreif at my [!735] ls clang/
> Basic  Makefile
> ggreif at my [!737] cd clang/
> ggreif at 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

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?

-Chris



More information about the cfe-dev mailing list