Rajika Kumarasiri
2010-Aug-12 14:03 UTC
[LLVMdev] Trying to build llvm-gcc no x86_64 linux
On Thu, Aug 12, 2010 at 6:56 PM, Romain Pechayre <rpechayr at gmail.com> wrote:> Ok. Thank you for your input. New questions :) : > - Is the dev package basically the source code of gcc 4.2 ? Isn't it > already fully included in llvm-gcc code base ? >AFAIR, you need to have the set of headers, gcc-dev.( Some one else may provide you with this information)> - How should I include bison+flex when I have installed Do I need to put > additional flags to configure script ? >If you have those in PATH, that should be picked by the script. Rajika> > Cheers, > Romain > > > > On Thu, Aug 12, 2010 at 3:13 PM, Rajika Kumarasiri <rajika at wso2.com>wrote: > >> I need to add, also you'll need bison+flex. >> >> Rajika >> >> >> On Thu, Aug 12, 2010 at 6:41 PM, Rajika Kumarasiri <rajika at wso2.com>wrote: >> >>> You'll need to install the dev packages for gcc 4.2. >>> >>> Rajika >>> >>> On Thu, Aug 12, 2010 at 1:27 PM, Romain Pechayre <rpechayr at gmail.com>wrote: >>> >>>> Hello all, >>>> >>>> I am trying to build the latest version of llvm-gcc on a x86_64 >>>> architecture running a Linux distribution. Using the READM.LLVM I have >>>> managed to run ./configure using appropriate options, but when I try to >>>> build using make, it shows the following error message after a few seconds: >>>> >>>> ../../llvm-gcc/gcc/gengtype-lex.l:31:27: fatal error: gengtype-yacc.h: >>>> No such file or directory. >>>> >>>> This happens when trying to build gengtype-lex.c. >>>> >>>> I could indeed not find the file gengtype-yacc.h in neither llvm-gcc nor >>>> llvm code base. Is there a dependency I am missing ? A problem with the >>>> configure flags I've used ? >>>> >>>> Thank you very much in advance for your help ! >>>> >>>> Romain >>>> >>>> _______________________________________________ >>>> 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/20100812/aed7cc1a/attachment.html>
Thanks. It worked for a few more compilation lines. I now get the following linker error: undefined reference to llvm::MemoryBuffer::getNewMemBuffer(unsigned long, llvm::StringRef) I am surprised since the linker compile line already links with a whole bunch of llvm libraries ... Thanks for your help Romain On Thu, Aug 12, 2010 at 4:03 PM, Rajika Kumarasiri <rajika at wso2.com> wrote:> > > On Thu, Aug 12, 2010 at 6:56 PM, Romain Pechayre <rpechayr at gmail.com>wrote: > >> Ok. Thank you for your input. New questions :) : >> - Is the dev package basically the source code of gcc 4.2 ? Isn't it >> already fully included in llvm-gcc code base ? >> > > AFAIR, you need to have the set of headers, gcc-dev.( Some one else may > provide you with this information) > > >> - How should I include bison+flex when I have installed Do I need to put >> additional flags to configure script ? >> > > If you have those in PATH, that should be picked by the script. > > Rajika > > >> >> Cheers, >> Romain >> >> >> >> On Thu, Aug 12, 2010 at 3:13 PM, Rajika Kumarasiri <rajika at wso2.com>wrote: >> >>> I need to add, also you'll need bison+flex. >>> >>> Rajika >>> >>> >>> On Thu, Aug 12, 2010 at 6:41 PM, Rajika Kumarasiri <rajika at wso2.com>wrote: >>> >>>> You'll need to install the dev packages for gcc 4.2. >>>> >>>> Rajika >>>> >>>> On Thu, Aug 12, 2010 at 1:27 PM, Romain Pechayre <rpechayr at gmail.com>wrote: >>>> >>>>> Hello all, >>>>> >>>>> I am trying to build the latest version of llvm-gcc on a x86_64 >>>>> architecture running a Linux distribution. Using the READM.LLVM I have >>>>> managed to run ./configure using appropriate options, but when I try to >>>>> build using make, it shows the following error message after a few seconds: >>>>> >>>>> ../../llvm-gcc/gcc/gengtype-lex.l:31:27: fatal error: gengtype-yacc.h: >>>>> No such file or directory. >>>>> >>>>> This happens when trying to build gengtype-lex.c. >>>>> >>>>> I could indeed not find the file gengtype-yacc.h in neither llvm-gcc >>>>> nor llvm code base. Is there a dependency I am missing ? A problem with the >>>>> configure flags I've used ? >>>>> >>>>> Thank you very much in advance for your help ! >>>>> >>>>> Romain >>>>> >>>>> _______________________________________________ >>>>> 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/20100812/f509d75c/attachment.html>
I got this one fixed by rebuilding llvm Debug (oups). I had an old version. I now seem to have a classical message: version GLIBCXX_3.4.14 not found. I am indeed building llvm-gcc using gcc4.5. Is this the problem ? The fix to this problem indicated in README.LLVM does not help .. Thanks Romain On Thu, Aug 12, 2010 at 6:43 PM, Romain Pechayre <rpechayr at gmail.com> wrote:> Thanks. It worked for a few more compilation lines. > I now get the following linker error: > undefined reference to llvm::MemoryBuffer::getNewMemBuffer(unsigned long, > llvm::StringRef) > > I am surprised since the linker compile line already links with a whole > bunch of llvm libraries ... > > Thanks for your help > Romain > > > > On Thu, Aug 12, 2010 at 4:03 PM, Rajika Kumarasiri <rajika at wso2.com>wrote: > >> >> >> On Thu, Aug 12, 2010 at 6:56 PM, Romain Pechayre <rpechayr at gmail.com>wrote: >> >>> Ok. Thank you for your input. New questions :) : >>> - Is the dev package basically the source code of gcc 4.2 ? Isn't it >>> already fully included in llvm-gcc code base ? >>> >> >> AFAIR, you need to have the set of headers, gcc-dev.( Some one else may >> provide you with this information) >> >> >>> - How should I include bison+flex when I have installed Do I need to put >>> additional flags to configure script ? >>> >> >> If you have those in PATH, that should be picked by the script. >> >> Rajika >> >> >>> >>> Cheers, >>> Romain >>> >>> >>> >>> On Thu, Aug 12, 2010 at 3:13 PM, Rajika Kumarasiri <rajika at wso2.com>wrote: >>> >>>> I need to add, also you'll need bison+flex. >>>> >>>> Rajika >>>> >>>> >>>> On Thu, Aug 12, 2010 at 6:41 PM, Rajika Kumarasiri <rajika at wso2.com>wrote: >>>> >>>>> You'll need to install the dev packages for gcc 4.2. >>>>> >>>>> Rajika >>>>> >>>>> On Thu, Aug 12, 2010 at 1:27 PM, Romain Pechayre <rpechayr at gmail.com>wrote: >>>>> >>>>>> Hello all, >>>>>> >>>>>> I am trying to build the latest version of llvm-gcc on a x86_64 >>>>>> architecture running a Linux distribution. Using the READM.LLVM I have >>>>>> managed to run ./configure using appropriate options, but when I try to >>>>>> build using make, it shows the following error message after a few seconds: >>>>>> >>>>>> ../../llvm-gcc/gcc/gengtype-lex.l:31:27: fatal error: gengtype-yacc.h: >>>>>> No such file or directory. >>>>>> >>>>>> This happens when trying to build gengtype-lex.c. >>>>>> >>>>>> I could indeed not find the file gengtype-yacc.h in neither llvm-gcc >>>>>> nor llvm code base. Is there a dependency I am missing ? A problem with the >>>>>> configure flags I've used ? >>>>>> >>>>>> Thank you very much in advance for your help ! >>>>>> >>>>>> Romain >>>>>> >>>>>> _______________________________________________ >>>>>> 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/20100812/ed67b7eb/attachment.html>