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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090204/64ec4d25/attachment.html>
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 On Feb 4, 2009, at 7:18 PM, Nipun Arora wrote:> 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 > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Apparently Analagous Threads
- Sharing MemoryBuffers between front ends and LLVM
- [LLVMdev] LLVM 2.7 build failure: no matching function for call to 'llvm::MemoryBuffer::getFile
- [LLVMdev] [cfe-dev] LLVM & Clang file management
- [LLVMdev] [cfe-dev] LLVM & Clang file management
- [LLVMdev] [cfe-dev] LLVM & Clang file management