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

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

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 :frowning:

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 :slight_smile:

Thank you very much,
Rafael

You're right, fixed. Thanks!!

-Chris