mips64 target
Bruno Haible
bruno@clisp.org
Tue Jun 4 05:08:00 GMT 2002
Hi,
The glibc 2.2.5 README mentions that the mips*-*-linux-gnu platforms are
supported. Now when I configure it for --host=mips64-linux I get a
compilation error while compiling sysdeps/wordsize-32/llabs.c.
I used
$ /packages2/glibc-2.2.5/configure --host=$cpu-linux --build=i486-suse-linux --prefix=/cross/$cpu-linux --with-headers=/cross/$cpu-linux/include --enable-add-ons --disable-profile
creating cache ./config.cache
checking host system type... mips64-unknown-linux-gnu
checking sysdep dirs... sysdeps/mips/elf linuxthreads/sysdeps/unix/sysv/linux linuxthreads/sysdeps/pthread sysdeps/pthread linuxthreads/sysdeps/unix/sysv linuxthreads/sysdeps/unix linuxthreads/sysdeps/mips sysdeps/unix/sysv/linux/mips sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix/mips sysdeps/unix sysdeps/posix sysdeps/mips/mips64 sysdeps/wordsize-64 sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/mips/fpu sysdeps/mips sysdeps/wordsize-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
...
Strange to see both wordsize-64 and wordsize-32 among the sysdep dirs...
Then I get
mips64-linux-gcc ../sysdeps/wordsize-32/llabs.c -c -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -I../include -I. -I/backup/cross-build/build-glibc-mips64/stdlib -I.. -I../libio -I/backup/cross-build/build-glibc-mips64 -I../sysdeps/mips/elf -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 -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 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/mips/mips64 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/mips/fpu -I../sysdeps/mips -I../sysdeps/wordsize-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /cross/mips64-linux-tools/lib/gcc-lib/mips64-linux/3.1/include -isystem /cross/mips64-linux/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -o /backup/cross-build/build-glibc-mips64/stdlib/llabs.o
In file included from ../sysdeps/wordsize-32/llabs.c:19:
../sysdeps/generic/inttypes.h:298: warning: conflicting types for built-in function `imaxabs'
../sysdeps/wordsize-32/llabs.c:23: conflicting types for `imaxabs'
../sysdeps/generic/inttypes.h:298: previous declaration of `imaxabs'
make[2]: *** [/backup/cross-build/build-glibc-mips64/stdlib/llabs.o] Fehler 1
make[2]: Leaving directory `/packages2/glibc-2.2.5/stdlib'
What's the right way to compile a mips64 libc?
More information about the Libc-alpha
mailing list