Subject: bin/14457: sparc build fails with use_new_toolchain
To: None <gnats-bugs@gnats.netbsd.org>
From: Darren Reed <darrenr@igraine.reed.wattle.id.au>
List: netbsd-bugs
Date: 11/05/2001 10:04:04
>Number:         14457
>Category:       bin
>Synopsis:       sparc build fails with use_new_toolchain
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 04 15:07:02 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Darren Reed
>Release:        NetBSD-1.5Y
>Organization:
	
>Environment:
	
System: NetBSD netbsd.reed.wattle.id.au 1.5Y NetBSD 1.5Y (SSPARC) #0: Sat Oct 27 21:13:10 EST 2001 darrenr@netbsd.reed.wattle.id.au:/usr/obj/SSPARC sparc
Architecture: sparc
Machine: sparc
>Description:
	Building the sparc distribution fails with USE_NEW_TOOLCHAIN.
I can no longer bulid a NetBSD-current/sparc release.
I do the following:

# make MAKEOBJDIRPREFIX=/usr/obj/obj release
...
Making all in po
/bin/sh /data3/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/../ylwrap "bison -y" /data3/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y y.tab.c ldgram.c y.tab.h ldgram.h --  -d
cc -DHAVE_CONFIG_H -I. -I/data3/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld -I. -D_GNU_SOURCE -I. -I/data3/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld -I../bfd -I/data3/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/../bfd -I/data3/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/../include -I/data3/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/../intl -I../intl  -O -DLOCALEDIR="\"/usr/obj/tool/share/locale\""   -W -Wall -O -c /data3/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.c
true   /data3/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldlex.l && mv lex.yy.c /data3/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldlex.c
mv: rename lex.yy.c to /data3/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldlex.c: No such file or directory
*** Error code 1

# cat /etc/mk.conf
#MAKEOBJDIRPREFIX=/usr/obj/obj
MKOBJ=yes
DESTDIR=/usr/obj/root
BSDSRCDIR=/data3/netbsd/src
UPDATE=1
#MKTOOLS=yes
USETOOLS=yes
USE_NEW_TOOLCHAIN=yes
TOOLDIR=/usr/obj/tool

>How-To-Repeat:
	See above.
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: