[LLVMdev] problem compiling llvm

Farmboy0 farmboy0 at googlemail.com
Mon Jul 7 13:28:24 PDT 2014


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>


More information about the llvm-dev mailing list