build problem uClibc-0.9.26

Lucas Correia Villa Real lucasvr at gobolinux.org
Wed Oct 12 22:00:05 UTC 2005


On Tuesday 11 October 2005 18:42, Kurt Meier wrote:
> Hi list,
> I want to build uClibc-0.9.26 but I always get the following
> error:
>
> make[3]: Entering directory
> `/data/progs/buildroot/buildroot/toolchain_build_arm/uClibc-0
>.9.26/ldso/ldso'
>
> gcc  -Wall -Wstrict-prototypes -Wno-trigraphs
> -fno-strict-aliasing -fstrict-aliasing -Os    -mlittle-endian
> -fPIC
> -DUCLIBC_RUNTIME_PREFIX=\"/\" -fno-builtin -nostdinc
> -I../../ldso/include -I. -I../../include
> -I/usr/lib/gcc-lib/i486-linux-gnu/3.3.6/include -I../libdl -c
> arm/resolve.S -o arm/resolve.o
> cc1: error: invalid option `little-endian'
> make[3]: *** [arm/resolve.o] Error 1
>
>
> I use gcc-Version 3.3.6 (Debian 1:3.3.6-7) on my host.
>
> What do I wrong?
> Ok, use uClbic-0.9.27 would fix the problem, but I have to
> use the 0.9.26 one.

Hi,

It looks like you're using the host compiler (x86) while 
building uClibc for ARM. In this case, you should specify that 
you're cross-compiling, so that the cross compiler is used 
instead of the host $CC.

Try running make with 'make CROSS=arm-linux-', (replacing 
arm-linux- with your cross compiler's prefix, if that's 
different).

Cheers,

-- 
Lucas
powered by /dev/dsp



More information about the uClibc mailing list