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

Armin Steinhoff as at steinhoff-automation.com
Fri Jun 13 00:35:47 PDT 2014


Tom Stellard wrote:
> 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?  

Sorry ... I didn't realize that the "ROOT" group of CERN is using their
own git repository.

And the LLVM version for ROOT is patched for Cling !! So I was "barking
at the wrong tree" ... sorry.

Many thanks so far !

--Armin


> 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