uclibc build error

manjunatha sirinivasan manju903srini at yahoo.co.in
Thu Sep 21 09:58:51 UTC 2006

  When  I tried  to  compile uclibc-0.9.28 for MIPS
arch, I got  the following error:

The command given for compiling is:
#make CROSS=mips-elf-
Error ------------
make -C  mips
make[3]: Entering directory
mips-elf-gcc  -Wall -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing  -mips1  -fno-builtin -nostdinc
-D_LIBC -I../../../include -I.  -Os  
-mno-split-addresses -isystem
/usr/local/lib/gcc-lib/mips-elf/3.3.2/include -DNDEBUG
-fPIC  -c memcpy.S
-o memcpy.o
memcpy.S: Assembler messages:
memcpy.S:72: Error: illegal operands `lw t4,16($5)'
memcpy.S:73: Error: illegal operands `lw t5,20($5)'
memcpy.S:74: Error: illegal operands `lw t6,24($5)'
memcpy.S:75: Error: illegal operands `lw t7,28($5)'
memcpy.S:82: Error: illegal operands `sw t4,-16($4)'
memcpy.S:83: Error: illegal operands `sw t5,-12($4)'
memcpy.S:84: Error: illegal operands `sw t6,-8($4)'
memcpy.S:86: Error: illegal operands `sw t7,-4($4)'
make[3]: *** [memcpy.o] Error 1

Here are steps  that I followed before uClibc cross
compilation,  for building  binutils and cross-gcc for

built binutils -2.16.1 with following configuration:
#./configure --target=mips-elf --prefix=/usr/local

gcc-3.3.2 is patched with  gcc-uclibc-full01.patch.gz
for the  support of uclibc dynamic linker.

built gcc-3.3.2 with  following configuration:
#./configure --target=mips-elf --prefix=/usr/local
--with-gnu-as --with-gnu-ld
#make all-gcc
#make install-gcc

I have selected mips as target arch and  (Generic)
MIPS1 as target processor (make menuconfig).  Is my
steps that followed are correct to build uclibc for
am I  missing  out  any option  during  'make 
CROSS=mips-elf-' specially for  uclibc

Manjunatha Srinivasan N

Yahoo! India Answers: Share what you know. Learn something new

More information about the uClibc mailing list