Subject: Softfloat for MIPS
To: NetBSD Toolchain <tech-toolchain@NetBSD.org>
From: Markus Mayer <mmayer@redback.com>
List: tech-toolchain
Date: 06/09/2006 11:05:48
Hi,

We are trying to generate a kernel + RAM disk (NetBSD 3.0) for a MIPS
based chip that doesn't have an FPU.

So far all attempts have failed one way or another. Either we ended up
with libraries that still had floating-point instructions in them or
linking just fails.

Running 'MKSOFTFLOAT=yes ./build.sh -U -u -m sbmips-eb build' resulted in

[...]
mipseb--netbsd-gcc -Wl,-nostdlib     -o cu
-Wl,-rpath-link,/local/usr/src/destdir.sbmips/lib:/local/usr/src/destdir.sbmips/usr/lib 

  -L/local/usr/src/destdir.sbmips/lib
-B/local/usr/src/destdir.sbmips/usr/lib/
-B/local/usr/src/destdir.sbmips/usr/lib/   cu.o prot.o log.o chat.o
conn.o copy.o /local/usr/src/gnu/libexec/uucp/libunix/obj/libunix.a
/local/usr/src/gnu/libexec/uucp/libuuconf/obj/libuuconf.a
/local/usr/src/gnu/libexec/uucp/libuucp/obj/libuucp.a
-L/local/usr/src/destdir.sbmips/usr/lib
-L/local/usr/src/destdir.sbmips/usr/lib
/local/usr/src/destdir.sbmips/lib/libc.so: undefined reference to `__eqdf2'
/local/usr/src/destdir.sbmips/lib/libc.so: undefined reference to `__divsf3'
/local/usr/src/destdir.sbmips/lib/libc.so: undefined reference to
`__fixsfsi'
/local/usr/src/destdir.sbmips/lib/libc.so: undefined reference to `__gtdf2'
/local/usr/src/destdir.sbmips/lib/libc.so: undefined reference to
`__floatsidf'
[...]
collect2: ld returned 1 exit status

The toolchain that created this error was built with 'MKSOFTFLOAT=yes
./build.sh -m sbmips-eb tools'.

Does anybody have any hints or tips?

Regards,
Markus

-- 
Markus Mayer
Redback Networks Inc.