Tom Stellard
2014-Jun-12 17:18 UTC
[LLVMdev] problems to recompile LLVM version 3.4.1 with gcc48 / SuSE 13.1
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
Armin Steinhoff
2014-Jun-13 07:35 UTC
[LLVMdev] problems to recompile LLVM version 3.4.1 with gcc48 / SuSE 13.1
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
Vassil Vassilev
2014-Jun-13 14:42 UTC
[LLVMdev] problems to recompile LLVM version 3.4.1 with gcc48 / SuSE 13.1
On 06/13/2014 09:35 AM, Armin Steinhoff wrote:> 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.Unfortunately cling is not part of LLVM and you should use the CERN vendor branch of llvm and clang. If there is enough user interest I can polish/generalize most of the patches and propose the project for inclusion. So far it seems not to be the case. Vassil> > 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 > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev