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

Armin Steinhoff as at steinhoff-automation.com
Thu Jun 12 01:57:46 PDT 2014


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) {
>^

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




More information about the llvm-dev mailing list