NetBSD Problem Report #34506

From www@NetBSD.org  Mon Sep 11 16:34:13 2006
Return-Path: <www@NetBSD.org>
Received: by narn.NetBSD.org (Postfix, from userid 31301)
	id 71D9B63B84D; Mon, 11 Sep 2006 16:34:13 +0000 (UTC)
Message-Id: <20060911163413.71D9B63B84D@narn.NetBSD.org>
Date: Mon, 11 Sep 2006 16:34:13 +0000 (UTC)
From: sigmfsk@aol.com
Reply-To: sigmfsk@aol.com
To: gnats-bugs@NetBSD.org
Subject: libc.a missing some -msoft-float routines (__floatsisf, __fixsfsi, __gtdf2)
X-Send-Pr-Version: www-1.0

>Number:         34506
>Category:       lib
>Synopsis:       libc.a missing some -msoft-float routines (__floatsisf, __fixsfsi, __gtdf2)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 11 16:35:00 +0000 2006
>Last-Modified:  Fri Sep 15 19:15:05 +0000 2006
>Originator:     Arthur Townsend
>Release:        3.0
>Organization:
>Environment:
NetBSD 3.0 (GENERIC3X) running on Sun 3/80.
>Description:
If I attempt to build the gcc-3.3.5 compiler with "-msoft-float -m68020" via the NetBSD 3.0 included gcc-3.3.3 compiler, the build fails on jartool.c with undefined reference to __floatsisf and __fixsfsi.  The command "nm /usr/lib/libc.a | grep fix" shows __fixdfdi, but not __fixsfsi.  I see that /usr/src/lib/libc/softfloat/softfloat-for-gcc.h references both __fixdfdi and __fixsfsi, but /usr/src/lib/libc/tags only defines __fixdfdi to /usr/src/lib/libc/quad/fixdfdi.c.  I can't find fixsfsi defined.  My libc.a on Netbsd 3.0 for i386 also doesn't have it/them.
>How-To-Repeat:
bunzip2 gcc-3.3.5.tar.bz2
tar xf gcc-3.3.5.tar
cd gcc-3.3.5
./configure --enable-long-long --disable-multilib --enable-threads --disable-symvers
make

>Fix:

>Audit-Trail:
From: SigmFSK@aol.com
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: lib/34506
Date: Fri, 15 Sep 2006 14:58:55 EDT

 I found that the missing soft-float routines are  added to NetBSD's libc.a if 
 gcc was original built with the configure option  --nfp.  So compiling 
 something with -msoft-float isn't very useful if gcc  wasn't originally built with 
 --nfp.  Maybe this isn't a bug, but at least  its very confusing.  

 Maybe this could be added to the man page  under gcc -msoft-float, or a 
 netbsd soft-float faq somewhere.  I rebuilt  the entire userland with MKSOFTFLOAT 
 and gcc's configure with --nfp (per PR  toolchain/34527), and can now generate 
 -msoft-float executables fine.
 /arthur   

NetBSD Home
NetBSD PR Database Search

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