Subject: toolchain/23550: Build problem with NFS-mounted read/only source tree
To: None <gnats-bugs@gnats.netbsd.org>
From: None <xavier.humbert@xavhome.fr.eu.org>
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
>Closed-Date:
>Last-Modified:
>Originator: Xavier HUMBERT
>Release: NetBSD 1.6ZF
>Organization:
>Environment:
System: NetBSD arnor.xavhome.fr.eu.org 1.6ZF NetBSD 1.6ZF (XAVIER) #0: Fri Nov 14 18:06:47 CET 2003 root@arnor.xavhome.fr.eu.org:/usr/netbsd-build/obj.i386/sys/arch/i386/compile/XAVIER 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
>Description:
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.
>How-To-Repeat:
------- cut ---------
# cd /usr/src
# ./build.sh -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 ---------
>Fix:
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)
Thanks,
Regards,
--
Xavier HUMBERT
Network, System and Security Admin
INJEP - Ministere Jeunesse Education Recherche
FRANCE
>Release-Note:
>Audit-Trail:
>Unformatted: