NetBSD Problem Report #34527

From  Thu Sep 14 19:57:54 2006
Return-Path: <>
Received: by (Postfix, from userid 31301)
	id 9DF0A63B964; Thu, 14 Sep 2006 19:57:54 +0000 (UTC)
Message-Id: <>
Date: Thu, 14 Sep 2006 19:57:54 +0000 (UTC)
Subject: Crosscompiling userland with MKSOFTFLOAT requires GCC --nfp configure
X-Send-Pr-Version: www-1.0

>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.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.