From root@kew.com  Sun Jun 24 07:51:26 2001
Return-Path: <root@kew.com>
Received: from kendra.ne.mediaone.net (kendra.ne.mediaone.net [24.218.227.234])
	by hub.freebsd.org (Postfix) with ESMTP id 8C67537B406
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 24 Jun 2001 07:51:26 -0700 (PDT)
	(envelope-from root@kew.com)
Received: by kendra.ne.mediaone.net (Postfix, from userid 0)
	id 042731553D; Sun, 24 Jun 2001 06:19:15 -0400 (EDT)
Message-Id: <20010624101915.042731553D@kendra.ne.mediaone.net>
Date: Sun, 24 Jun 2001 06:19:15 -0400 (EDT)
From: ahd@kew.com
Reply-To: ahd@kew.com
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: make installworld fails from r/o /usr/obj
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         28384
>Category:       misc
>Synopsis:       make installworld fails from R/O /usr/obj
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 24 08:00:09 PDT 2001
>Closed-Date:    Tue Sep 25 09:04:16 PDT 2001
>Last-Modified:  Tue Sep 25 09:08:17 PDT 2001
>Originator:     Drew Derbyshire
>Release:        FreeBSD 4.3-RELEASE i386
>Organization:
>Environment:
System: FreeBSD sonata.hh.kew.com 4.3-RELEASE FreeBSD 4.3-RELEASE #1: Thu Jun 21 13:59:44 EDT 2001 ahd@sonata.hh.kew.com:/usr/src/sys/compile/SONATA i386

Mounted file systems from mount -p:

	/dev/da0s2a	/	ufs rw	1 1
	/dev/da1s2a	/da1root	ufs rw	1 1
	mfs:11	/tmp	mfs rw,async	0 0
	procfs	/proc	procfs rw	0 0
	/dev/vinum/usr	/usr	ufs rw	2 2
	/dev/vinum/export	/usr/export	ufs rw	2 2
	/dev/vinum/var	/var	ufs rw	2 2
	minerva:/usr/scratch/obj	/usr/obj	nfs ro	0 0
	minerva:/usr/src	/usr/src	nfs ro	0 0

>Description:

Install of FreeBSD 4.3 fails well into the install because /usr/obj is R/O.  I would expect R/W not to be required on an install, or if it was, to be checked before partially updating the system.

Here's a sample of the failure mode:


	.
	.
	.
Appending installation info to /usr/libdata/perl/5.00503/mach/perllocal.pod
===> gnu/usr.bin/perl/library/SDBM_File
cd /usr/obj/usr/src/gnu/usr.bin/perl/library/SDBM_File/ext/SDBM_File ; make -B install  INSTALLPRIVLIB=/usr/libdata/perl/5.00503  INSTALLARCHLIB=/usr/libdata/perl/5.00503/mach
cd sdbm && make all
rm -rf libsdbm.a
rm: libsdbm.a: Read-only file system
*** Error code 1

Stop in /usr/obj/usr/src/gnu/usr.bin/perl/library/SDBM_File/ext/SDBM_File/sdbm.
*** Error code 1

Stop in /usr/obj/usr/src/gnu/usr.bin/perl/library/SDBM_File/ext/SDBM_File.
*** Error code 1

Stop in /usr/src/gnu/usr.bin/perl/library/SDBM_File.
*** Error code 1

Stop in /usr/src/gnu/usr.bin/perl/library.
*** Error code 1

Stop in /usr/src/gnu/usr.bin/perl.
*** Error code 1

Stop in /usr/src/gnu/usr.bin.
*** Error code 1

Stop in /usr/src/gnu.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
# 


>How-To-Repeat:
	make installworld with R/O /usr/obj 
>Fix:

	Workaround is, of course, to allow R/W access to /usr/obj as root.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Tue Sep 25 09:04:16 PDT 2001 
State-Changed-Why:  
There shouldn't be any attempts to "make" something in the object 
directory during the install phase.  If you observe this, it'smuch 
likely that /usr/src and /usr/obj are time-unbalanced, i.e. some 
files in /usr/src have more recent modification dates. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28384 
>Unformatted:
