problem compiling llvm

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*>&)':__ <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’
collect2: error: ld returned 1 exit status

Thanks for your help
Enrico

Farmboy0 <farmboy0@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?

Farmboy0 <farmboy0@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.

Hi everyone,
I am still getting this error trying to compile
LLVM from git.
Does anyone know how to fix this?

Thanks
Enrico

I know some people are having problems with gcc 4.9.0
Have you tried a previous 4.8 version ?