GLIBC build problem for MIPS

Shyamal Sadanshio shyamal.sadanshio@gmail.com
Mon May 8 14:38:00 GMT 2006


Hi,

I have been trying to build glibc 2.4 for MIPS platform but am facing
some problems.
First of all, I tried to build the library with following command:

[root@sshyamal glibc-build]# ../glibc-2.4/configure --target=$TARGET
--prefix=$PREFIX CC=${TARGET}-gcc
--with-headers=/home/shyamal/linux-2.6.16/include
--enable-add-ons=glibc-ports-2.4,nptl --with-binutils=${PREFIX}/bin
--without-fp --disable-shared

I am getting following warning a finally a error message:
configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: autoconf
*** some features will be disabled.
******************************************************************************************
running configure fragment for nptl/sysdeps/pthread
configure: error: compiler support for __thread is required
*************************************************************************************************
However, my present autoconf version is 2.57 which is higher than
mentioned in INSTALL notes.

The thread model problem could be due to the fact that the compiler
was built with --disable-thread option.

I removed the nptl option from enable add ons list and added
disable-sanity-checks option to overcome this error.

However, when I installed the glibc, I got the following error messages
cc1: error: invalid option `preferred-stack-boundary=4'
make[2]: *** [/tmp/mipsel-unknown-linux-gnu-toolchain/glibc-build/csu/init-first.o]
Error 1
make[2]: Leaving directory
`/tmp/mipsel-unknown-linux-gnu-toolchain/glibc-2.4/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/tmp/mipsel-unknown-linux-gnu-toolchain/glibc-2.4'
make: *** [install] Error 2

Can you please let me know how to overcome this problem?

I am using 2.16.1 binutils and 3.4.4 compiler as cross-compilation tools.

Thanks and Regards,
Shyamal

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list