Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Dec 2000 11:16:17 -0800 (PST)
From:      Matt Dillon <dillon@earth.backplane.com>
To:        Mike Smith <msmith@FreeBSD.ORG>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: Problem building -current kernel with read-only /usr/src. 
Message-ID:  <200012231916.eBNJGHV97973@earth.backplane.com>
References:   <200012231234.eBNCYKj10745@mass.osd.bsdi.com>

next in thread | previous in thread | raw e-mail | index | archive | help

:
:>     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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012231916.eBNJGHV97973>