Hello there, I am trying to compile llvm from git the gentoo ebuild llvm-9999.ebuild. Recently I get an error during compilation. I am using gcc 4.9.0. The error is the following: x86_64-pc-linux-gnu-g++ -march=native -O2 -pipe -fomit-frame-pointer -march=native -O2 -pipe -fomit-frame-pointer -march=native -O2 -pipe -fomit-frame-pointer -march=native -O2 -pipe -fomit-frame-pointer -march=native -O2 -pipe -fomit-frame-pointer -rdynamic -Wl,-R -Wl,'$ORIGIN/../lib' -L/mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/Release/lib -L/mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/Release/lib -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -o /mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/Release/bin/opt /mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/opt/Release/AnalysisWrappers.o /mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/opt/Release/BreakpointPrinter.o /mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/opt/Release/GraphPrinters.o /mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/opt/Release/NewPMDriver.o /mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/opt/Release/PassPrinters.o /mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/opt/Release/Passes.o /mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/opt/Release/PrintSCC.o /mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/opt/Release/opt.o \ -lLLVM-3.5svn -lz -lpthread -lffi -ldl -lm Live child 0x1f66d60 (/mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/Release/bin/opt) PID 25040 /mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/opt/Release/opt.o: *In function `llvm::cl::list<llvm::PassInfo const*, bool, llvm::PassNameParser>::getExtraOptionNames(llvm::SmallVectorImpl<char const*>&)':** **opt.cpp:(.text._ZN4llvm2cl4listIPKNS_8PassInfoEbNS_14PassNameParserEE19getExtraOptionNamesERNS_15SmallVectorImplIPKcEE[_ZN4llvm2cl4listIPKNS_8PassInfoEbNS_14PassNameParserEE19getExtraOptionNamesERNS_15SmallVectorImplIPKcEE]+0x55): undefined reference to `llvm::cl::parser<llvm::PassInfo const*>::getOption(unsigned int) const'* collect2: error: ld returned 1 exit status Thanks for your help Enrico -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140707/cd5aeff7/attachment.html>
Farmboy0 <farmboy0 at googlemail.com> writes:> Hello there, > I am trying to compile llvm from git > the gentoo ebuild llvm-9999.ebuild.What SVN revision does this correspond to?> Recently I get an error during compilation. > I am using gcc 4.9.0. > > The error is the following: > x86_64-pc-linux-gnu-g++ -march=native -O2 -pipe -fomit-frame-pointer -march> native -O2 -pipe -fomit-frame-pointer -march=native -O2 -pipe > -fomit-frame-pointer -march=native -O2 -pipe -fomit-frame-pointer -march> native -O2 -pipe -fomit-frame-pointer -rdynamic -Wl,-R -Wl,'$ORIGIN/../lib' > -L/mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/ > llvm-9999-abi_x86_64.amd64/Release/lib -L/mnt/daten/Daten/Workspace/portage/ > sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/Release/lib -Wl,-O1 > -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -Wl,-O1 > -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -o /mnt/daten/Daten/Workspace/ > portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/Release/bin/opt / > mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/ > llvm-9999-abi_x86_64.amd64/tools/opt/Release/AnalysisWrappers.o /mnt/daten/ > Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/ > tools/opt/Release/BreakpointPrinter.o /mnt/daten/Daten/Workspace/portage/ > sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/opt/Release/ > GraphPrinters.o /mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/ > llvm-9999-abi_x86_64.amd64/tools/opt/Release/NewPMDriver.o /mnt/daten/Daten/ > Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/ > opt/Release/PassPrinters.o /mnt/daten/Daten/Workspace/portage/sys-devel/ > llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/opt/Release/Passes.o /mnt/ > daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/ > llvm-9999-abi_x86_64.amd64/tools/opt/Release/PrintSCC.o /mnt/daten/Daten/ > Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/ > opt/Release/opt.o \ > -lLLVM-3.5svn -lz -lpthread -lffi -ldl -lm > Live child 0x1f66d60 (/mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/ > work/llvm-9999-abi_x86_64.amd64/Release/bin/opt) PID 25040 > /mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/ > llvm-9999-abi_x86_64.amd64/tools/opt/Release/opt.o: In function > `llvm::cl::list<llvm::PassInfo const*, bool, > llvm::PassNameParser>::getExtraOptionNames(llvm::SmallVectorImpl<char const*> > &)': > opt.cpp: > (.text._ZN4llvm2cl4listIPKNS_8PassInfoEbNS_14PassNameParserEE19getExtraOptionNamesERNS_15SmallVectorImplIPKcEE > [_ZN4llvm2cl4listIPKNS_8PassInfoEbNS_14PassNameParserEE19getExtraOptionNamesERNS_15SmallVectorImplIPKcEE] > +0x55): undefined reference to `llvm::cl::parser<llvm::PassInfo > const*>::getOption(unsigned int) const' > collect2: error: ld returned 1 exit status > > Thanks for your help > Enrico
On 07.07.2014 23:45, Justin Bogner wrote:> Farmboy0 <farmboy0 at googlemail.com> writes: >> Hello there, >> I am trying to compile llvm from git >> the gentoo ebuild llvm-9999.ebuild. > What SVN revision does this correspond to?I have tried several times over the last few days. The latest revision I tried to build is 212473.> >> Recently I get an error during compilation. >> I am using gcc 4.9.0. >> >> The error is the following: >> x86_64-pc-linux-gnu-g++ -march=native -O2 -pipe -fomit-frame-pointer -march>> native -O2 -pipe -fomit-frame-pointer -march=native -O2 -pipe >> -fomit-frame-pointer -march=native -O2 -pipe -fomit-frame-pointer -march>> native -O2 -pipe -fomit-frame-pointer -rdynamic -Wl,-R -Wl,'$ORIGIN/../lib' >> -L/mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/ >> llvm-9999-abi_x86_64.amd64/Release/lib -L/mnt/daten/Daten/Workspace/portage/ >> sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/Release/lib -Wl,-O1 >> -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -Wl,-O1 >> -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -o /mnt/daten/Daten/Workspace/ >> portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/Release/bin/opt / >> mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/ >> llvm-9999-abi_x86_64.amd64/tools/opt/Release/AnalysisWrappers.o /mnt/daten/ >> Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/ >> tools/opt/Release/BreakpointPrinter.o /mnt/daten/Daten/Workspace/portage/ >> sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/opt/Release/ >> GraphPrinters.o /mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/ >> llvm-9999-abi_x86_64.amd64/tools/opt/Release/NewPMDriver.o /mnt/daten/Daten/ >> Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/ >> opt/Release/PassPrinters.o /mnt/daten/Daten/Workspace/portage/sys-devel/ >> llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/opt/Release/Passes.o /mnt/ >> daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/ >> llvm-9999-abi_x86_64.amd64/tools/opt/Release/PrintSCC.o /mnt/daten/Daten/ >> Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/ >> opt/Release/opt.o \ >> -lLLVM-3.5svn -lz -lpthread -lffi -ldl -lm >> Live child 0x1f66d60 (/mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/ >> work/llvm-9999-abi_x86_64.amd64/Release/bin/opt) PID 25040 >> /mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/ >> llvm-9999-abi_x86_64.amd64/tools/opt/Release/opt.o: In function >> `llvm::cl::list<llvm::PassInfo const*, bool, >> llvm::PassNameParser>::getExtraOptionNames(llvm::SmallVectorImpl<char const*> >> &)': >> opt.cpp: >> (.text._ZN4llvm2cl4listIPKNS_8PassInfoEbNS_14PassNameParserEE19getExtraOptionNamesERNS_15SmallVectorImplIPKcEE >> [_ZN4llvm2cl4listIPKNS_8PassInfoEbNS_14PassNameParserEE19getExtraOptionNamesERNS_15SmallVectorImplIPKcEE] >> +0x55): undefined reference to `llvm::cl::parser<llvm::PassInfo >> const*>::getOption(unsigned int) const' >> collect2: error: ld returned 1 exit status >> >> Thanks for your help >> Enrico
Hi everyone, I am still getting this error trying to compile LLVM from git. Does anyone know how to fix this? Thanks Enrico On 07.07.2014 22:28, Farmboy0 wrote:> Hello there, > I am trying to compile llvm from git > the gentoo ebuild llvm-9999.ebuild. > > Recently I get an error during compilation. > I am using gcc 4.9.0. > > The error is the following: > x86_64-pc-linux-gnu-g++ -march=native -O2 -pipe -fomit-frame-pointer > -march=native -O2 -pipe -fomit-frame-pointer -march=native -O2 -pipe > -fomit-frame-pointer -march=native -O2 -pipe -fomit-frame-pointer > -march=native -O2 -pipe -fomit-frame-pointer -rdynamic -Wl,-R > -Wl,'$ORIGIN/../lib' > -L/mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/Release/lib > -L/mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/Release/lib > -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed > -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -o > /mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/Release/bin/opt > /mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/opt/Release/AnalysisWrappers.o > /mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/opt/Release/BreakpointPrinter.o > /mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/opt/Release/GraphPrinters.o > /mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/opt/Release/NewPMDriver.o > /mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/opt/Release/PassPrinters.o > /mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/opt/Release/Passes.o > /mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/opt/Release/PrintSCC.o > /mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/opt/Release/opt.o > \ > -lLLVM-3.5svn -lz -lpthread -lffi -ldl -lm > Live child 0x1f66d60 > (/mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/Release/bin/opt) > PID 25040 > /mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/opt/Release/opt.o: > *In function `llvm::cl::list<llvm::PassInfo const*, bool, > llvm::PassNameParser>::getExtraOptionNames(llvm::SmallVectorImpl<char > const*>&)':** > **opt.cpp:(.text._ZN4llvm2cl4listIPKNS_8PassInfoEbNS_14PassNameParserEE19getExtraOptionNamesERNS_15SmallVectorImplIPKcEE[_ZN4llvm2cl4listIPKNS_8PassInfoEbNS_14PassNameParserEE19getExtraOptionNamesERNS_15SmallVectorImplIPKcEE]+0x55): > undefined reference to `llvm::cl::parser<llvm::PassInfo > const*>::getOption(unsigned int) const'* > collect2: error: ld returned 1 exit status > > Thanks for your help > Enrico >
On Jul 7, 2014 10:23 PM, "Farmboy0" <farmboy0 at googlemail.com> wrote:> > Hello there, > I am trying to compile llvm from git > the gentoo ebuild llvm-9999.ebuild. > > Recently I get an error during compilation. > I am using gcc 4.9.0. >I know some people are having problems with gcc 4.9.0 Have you tried a previous 4.8 version ? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140727/f0162625/attachment.html>