Subject: toolchain/23550: Build problem with NFS-mounted read/only source tree
To: None <>
From: None <>
List: netbsd-bugs
Date: 11/23/2003 17:05:25
>Number:         23550
>Category:       toolchain
>Synopsis:       Build of regress/lib/libc/randomid fails when source tre is NFS-mounted read-only
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 23 16:06:00 UTC 2003
>Originator:     Xavier HUMBERT
>Release:        NetBSD 1.6ZF
System: NetBSD 1.6ZF NetBSD 1.6ZF (XAVIER) #0: Fri Nov 14 18:06:47 CET 2003 i386
Architecture: i386
Machine: i386
Filesystems status :
	/dev/wd0a on / type ffs (local)
	valinor:/home/nb/pkgsrc on /usr/pkgsrc type nfs (read-only)
	valinor:/home/nb/src on /usr/src type nfs (read-only)
	valinor:/home/nb/xsrc on /usr/xsrc type nfs (read-only)
	valinor:/home/nb/pkgsrc-build on /usr/tmp/pkgsrc type nfs
	valinor:/home/nb/tmp on /tmp type nfs

	When building userland, with source tree mounted read-only some regression tests
	(at first libc/randomid, some others may fail later) wants to write into the source filesystem.

------- cut ---------
# cd /usr/src
# ./ -u -o -m i386 -D /usr/netbsd-build/build.i386 -R /usr/netbsd-build/release.i386 -O /usr/netbsd-build/obj.i386 -T /usr/tools.i386 distribution
dependall ===> regress/lib/libc/randomid
#    create  idtest.d
CC=/usr/tools.i386/bin/i386--netbsdelf-gcc /usr/tools.i386/bin/nbmkdep -f idtest.d --     -nostdinc -isystem /usr/netbsd-build/build.i386/usr/include    idtest.c
nbmkdep: unable to write to file idtest.d
: Read-only file system

*** Failed target:  idtest.d
*** Failed command: CC=/usr/tools.i386/bin/i386--netbsdelf-gcc /usr/tools.i386/bin/nbmkdep -f idtest.d -- -nostdinc -isystem /usr/netbsd-build/build.i386/usr/include idtest.c
*** Error code 1
------- cut ---------

	As usual, remount /usr/src read-write, with potential pollution of source-tree as it is the case with bin/22943 (etcupdate is involved, in this case)



Network, System and Security Admin
INJEP - Ministere Jeunesse Education Recherche