From owner-freebsd-current Sat Dec 23 11:16:20 2000 From owner-freebsd-current@FreeBSD.ORG Sat Dec 23 11:16:18 2000 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from earth.backplane.com (placeholder-dcat-1076843399.broadbandoffice.net [64.47.83.135]) by hub.freebsd.org (Postfix) with ESMTP id 13D6137B400; Sat, 23 Dec 2000 11:16:18 -0800 (PST) Received: (from dillon@localhost) by earth.backplane.com (8.11.1/8.9.3) id eBNJGHV97973; Sat, 23 Dec 2000 11:16:17 -0800 (PST) (envelope-from dillon) Date: Sat, 23 Dec 2000 11:16:17 -0800 (PST) From: Matt Dillon Message-Id: <200012231916.eBNJGHV97973@earth.backplane.com> To: Mike Smith Cc: freebsd-current@FreeBSD.ORG Subject: Re: Problem building -current kernel with read-only /usr/src. References: <200012231234.eBNCYKj10745@mass.osd.bsdi.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG : :> While trying to run 'make depend' in /usr/src/sys/compile/BLAH I got: :> :> ===> 3dfx :> @ -> /FreeBSD/FreeBSD-current/src/sys :> ln: @: Read-only file system :> *** Error code 1 :> :> Stop in /FreeBSD/FreeBSD-current/src/sys/modules/3dfx. :> *** Error code 1 :> :> It looks like it's trying to mess around with something in /usr/src, :> which is a read-only NFS mount. Needless to say we do not want to :> break being able to have a read-only /usr/src! :> :> Anyone been messing with the 3dfx module recently ? : :All the modules do this. Remove "MODULES_WITH_WORLD" from your :/etc/make.conf; they're not compatible with a read-only source tree. I've partially tracked it down to the ILINKS target in kmod.mk being run while in the wrong directory. It SHOULD be in /FreeBSD/FreeBSD-current/src/sys/compile/TEST4/modules/3dfx (aka /usr/src/sys/compile/TEST4/modules/3dfx). But instead, when I echo `pwd` in the ILINKS target it appears to be cd'd into the main modules source directory: mv -f .newdep .depend find ../../modules -type d -a ! -name CVS | sed -e "s|../../modules|modules|g" | xargs mkdir -p ; cd ../../modules ; env MAKEOBJDIRPREFIX=/FreeBSD/FreeBSD-current/src/sys/compile/TEST4/modules KMODDIR=/boot/kernel make depend ===> 3dfx @ -> /FreeBSD/FreeBSD-current/src/sys /FreeBSD/FreeBSD-current/src/sys/modules/3dfx <<<<<<<<<<<<<<<<<<<<<<<<<<<< ln: @: Read-only file system *** Error code 1 Stop in /FreeBSD/FreeBSD-current/src/sys/modules/3dfx. *** Error code 1 Stop in /FreeBSD/FreeBSD-current/src/sys/modules. This is not right. Someone did something to change the compile dir as of the time the dependancies are run. The cd in the 'find' sequence is correct It looks like someone blew up the making of the object directories under compile/TEST4/modules. Under 4.x I had paths like this: /usr/src/sys/compile/TEST4/modules/FreeBSD/FreeBSD-current/usr/src/sys/modules/tx/.... Under -current they are like this: /usr/src/sys/compile/TEST4/modules/tx/... The 'make' program can't find the object module directory any more. Ahh.. so maybe I should remake the make program, eh? Tried that, doesn't work. Whoever 'fixed' object directory creation under /usr/src/sys/compile/BLAH for modules broke it instead. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message