Installations problems CLANG

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Installations problems CLANG

Nipun Arora
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
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Installations problems CLANG

Ted Kremenek-2
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
> [hidden email]         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev