llvm-gcc as Alpha cross compiler

Hi,

I wonder if anyone has been able to successfully build llvm-gcc as an Alpha cross compiler?

I have tried many different combinations of flags and gcc compiler, but have not been able to build successfully. Currently, this is the command that I used to build on Ubuntu 10.10:

…/llvm-gcc-4.2-2.8.source/configure --enable-llvm=/home/ghoang/research/llvm/llvm-objects --enable-languages=c,c++ --disable-boostrap --disable-multilib --disable-threads --target=alpha-linux --prefix=/home/ghoang/research/llvm/llvm-gcc-bin --with-as=/opt/crosstool/gcc-4.2.4-glibc-2.3.6/alpha-unknown-linux-gnu/alpha-unknown-linux-gnu/bin/as --with-ld=/opt/crosstool/gcc-4.2.4-glibc-2.3.6/alpha-unknown-linux-gnu/alpha-unknown-linux-gnu/bin/ld --with-sysroot=/opt/crosstool/gcc-4.2.4-glibc-2.3.6/alpha-unknown-linux-gnu/alpha-unknown-linux-gnu

where ‘/opt/crosstool/gcc-4.2.4-glibc-2.3.6’ is the Alpha gcc cross compiler that I have built previously (I don’t quite understand why I would need another cross compiler to build this llvm cross compiler, but that seems to be the suggestion from other posts in the mailing list.)

Any help would be greatly appreciated.

Giang Hoang

llvm-gcc doesn't not compile *on* alpha (128bit fp and int issues). I
haven't tried it as a cross compiler.

Andrew

Thanks Andrew. I would like to clarify what I tried to do. I want to use llvm-gcc on x86 linux to compile C programs into Alpha binary.

Giang

Thanks Andrew. I would like to clarify what I tried to do. I want to use
llvm-gcc on x86 linux to compile C programs into Alpha binary.

I've never tried that. Last I used it, it worked natively, but I
don't know anyone who has used it successfully as a cross compiler.

Andrew