[LLVMdev] problems to recompile LLVM version 3.4.1 with gcc48 / SuSE 13.1

Tom Stellard tom at stellard.net
Thu Jun 12 10:18:51 PDT 2014


On Thu, Jun 12, 2014 at 10:57:46AM +0200, Armin Steinhoff wrote:
> 
> Hi,
> 
> first problem was:
> 
> >FileManager.cpp:311:21: error: range-based ‘for’ loops are not allowed
> >in C++98 mode
> >for (auto & fe: SeenFileEntries) {
> >^
> >FileManager.cpp:312:14: error: request for member ‘getValue’ in ‘fe’,
> >which is of non-class type ‘int’
> >if (fe.getValue() == StaleFileEntry) {
> >^

Are you sure this is the 3.4.1 source?  This doesn't seem to match what
is in SVN:
https://llvm.org/viewvc/llvm-project/cfe/tags/RELEASE_34/dot1-final/lib/Basic/FileManager.cpp?revision=208032&view=markup

-Tom

> 
> solved by adding -std=c++11 to Makefile.config
> 
> 
> Second one:
> 
> Compilation of "SmallPtrSet.cpp" seems to be broken ...
> Solved by removing the conditional compile by
> 
> #ifdef LLVM_HAS_RVALUE_REDERENCE for method "SmallPtrSetImplBase"
> 
> Hope it doesn't break anything :)
> 
> 
> BTW .. is "cling" now integral part of LLVM ?
> 
> Regards
> 
> --Armin
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list