Hi, I am wanting to compile libmad for ARM. I have installed :
arm-linux-binutils-2.11-1 arm-linux-gcc-2.95-1 arm-linux-glibc-2.1.3-1
To cross compile i do :
export CC=/usr/local/arm/gnu/release/bin/arm-linux-gcc export RANLIB=/usr/local/arm/gnu/release/bin/arm-linux-ranlib export LD=/usr/local/arm/gnu/release/bin/arm-linux-ld export NM=/usr/local/arm/gnu/release/bin/arm-linux-nm
./configure --host=arm-linux --enable-speed --enable-fpm=arm
The configure script completes fine but in the messages it prints i see the lines :
checking weather the C compiler (gcc ) is a cross-compiler ... no . . cheching for ld used by GCC... (cached) /usr/bin/ld
so it is not using the cross compiler that i installed. I read in another mail that i may have to configure manually. Is this the case or is there somthing i am missing out?
Thanks in advance.
Try this Shell> rm -f config.cache Shell> CC=<path>/arm-linux-gcc ./configure <options> (CC + configure - all in one line)
Gad
-----Original Message----- From: mad-dev-admin@lists.mars.org
[mailto:mad-dev-admin@lists.mars.org] On Behalf Of Gareth
Sent: Wednesday, February 27, 2002 9:02 PM To: mad-dev@lists.mars.org Subject: [mad-dev] Cross compiling libmad for ARM
Hi, I am wanting to compile libmad for ARM. I have installed :
arm-linux-binutils-2.11-1 arm-linux-gcc-2.95-1 arm-linux-glibc-2.1.3-1
To cross compile i do :
export CC=/usr/local/arm/gnu/release/bin/arm-linux-gcc export RANLIB=/usr/local/arm/gnu/release/bin/arm-linux-ranlib export LD=/usr/local/arm/gnu/release/bin/arm-linux-ld export NM=/usr/local/arm/gnu/release/bin/arm-linux-nm
./configure --host=arm-linux --enable-speed --enable-fpm=arm
The configure script completes fine but in the messages it prints i
see
the lines :
checking weather the C compiler (gcc ) is a cross-compiler ... no . . cheching for ld used by GCC... (cached) /usr/bin/ld
so it is not using the cross compiler that i installed. I read in another mail that i may have to configure manually. Is this the case
or
is there somthing i am missing out?
Thanks in advance.
Thanks for the help!
I had a go at doing the CC=... and RANLIB=... on the same line as the ./configure as suggested. This seems to have the dedsired effect, the configure script reports that gcc is a cross compiler and when i look at the Makefile all the paths are pointing to the right place. i.e. the cross compiler i installed.
Now when i come to make, it runs for a bit but then reports the error :
/usr/local/arm/gnu/release/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/errno.h:25: linux/errno.h: No such file or directory
Why is the file bits/errno.h looking for another file of the same name? Is this meant to be an ARM specific errno.h? I did a search for this file and came up with loads :
/usr/include/asm/errno.h /usr/include/linux/errno.h /usr/include/bits/errno.h /usr/include/errno.h /usr/include/sys/errno.h /usr/local/arm/gnu/release/arm-linux/include/bits/errno.h /usr/local/arm/gnu/release/arm-linux/include/errno.h /usr/local/arm/gnu/release/arm-linux/include/sys/errno.h /usr/src/linux-2.4.3/include/asm-i386/errno.h /usr/src/linux-2.4.3/include/linux/errno.h
Which one is it looking for and how do i tell it to use that specific one?
On 27 Feb 2002 21:24:37 +0200, Gad Hayisraeli wrote:
Try this Shell> rm -f config.cache Shell> CC=<path>/arm-linux-gcc ./configure <options> (CC + configure - all in one line)
Gad
-----Original Message----- From: mad-dev-admin@lists.mars.org
[mailto:mad-dev-admin@lists.mars.org] On Behalf Of Gareth
Sent: Wednesday, February 27, 2002 9:02 PM To: mad-dev@lists.mars.org Subject: [mad-dev] Cross compiling libmad for ARM
Hi, I am wanting to compile libmad for ARM. I have installed :
arm-linux-binutils-2.11-1 arm-linux-gcc-2.95-1 arm-linux-glibc-2.1.3-1
To cross compile i do :
export CC=/usr/local/arm/gnu/release/bin/arm-linux-gcc export RANLIB=/usr/local/arm/gnu/release/bin/arm-linux-ranlib export LD=/usr/local/arm/gnu/release/bin/arm-linux-ld export NM=/usr/local/arm/gnu/release/bin/arm-linux-nm
./configure --host=arm-linux --enable-speed --enable-fpm=arm
The configure script completes fine but in the messages it prints i
see
the lines :
checking weather the C compiler (gcc ) is a cross-compiler ... no . . cheching for ld used by GCC... (cached) /usr/bin/ld
so it is not using the cross compiler that i installed. I read in another mail that i may have to configure manually. Is this the case
or
is there somthing i am missing out?
Thanks in advance.
Gareth g.c.bransby-99@student.lboro.ac.uk wrote:
./configure --host=arm-linux --enable-speed --enable-fpm=arm
Try setting the target to arm-linux, not the host.
Andre --
__________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com
Andre wrote:
Gareth wrote:
./configure --host=arm-linux --enable-speed --enable-fpm=arm
Try setting the target to arm-linux, not the host.
Actually I think host is correct. Target would be used in the case of building a cross-compiler, to describe the platform on which programs generated by the cross-compiler will run.
-- Rob Leslie rob@mars.org