[LLVMdev] llvm-gcc-4.2-2.9 compilation problems

Duncan Sands baldrick at free.fr
Sat Jan 28 04:40:56 PST 2012


Hi Bruno,

> I'm trying to compile the llvm-gcc-4.2-29 frontend at Ubunt 10.04 64bits
> following the steps described at README.LLVM conform the llvm/docs page.

you can only build llvm-gcc from 2.9 against LLVM version 2.9.  If you want
something llvm-gcc like that works with LLVM 3.0, try dragonegg.

Ciao, Duncan.

> My commands:
>
> mkdir llvm-gcc-build
> cd llvm-gcc-build/
> ../llvm-gcc-4.2-2.9.source/configure --disable-multilib --program-prefix=llvm-
> --enable-llvm=/home/bruno/projects/llvm/src/llvm-3.0.src/ --enable-languages=c,c++
> make ENABLE_OPTIMIZED=1
>
> and i'm having the following errors:
> ../../llvm-gcc-4.2-2.9.source/gcc/llvm-backend.cpp:38:42: error:
> llvm/Target/SubtargetFeature.h: No such file or directory
> ../../llvm-gcc-4.2-2.9.source/gcc/llvm-backend.cpp:42:40: error:
> llvm/Target/TargetRegistry.h: No such file or directory
> ../../llvm-gcc-4.2-2.9.source/gcc/llvm-backend.cpp:50:41: error:
> llvm/Support/StandardPasses.h: No such file or directory
>
> These headers really aren't in the indicated paths. The last header there isn't
> on tree.
> If i try to replace the first and second include paths i have others errors.
>
> Somebody can help me ?
> I could not understand why the llvm-backend.cpp isn't compiling.
> Is there some wrong/missing parameter ?
>
> Thanks.
> Best Regards,
>
> --
> Bruno Carvalho
>
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list