Subject: toolchain/34527: Crosscompiling userland with MKSOFTFLOAT requires GCC --nfp configure
To: None <email@example.com, firstname.lastname@example.org,>
From: None <email@example.com>
Date: 09/14/2006 20:00:01
>Synopsis: Crosscompiling userland with MKSOFTFLOAT requires GCC --nfp configure
>Arrival-Date: Thu Sep 14 20:00:01 +0000 2006
>Originator: Arthur Townsend
3.0 for i386
When crosscompiling netbsd on i386 for use on a Sun3, with /etc/mk.conf having MKSOFTFLOAT=yes, the command ./build.sh -u -m sun3 build fails as it can't find many of the soft-float routines in libc (such as fixsfsi).
Get source sets for NetBSD 3.0, then attempt to build for Sun3 with /etc/mk.conf having MKSOFTFLOAT=yes
After tarring the source sets, before building, go to /usr/src/tools/gcc and edit Makefile and add the option --nfp. This adds the soft-float routines to libc, enabling the MKSOFTFLOAT build to work.
Also, when loading the sets onto a real sun3, then doing gcc -v, it shows lots of configure options, but not --nfp. But one can see that it worked as the command "nm /usr/lib/libc.a | fix" shows that the fixsfsi routine was added. Also uname -a shows that the build was done on my local machine. But seems weird/wrong that gcc -v doesn't show the correct configure info.