uclibc error

manjunatha sirinivasan manju903srini at yahoo.co.in
Thu Sep 21 11:58:14 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
make[3]: Leaving directory
make[2]: *** [_dir_mips] Error 2
make[2]: Leaving directory
make[1]: *** [_dir_string] Error 2
make[1]: Leaving directory
make: *** [_dir_libc] Error 2

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). I have
changed target processor to MIPS64. But it is of no

Iam pointing out kernel header  of linux-2.4.20  for 
uclibc  to get compile. Actually i have to  compile 
with linux kernel  of  custome board. I tried out, it 

Is my steps that followed are correct to build uclibc
for MIPS.
am I missing out any option  during  'make 
CROSS=mips-elf-' specially for  uclibc.

Is there any patch  needed at uclibc source  tree for

Manjunatha Srinivasan N

  Manjunatha Srinivasan N

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

More information about the uClibc mailing list