Subject: toolchain/35271: gdb6 build doesn't honour build.sh DESTDIR
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <ggm@apnic.net>
List: netbsd-bugs
Date: 12/18/2006 04:45:01
>Number:         35271
>Category:       toolchain
>Synopsis:       making current/gdb6 tries to write into /usr/src paths directly
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 18 04:45:00 +0000 2006
>Originator:     George Michaelson
>Release:        NetBSD 4.99.5
>Organization:
George Michaelson                      email:           ggm@apnic.net
Senior Technical Officer, APNIC          sip:      ggm@voip.apnic.net
http://www.apnic.net                   phone:         +61 7 3858 3100
>Environment:
	
	
System: NetBSD garlique.algebras.org 4.99.5 NetBSD 4.99.5 (GGM_ACPI) #1: Mon Dec 11 13:35:16 EST 2006 ggm@garlique.algebras.org:/data/Build/obj/usr/src/sys/arch/i386/compile/GGM_ACPI i386
Architecture: i386
Machine: i386
>Description:
gdb6 requires a run of lex over 
/usr/src/gnu/dist/gdb6/gdb/ada-lex.l

but the call is not honouring the build.sh specified write-path for output, 
instead  its wired into /usr/src (mounted readonly)

#       lex  libgdb//usr/src/gnu/dist/gdb6/gdb/ada-lex.c
/data/Build/tools/bin/nblex  -Pyy -o/usr/src/gnu/dist/gdb6/gdb/ada-lex.c /usr/sr
c/gnu/dist/gdb6/gdb/ada-lex.l
/data/Build/tools/bin/nblex: could not create /usr/src/gnu/dist/gdb6/gdb/ada-lex
.c

*** Failed target:  /usr/src/gnu/dist/gdb6/gdb/ada-lex.c
*** Failed command: /data/Build/tools/bin/nblex -Pyy -o/usr/src/gnu/dist/gdb6/gd
b/ada-lex.c /usr/src/gnu/dist/gdb6/gdb/ada-lex.l
*** Error code 1

Stop.
	
>How-To-Repeat:
	run build.sh over a read-only /usr/src

	
>Fix:
	find a Makefile lex rule and stomp on it!
	

>Unformatted: