Hi, all
It's first time for me to post a message here. Expecting helpful advice...
I am trying to run MAD on ARM7TDMI based machine. I use uClinux.
When I execute ./configure as recommended in this mailing list, I faced a followinf error message:
[yslee@romeo mad-old]$ rm config.cache [yslee@romeo mad-old]$ CC=/opt/uClinux/bin/arm-elf-gcc RANLIB=/opt/uClinux/bin/arm-elf-ranlib LD=/opt/uClinux/bin/arm-elf-ld ./configure --enable-speed --disable-debugging --enable-fpm=arm --enable-aso --target=arm creating cache ./config.cache checking for a BSD compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking host system type... i686-pc-linux-gnu checking for gcc... /opt/uClinux/bin/arm-elf-gcc checking whether the C compiler (/opt/uClinux/bin/arm-elf-gcc ) works... no configure: error: installation or configuration problem: C compiler cannot create executables.
How can I solve this problem?
I'm attaching "config.status" and "config.log" files.
Thank you.
Steve. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.478 / Virus Database: 275 - Release Date: 2003-05-06
On Friday, May 23, 2003, at 04:13 AM, @L?k<. wrote:
I am trying to run MAD on ARM7TDMI based machine. I use uClinux.
When I execute ./configure as recommended in this mailing list, I faced a followinf error message:
[yslee@romeo mad-old]$ rm config.cache [yslee@romeo mad-old]$ CC=/opt/uClinux/bin/arm-elf-gcc RANLIB=/opt/uClinux/bin/arm-elf-ranlib LD=/opt/uClinux/bin/arm-elf-ld ./configure --enable-speed --disable-debugging --enable-fpm=arm --enable-aso --target=arm [...] checking for gcc... /opt/uClinux/bin/arm-elf-gcc checking whether the C compiler (/opt/uClinux/bin/arm-elf-gcc ) works... no configure: error: installation or configuration problem: C compiler cannot create executables.
How can I solve this problem?
Try invoking 'configure' like this:
./configure --enable-speed --disable-debugging --enable-fpm=arm \ --enable-aso --host=arm \ CC=/opt/uClinux/bin/arm-elf-gcc \ RANLIB=/opt/uClinux/bin/arm-elf-ranlib \ LD=/opt/uClinux/bin/arm-elf-ld
The reason:
1. --target is for building cross-compilers only. Use --host to specify the system that will run the code you are compiling now.
2. The autoconf suite prefers that you pass environment variables on the command line rather than through the environment, to overcome certain problems propagating the values.