Subject: install/34831: current build fails to generate /usr/src/gnu/dist/gdb6/gdb/objc-exp.c - doesn't use OBJDIR?
To: None <install-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <sd4dfg2@hotmail.com>
List: netbsd-bugs
Date: 10/15/2006 20:40:00
>Number:         34831
>Category:       install
>Synopsis:       current build fails to generate /usr/src/gnu/dist/gdb6/gdb/objc-exp.c - doesn't use OBJDIR?
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 15 20:40:00 +0000 2006
>Originator:     Rob Quinn
>Release:        -current
>Organization:
>Environment:
NetBSD spiral.example.com 4.99.3 NetBSD 4.99.3 (SPIRAL) #456: Wed Oct 11 09:08:25 EDT 2006  root@spiral.example.com:/usr/obj/SPIRAL i386

>Description:
My build fails like this:

spiral:/usr/src/gnu/usr.bin/gdb6 #nbmake UPDATE=1 dependall
dependall ===> bfd
dependall ===> libiberty
dependall ===> opcodes
dependall ===> libgdb
/usr/obj/tooldir/bin/nbyacc: f - cannot open "/usr/src/gnu/dist/gdb6/gdb/objc-exp.c"

*** Failed target:  objc-exp.c
*** Failed command: /usr/obj/tooldir/bin/nbyacc -o /usr/src/gnu/dist/gdb6/gdb/objc-exp.c /usr/src/gnu/dist/gdb6/gdb/objc-exp.y
*** Error code 2

Stop.
nbmake: stopped in /usr/src/gnu/usr.bin/gdb6/libgdb

*** Failed target:  dependall-libgdb
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/src/gnu/usr.bin/gdb6" ;; *) this="${dir}/"; real="/usr/src/gnu/usr.bin/gdb6/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/obj/tooldir/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget libgdb dependall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/gnu/usr.bin/gdb6

>How-To-Repeat:
I have /usr/src mounted read-only with various settingd in /etc/mk.conf:

WRKOBJDIR=/usr/obj/pkg
MKOBJDIRS=yes
MAKEOBJDIRPREFIX=/usr/obj
BSDSRCDIR=/usr/src
TOOLDIR=/usr/obj/tooldir

>Fix:
I mounted /usr/src read-write to rebuild that file.