Subject: Re: Build failure with MKSOFTFLOAT=yes
To: None <simonb@wasabisystems.com>
From: Masao Uebayashi <uebayasi@pultek.co.jp>
List: current-users
Date: 01/17/2004 18:47:44
Hi,

So, how should MKSOFTFLOAT be handled?

If I understand correctly, with MKSOFTFLOAT:

	a) the in-tree soft float library (*1) is used, if available
	   for a given arch, instead of libgcc's SF (*2),
and
	b) a distribution is built with the in-tree soft float,
and
	c) gcc built as part of a distribution will pick up the
	   in-tree soft float library if -msoft-float is specified,
right?

If this happens the soft float functions (*1) are built into libc
instread of libgcc, right?

> > > /src/TNF/arch/evbppc/dest/usr/lib/libc.a(softfloat.o)(.text+0x31e8): In function `__fixunsdfsi':
> > > : multiple definition of `__fixunsdfsi'
> > > /src/TNF/arch/evbppc/dest/usr/lib/libgcc.a(_fixunsdfsi.o)(.text+0x0): first defined here
> > > /src/TNF/arch/evbppc/tools/lib/gcc-lib/powerpc--netbsd/3.3.2/../../../../powerpc--netbsd/bin/ld: Warning: size of symbol `__fixunsdfsi' changed from 120 in /src
> > > /TNF/arch/evbppc/dest/usr/lib/libgcc.a(_fixunsdfsi.o) to 284 in /src/TNF/arch/evbppc/dest/usr/lib/libgcc.a(_fixunsdfsi.o)
> > > collect2: ld returned 1 exit status
> > > 
> > > ERROR: Failed to make release
> > > *** BUILD ABORTED ***
> I can confirm that it happens for me too building a powerpc softfloat
> release.  I suspect there is some gcc 3 issue - the last time I built a
> softfloat userland was with gcc 2.95.3.

Could you be more specific about "the last time"?

> Can you file a PR please?

Done, toolchain/24073.

(*1) lib/libc/softfloat
(*2) gnu/dist/gcc/gcc/libgcc2.c

Masao