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

Reid Kleckner rnk at google.com
Thu Jun 12 09:41:12 PDT 2014


Did we accidentally apply C++11 patches to 3.4.1?


On Thu, Jun 12, 2014 at 1:57 AM, Armin Steinhoff <
as at steinhoff-automation.com> 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) {
> >^
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140612/a2488e83/attachment.html>


More information about the llvm-dev mailing list