Folks, 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. 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120127/88a3a4ad/attachment.html>
On Fri, Jan 27, 2012 at 1:09 PM, Bruno Carvalho <brunocarvalhofarias at gmail.com> wrote:> Folks, > > 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. > 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=1You have to use matching versions of llvm and llvm-gcc. -Eli
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