Problem with llvm-gcc 'make' and arm-none-linux-gnueabi-as

Hello:

I recently attempted to update the ARM cross-compilation setup I had with llvm, and it did not work, so I wanted to revert back to my initial configuration. I reconfigured/make/make install’ed my llvm which executed fine, and then cleared out my llvm-gcc obj and install folders, and reconfigured gcc from within llvm-gcc/obj as follows:

…/llvm-gcc-4.2-2.9.source/configure --target=arm-none-linux-gnueabi --program-prefix=llvm- --prefix=/net/coldwater/w/grwright/Research/llvm/llvm-gcc/install -with-sysroot=/net/coldwater/w/grwright/Research/llvm/arm-2011.03/arm-none-linux-gnueabi/libc --with-gnu-ld=/net/coldwater/w/grwright/Research/llvm/arm-2011.03/bin/arm-none-linux-gnueabi-ld --with-gnu-as=/net/coldwater/w/grwright/Research/llvm/arm-2011.03/bin/arm-none-linux-gnueabi-as --with-gnu-ar=/net/coldwater/w/grwright/Research/llvm/arm-2011.03/bin/arm-none-linux-gnueabi-ar --enable-llvm=/net/coldwater/w/grwright/Research/llvm/llvm-obj --disable-optimized --disable-multilib --disable-bootstrap --disable-shared --enable-checking --enable-languages=c,c++

This seemed to work fine. However, when I then executed ‘make’, it would make it about 10 minutes into the build and then terminate as follows:

./llvm-gcc-4.2-2.9.source/gcc/…/libdecnumber -I…/libdecnumber -I/net/coldwater/w/grwright/Research/llvm/llvm-obj/include -I/net/coldwater/w/grwright/Research/llvm/llvm-2.9/include …/…/llvm-gcc-4.2-2.9.source/gcc/cp/g++spec.c)
/net/coldwater/w/grwright/Research/llvm/arm-2010q1/bin/arm-none-linux-gnueabi-as: unrecognized option ‘-Qy’
make[2]: *** [g++spec.o] Error 1
make[2]: Leaving directory /net/coldwater/w/grwright/Research/llvm/llvm-gcc/obj/gcc' make[1]: *** [all-gcc] Error 2 make[1]: Leaving directory /net/coldwater/w/grwright/Research/llvm/llvm-gcc/obj’
make: *** [all] Error 2

I cannot for the life of me figure out why this is not working as I have reverted to a setup with no changes over what was working a day ago. I am at a loss for what to do, and was hoping I could get some guidance on correcting whatever my bug is.

Many thanks,
Griffin Wright

Hi, Griffin

/net/coldwater/w/grwright/Research/llvm/arm-2010q1/bin/arm-none-linux-gnueabi-as:

                                         ^^^^^^^^^^^

  Maybe using a newer codesourcery toolchain can help you?

Regards,
chenwj

I tried using 2011-03 for gnu/linux, but I got the exact same problem.

-Griffin

Hi, Griffin

  What's your purpose of using llvm-gcc on ARM? If you
just need LLVM IR generated by llvm-gcc, maybe you can
give dragonegg or clang a try.

Regards,
chenwj

Hi Griffin,

…/llvm-gcc-4.2-2.9.source/configure --target=arm-none-linux-gnueabi --program-prefix=llvm- --prefix=/net/coldwater/w/grwright/Research/llvm/llvm-gcc/install -with-sysroot=/net/coldwater/w/grwright/Research/llvm/arm-2011.03/arm-none-linux-gnueabi/libc --with-gnu-ld=/net/coldwater/w/grwright/Research/llvm/arm-2011.03/bin/arm-none-linux-gnueabi-ld --with-gnu-as=/net/coldwater/w/grwright/Research/llvm/arm-2011.03/bin/arm-none-linux-gnueabi-as --with-gnu-ar=/net/coldwater/w/grwright/Research/llvm/arm-2011.03/bin/arm-none-linux-gnueabi-ar --enable-llvm=/net/coldwater/w/grwright/Research/llvm/llvm-obj --disable-optimized --disable-multilib --disable-bootstrap --disable-shared --enable-checking --enable-languages=c,c++

I recommend following cofigure options.

–with-ld==/net/coldwater/w/grwright/Research/llvm/arm-2011.03/arm-none-linux-gnueabi/bin/ld
–with-as=/net/coldwater/w/grwright/Research/llvm/arm-2011.03/arm-none-linux-gnueabi/bin/as
–with-ar=/net/coldwater/w/grwright/Research/llvm/arm-2011.03/arm-none-linux-gnueabi/bin/ar

Your error messase may be because installed tools on system is invoked.

good luck,
Jin-Gu Kang