bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

build fails - uses wrong gcc


From: David Meggy
Subject: build fails - uses wrong gcc
Date: Fri, 8 Jun 2001 09:13:57 -0700

Hi, I'm trying to cross compile glibc from an x86 to an arm.  I'm running into
the problems, that seem to be related to the configure script.

I have ~/glibc-2.2.3/ as the source dir & ~/glibc-temp/ as the build dir.  I
have the system variable CC set to arm-linux-gcc, and my path includes
~/gcc-cross/bin/  This is where the cross compiler and bin tools are.

In ~/glibc-temp/ I run ../glibc-2.2.3/configure --host=arm-linux --prefix
~/gcc-cross/arm-linux/ --enable-add-ons --with-headers=~/linux/include

The configure script then ignores CC and sets up the build for gcc.

I looked at ~/glibc-2.2.3/Makeconfig and it set-up CC as gcc and then BUILD_CC
as CC.  There is also a message that BUILD_CC must be a native compiler.  So I
set-up CC as arm-linux-gcc, and BUILD_CC as gcc, which now seems to compile
files for about 5 minutes before dumping an assembler error that none of the
arm asm commands are valid.  Looking at the console, it is using gcc not
arm-linux-gcc to compile .S arm files.  Now if I set both CC and BUILD_CC to
arm-linux-gcc, it still ignores this and uses gcc.

How can I get it to use arm-linux-gcc??


David Meggy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]