Rafael EspĂndola
2006-Apr-20 13:46 UTC
[LLVMdev] trying to bootstrap gcc 4.0.1 and the cvs llvm
I am trying to bootstrap the just released gcc 4.0.1 and the cvs head llvm. I was able to build the llvm tools without a problem. gcc has a small problem (from the apple branch IIRC): libojc is built unconditionally, so objc must be in the --enable-languages option for the build to be successful. Building the rest of llvm fails with llvm[3]: Compiling crtend.ll to crtend.bc for Debug build (bytecode) /home/rafael/dev/obj/Debug/bin/gccas: /home/rafael/dev/obj/runtime/GCCLibraries/crtend/Debug/crtend.ll:1: syntax error, unexpected $undefined /home/rafael/dev/obj/runtime/GCCLibraries/crtend/Debug/crtend.ll:1: while reading token: '.' I believe that this is because the -emit-llvm-bc option is not working as before (true x86 assembly is generated). Is 1.7 being developed in a branch? I would like to use a CVS instead of the snapshot to make it easier to track the development. Thanks, Rafael
Chris Lattner
2006-Apr-20 19:10 UTC
[LLVMdev] trying to bootstrap gcc 4.0.1 and the cvs llvm
On Thu, 20 Apr 2006, [UTF-8] Rafael Esp?ndola wrote:> I am trying to bootstrap the just released gcc 4.0.1 and the cvs head llvm. > > I was able to build the llvm tools without a problem. > gcc has a small problem (from the apple branch IIRC): libojc is built > unconditionally, so objc must be in the --enable-languages option for > the build to be successful. > > Building the rest of llvm fails with > > llvm[3]: Compiling crtend.ll to crtend.bc for Debug build (bytecode) > /home/rafael/dev/obj/Debug/bin/gccas: > /home/rafael/dev/obj/runtime/GCCLibraries/crtend/Debug/crtend.ll:1: > syntax error, unexpected $undefined > /home/rafael/dev/obj/runtime/GCCLibraries/crtend/Debug/crtend.ll:1: > while reading token: '.' > > I believe that this is because the -emit-llvm-bc option is not working > as before (true x86 assembly is generated).Try rerunning configure with the newly built llvm-gcc in your path. The configure script should detect that you have llvm-gcc4 and disable building these libraries (which are only needed by llvm-gcc3).> Is 1.7 being developed in a branch? I would like to use a CVS instead > of the snapshot to make it easier to track the development.CVS head is where you want to be then. -Chris -- http://nondot.org/sabre/ http://llvm.org/
Rafael EspĂndola
2006-Apr-20 23:26 UTC
[LLVMdev] trying to bootstrap gcc 4.0.1 and the cvs llvm
> Try rerunning configure with the newly built llvm-gcc in your path. The > configure script should detect that you have llvm-gcc4 and disable > building these libraries (which are only needed by llvm-gcc3).The problem was that I had forgot to use --enable-llvm when compiling GCC :-( One small improvement that I noticed because of my mistake is to declare LLVMSRCDIR in gcc/Makefile.in using := instead of This will cause make to run grep and sed only once. I found this because there was a grep error message for each compiled file :-) Thank you very much, Rafael