Subject: port-hp300/9294: miniroot does not build for hp300
To: None <gnats-bugs@gnats.netbsd.org>
From: None <oster@cs.usask.ca>
List: netbsd-bugs
Date: 01/25/2000 14:28:10
>Number:         9294
>Category:       port-hp300
>Synopsis:       miniroot does not build for hp300
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-hp300-maintainer (NetBSD/hp300 Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 25 14:27:00 2000
>Last-Modified:
>Originator:     Greg Oster
>Organization:
rarely
>Release:        NetBSD-1.4.2_ALPHA (cvs checkout, Jan 23, 2000, 12:05pm)
>Environment:
System: NetBSD zoot 1.4.2_ALPHA NetBSD 1.4.2_ALPHA (GENERIC) #1: Tue Jan 25 09:10:17 PST 2000     oster@zoot:/merlin/zoot/NetBSD-1.4.2/src/sys/arch/hp300/compile/GENERIC hp300

>Description:
	The miniroot for a hp300 1.4.2 distribution does not build. 
A 'make' in the src/distrib directory yields, in part, the following:

all ===> utils
...
all ===> utils/x_ftp
...
cc -O2 -msoft-float -Werror   -DNO_EDITCOMPLETE -DNO_ABOUT -I/merlin/zoot/NetBSD-1.4.2/src/distrib/utils/x_ftp/../../../usr.bin/ftp -nostdinc -idirafter /merlin/hp300/1.4.2/install/usr/include -c /merlin/zoot/NetBSD-1.4.2/src/distrib/utils/x_ftp/../../../usr.bin/ftp/util.c
cc  -static -o ftp -nostdlib -L/merlin/hp300/1.4.2/install/usr/lib /merlin/hp300/1.4.2/install/usr/lib/crt0.o  cmds.o cmdtab.o complete.o domacro.o fetch.o ftp.o main.o ruserpass.o util.o -lutil -lgcc -lc -lgcc 
util.o: Undefined symbol `___gtdf2' referenced from text segment
util.o: Undefined symbol `___ledf2' referenced from text segment
util.o: Undefined symbol `___gtdf2' referenced from text segment
util.o: Undefined symbol `___gtdf2' referenced from text segment
collect2: ld returned 1 exit status
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.

Observe that x_ftp does not link correctly, due to symbols generated by
the compiler, but not resolvable in anything that the linker is looking at.
The missing symbols do not exist in any of the .a files in /usr/lib either.
Note that if util.c is compiled *without* the '-msoft-float' option then
the link step will succeed.

>How-To-Repeat:

	On an hp300 box do:

	cd /your_1.4.2_ALPHA_dir/src/distrib
	make

	watch the build fail when it gets to linking x_ftp.

>Fix:
	No idea.  But it's rather necessary for a 1.4.2 miniroot.

>Audit-Trail:
>Unformatted: