Subject: toolchain/34527: Crosscompiling userland with MKSOFTFLOAT requires GCC --nfp configure
To: None <,,>
From: None <>
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
3.0 for i386
When crosscompiling netbsd on i386 for use on a Sun3, with /etc/mk.conf having MKSOFTFLOAT=yes, the command ./ -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.