This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: failed to cross-compile glibc-2.3.3


I can advice you to take a look on this site:

http://www.kegel.com/crosstool and let me know if it
succeeds after that

 --- Franklin <franklin@goodhorse.idv.tw> a écrit : 
> Hi all.
> 
> I'm new to list, and had a problem about
> cross-compiling glibc-2.3.3.
> 
> I want to compile glibc-2.3.3 using on mipsel-linux,
> and installed the binutils-2.15 and gcc-3.4.3 which
> targets are set to mipsel-linux.
> 
> Then I used the following options to configure
> glibc-2.3.3:
> 
> ../glibc-2.3.3/configure
> --prefix=/usr/local/mipsel/glibc-2.3.3
> --host=mipsel-linux \
> 	--build=i586-mandrake-linux-gnu
> --enable-add-ons=linuxthreads --enable-tls
> 
> It started to make, but after a while some errors
> occurred:
> 
> mipsel-linux-gcc -mabi=32 ../sysdeps/mips/memcpy.S
> -c  -I../include -I. \
> -I/usr/local/src/mipsel/glibc-2.3.3-build/string
> -I.. -I../libio  \
> -I/usr/local/src/mipsel/glibc-2.3.3-build
> -I../sysdeps/mips/elf \
> -I../linuxthreads/sysdeps/unix/sysv/linux/mips
> -I../linuxthreads/sysdeps/unix/sysv/linux \
> -I../linuxthreads/sysdeps/pthread
> -I../sysdeps/pthread
> -I../linuxthreads/sysdeps/unix/sysv \
> -I../linuxthreads/sysdeps/unix
> -I../linuxthreads/sysdeps/mips \
> -I../sysdeps/unix/sysv/linux/mips/mips32
> -I../sysdeps/unix/sysv/linux/mips \
> -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu
> -I../sysdeps/unix/common \
> -I../sysdeps/unix/mman -I../sysdeps/unix/inet
> -I../sysdeps/unix/sysv \
> -I../sysdeps/unix/mips/mips32 -I../sysdeps/unix/mips
> -I../sysdeps/unix \
> -I../sysdeps/posix -I../sysdeps/mips/mips32
> -I../sysdeps/mips -I../sysdeps/ieee754/flt-32 \
> -I../sysdeps/ieee754/dbl-64 -I../sysdeps/wordsize-32
> -I../sysdeps/ieee754 \
> -I../sysdeps/generic/elf -I../sysdeps/generic 
> -D_LIBC_REENTRANT -include \
> ../include/libc-symbols.h  -DPIC     -DASSEMBLER  -g
>   \
> -o
>
/usr/local/src/mipsel/glibc-2.3.3-build/string/memcpy.o
> -MD -MP -MF \
>
/usr/local/src/mipsel/glibc-2.3.3-build/string/memcpy.o.dt
> 
> ../sysdeps/mips/memcpy.S: Assembler messages:
> ../sysdeps/mips/memcpy.S:68: Error: illegal operands
> `lw t4,16($5)'
> ../sysdeps/mips/memcpy.S:69: Error: illegal operands
> `lw t5,20($5)'
> ../sysdeps/mips/memcpy.S:70: Error: illegal operands
> `lw t6,24($5)'
> ../sysdeps/mips/memcpy.S:71: Error: illegal operands
> `lw t7,28($5)'
> ../sysdeps/mips/memcpy.S:78: Error: illegal operands
> `sw t4,-16($4)'
> ../sysdeps/mips/memcpy.S:79: Error: illegal operands
> `sw t5,-12($4)'
> ../sysdeps/mips/memcpy.S:80: Error: illegal operands
> `sw t6,-8($4)'
> ../sysdeps/mips/memcpy.S:82: Error: illegal operands
> `sw t7,-4($4)'
> make[2]: ***
>
[/usr/local/src/mipsel/glibc-2.3.3-build/string/memcpy.o]
> Error 1
> 
> I built binutils using the following options:
> ./configure --prefix=/usr/local/mipsel/target
> --host=i586-mandrake-linux-gnu --target=mipsel-linux
> 
> and gcc with the following options:
> ../gcc-3.4.3/configure
> --prefix=/usr/local/mipsel/target
> --host=i586-mandrake-linux-gnu \
> --target=mipsel-linux --enable-threads
> --enable-languages=c,c++ \
> --with-headers=/export/tools/mipsel-linux/include
> --with-libs=/export/tools/mipsel-linux/lib
> 
> Could anyone help me about this problem? I googled
> and searched everywhere
> but I cannot find anyone encountered the same
> problem with mine.
> 
> Thanks for you help!
> 
> 
> Best Regards,
> Frank Weng (a.k.a. Franklin)
>  


	

	
		
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de
stockage pour vos 
mails ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/


	

	
		
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]