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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101015/a952f1bb/attachment.html>
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 > >
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 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 > > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101015/125c5fe8/attachment.html>