<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello there,<br>
I am trying to compile llvm from git<br>
the gentoo ebuild llvm-9999.ebuild.<br>
<br>
Recently I get an error during compilation.<br>
I am using gcc 4.9.0.<br>
<br>
The error is the following:<br>
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
\<br>
-lLLVM-3.5svn -lz -lpthread -lffi -ldl -lm <br>
Live child 0x1f66d60
(/mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/Release/bin/opt)
PID 25040 <br>
/mnt/daten/Daten/Workspace/portage/sys-devel/llvm-9999/work/llvm-9999-abi_x86_64.amd64/tools/opt/Release/opt.o:
<b>In function `llvm::cl::list<llvm::PassInfo const*, bool,
llvm::PassNameParser>::getExtraOptionNames(llvm::SmallVectorImpl<char
const*>&)':</b><b><br>
</b><b>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'</b><br>
collect2: error: ld returned 1 exit status<br>
<br>
Thanks for your help<br>
Enrico<br>
</body>
</html>