Subject: toolchain/34527: Crosscompiling userland with MKSOFTFLOAT requires GCC --nfp configure
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <sigmfsk@aol.com>
List: netbsd-bugs
Date: 09/14/2006 20:00:01
>Number:         34527
>Category:       toolchain
>Synopsis:       Crosscompiling userland with MKSOFTFLOAT requires GCC --nfp configure
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 14 20:00:01 +0000 2006
>Originator:     Arthur Townsend
>Release:        3.0
>Organization:
>Environment:
3.0 for i386
>Description:
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).
>How-To-Repeat:
Get source sets for NetBSD 3.0, then attempt to build for Sun3 with /etc/mk.conf having MKSOFTFLOAT=yes
>Fix:
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.