Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Dec 2001 02:24:41 +0100 (CET)
From:      BOUWSMA Beery <freebsd-user@netscum.dyndns.dk>
To:        freebsd-bugs@freebsd.org
Subject:   changing MAKEOBJDIRPREFIX crashes buildworld with read-only src
Message-ID:  <200112220124.fBM1OfD85379@dastardly.newsbastards.org>

next in thread | raw e-mail | index | archive | help
[replies sent directly to me may timeout and bounce, since I'm not
 online as often as I should be, but I'll check the list archives]

This is 4.4-stable that I could have hosed but I think I fixed it

I've got /usr/src mounted read-only, and I have a buildworld happening
in /usr/obj, while I've decided to start building world somewhere
else, like /usr/obj/4.4-STABLE

When I do so, the `make depend' promptly fails.

--------------------------------------------------------------
>>> Rebuilding the temporary build tree
--------------------------------------------------------------
rm -rf /usr/obj/4.4-STABLE/usr/src/i386
mkdir -p /usr/obj/4.4-STABLE/usr/src/i386/usr/bin
[...]
ln -sf /usr/src/sys /usr/obj/4.4-STABLE/usr/src/i386
--------------------------------------------------------------
>>> stage 1: bootstrap tools
--------------------------------------------------------------
cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj/4.4-STABLE/usr/src/i386  DESTDIR=/usr/obj
/4.4-STABLE/usr/src/i386  INSTALL="sh /usr/src/tools/install.sh"  MACHINE_ARCH=i
386  TOOLS_PREFIX=/usr/obj/4.4-STABLE/usr/src/i386  PATH=/usr/obj/4.4-STABLE/usr
/src/i386/usr/sbin:/usr/obj/4.4-STABLE/usr/src/i386/usr/bin:/usr/obj/4.4-STABLE/
usr/src/i386/usr/games:/sbin:/bin:/usr/sbin:/usr/bin make -f Makefile.inc1 -DBOO
TSTRAPPING  -DNOHTML -DNOINFO -DNOMAN -DNOPIC -DNOPROFILE -DNOSHARED bootstrap-t
ools
cd /usr/src/games/fortune/strfile;  make obj;  make depend;  make all;  make ins
tall
rm -f .depend
mkdep -f .depend -a      strfile.c
/usr/bin/mkdep: cannot create _mkdep55632: read-only file system
*** Error code 2

Stop in /usr/src/games/fortune/strfile.
*** Error code 1

Stop in /usr/src.


The buildworld in just /usr/obj runs fine with read-only /usr/src.


Oh yeah, this just in --  a `buildkernel' attempt with the -stable
src/Makefile.inc1 hacked to pull the kernel config from KERNCONFDIR
also fails with a similar error:

[...]
===> wi
/usr/obj/4.4-STABLE/usr/src/sys/modules/wi created for /usr/src/sys/modules/wi
===> accf_data
@ -> /usr/src/sys
ln: @: Read-only file system
*** Error code 1

Stop in /usr/src/sys/modules/accf_data.
*** Error code 1

Stop in /usr/src/sys/modules.


Guess I'll do it the normal way for now...


thanks
barry bouwsma


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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