Installations problems CLANG

Hi,

I was having a little trouble installing clang… while llvm installs properly but clang gives this error on invoking make in Clang

make[2]: Leaving directory /home/na2271/Desktop/llvm-2.3-x/tools/clang/lib/Headers' make[2]: Entering directory /home/na2271/Desktop/llvm-2.3-x/tools/clang/lib/Basic’
llvm[2]: Compiling SourceManager.cpp for Release build
SourceManager.cpp: In member function ‘void clang::LineTableInfo::clear()’:
SourceManager.cpp:124: error: ‘class llvm::StringMap<unsigned int, llvm::BumpPtrAllocator>’ has no member named ‘clear’
SourceManager.cpp: In member function ‘const clang::SrcMgr::ContentCache* clang::SourceManager::getOrCreateContentCache(const clang::FileEntry*)’:
SourceManager.cpp:367: error: no matching function for call to ‘llvm::BumpPtrAllocator::Allocate(int, unsigned int&)’
SourceManager.cpp: In member function ‘const clang::SrcMgr::ContentCache* clang::SourceManager::createMemBufferContentCache(const llvm::MemoryBuffer*)’:
SourceManager.cpp:382: error: no matching function for call to ‘llvm::BumpPtrAllocator::Allocate(int, unsigned int&)’
SourceManager.cpp: In function ‘void ComputeLineNumbers(clang::SrcMgr::ContentCache*, llvm::BumpPtrAllocator&)’:
SourceManager.cpp:678: error: no matching function for call to ‘llvm::BumpPtrAllocator::Allocate(size_t)’

Thanks
Nipun

Hi Nipun,

You need to use top-of-tree LLVM (LLVM from SVN). There is no revision of Clang right now that is tied to a specific LLVM release.

Ted