Hello, Rob.
Thank you for your kind explanation. I tried as you suggested, but the result was disappointing. Please, refer to the following console message and give me direction.
./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 configure: warning: CC=/opt/uClinux/bin/arm-elf-gcc: invalid host type configure: warning: RANLIB=/opt/uClinux/bin/arm-elf-ranlib: invalid host type configure: error: can only configure for one host and one target at a time
Steve Lee. (yslee@synertek.co.kr)
-----Original Message----- From: mad-dev-admin@lists.mars.org [mailto:mad-dev- admin@lists.mars.org]On Behalf Of mad-dev-request@lists.mars.org Sent: Saturday, May 24, 2003 10:26 PM To: mad-dev@lists.mars.org Subject: mad-dev digest, Vol 1 #258 - 1 msg
Send mad-dev mailing list submissions to mad-dev@lists.mars.org
To subscribe or unsubscribe via the World Wide Web, visit http://www.mars.org/bin/mailman/listinfo/mad-dev or, via email, send a message with subject or body 'help' to mad-dev-request@lists.mars.org
You can reach the person managing the list at mad-dev-admin@lists.mars.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of mad-dev digest..."
Today's Topics:
1. Re: ARM cross compile problem (Rob Leslie)
--__--__--
Message: 1 Date: Fri, 23 May 2003 11:02:03 -0700 Subject: Re: [mad-dev] ARM cross compile problem From: Rob Leslie rob@mars.org To: mad-dev@lists.mars.org
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.
-- Rob Leslie rob@mars.org
End of mad-dev Digest
--- 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 Sunday, May 25, 2003, at 06:18 PM, Steve Lee wrote:
Thank you for your kind explanation. I tried as you suggested, but the result was disappointing. Please, refer to the following console message and give me direction.
./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 configure: warning: CC=/opt/uClinux/bin/arm-elf-gcc: invalid host type configure: warning: RANLIB=/opt/uClinux/bin/arm-elf-ranlib: invalid host type configure: error: can only configure for one host and one target at a time
My apologies; the version of autoconf used in the current release is older than I remembered. Try putting the environment variables before the command like you had before and it should work.