Subject: toolchain/34685: gdb yacc pass breaks in ro /usr/src
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <ggm@pobox.com>
List: netbsd-bugs
Date: 10/01/2006 05:55:00
>Number:         34685
>Category:       toolchain
>Synopsis:       gdb requires a yacc pass which can't work in ro /usr/src
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 01 05:55:00 +0000 2006
>Originator:     George Michaelson
>Release:        NetBSD 4.99.2
>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.2 NetBSD 4.99.2 (GGM_ACPI) #1: Fri Sep 22 14:48:18 EST 2006 ggm@garlique.algebras.org:/data/Build/obj/usr/src/sys/arch/i386/compile/GGM_ACPI i386
Architecture: i386
Machine: i386
>Description:
	I was running build.sh as:

(cd /usr/src; nice ./build.sh -x -u -U -M /data/Build/obj \
	-T /data/Build/tools distribution sets \
		kernel=GGM_ACPI releasekernel=GGM_ACPI
with /usr/src mounted RO, expecting all outputs to the /data/Build/obj tree.

However, during the build of gdb, a yacc pass attempted to write a new .c file
from a .y source, specifying /usr/src as the output path.
>How-To-Repeat:
	run build.sh as above on a clean OBJDIR state from ro /usr/src

	
>Fix:
	I think a Makefile.in or Makefile needs to be BSD-ised to refer
	to the OBJDIR output path in the .c.y rule.
	

>Unformatted: