[LLVMdev] llvm-gcc as Alpha cross compiler

Andrew Lenharth andrewl at lenharth.org
Sat Oct 16 06:45:57 PDT 2010


On Fri, Oct 15, 2010 at 7:23 PM, Giang Hoang <ghoang84 at gmail.com> wrote:
> 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

> Giang
>
> On Fri, Oct 15, 2010 at 5:41 PM, Andrew Lenharth <andrewl at lenharth.org>
> wrote:
>>
>> llvm-gcc doesn't not compile *on* alpha (128bit fp and int issues).  I
>> haven't tried it as a cross compiler.
>>
>> Andrew
>>
>> On Fri, Oct 15, 2010 at 5:19 PM, Giang Hoang <ghoang84 at gmail.com> wrote:
>> > 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 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