Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Sep 1997 21:51:26 +1000
From:      Stephen McKay <syssgm@dtir.qld.gov.au>
To:        freebsd-stable@freebsd.org
Cc:        syssgm@dtir.qld.gov.au
Subject:   No-go with read-only src tree
Message-ID:  <199709191151.VAA29237@troll.dtir.qld.gov.au>

next in thread | raw e-mail | index | archive | help
I can't recall any actual claim that a read only source tree can be used
for a 'make buildworld', but I tried anyway.  I started with a 2.2.2 box
and it fell over trying to build 'make'.  After 'make install' in share/mk
it got much further.  It seems to me like this could work with a few tweaks.

The next death spot (somewhere after "Rebuilding tools needed to build the
libraries"):

cd /src/2.2-stable/usr.bin/lex/lib && /usr/obj/src/2.2-stable/tmp/usr/bin/make depend &&  /usr/obj/src/2.2-stable/tmp/usr/bin/make -DNOINFO -DNOMAN -DNOPROFILE all install cleandir obj
rm -f .depend
mkdep -f .depend -a  -I/usr/obj/src/2.2-stable/tmp/usr/include  libmain.c libyywrap.c
/usr/bin/mkdep: cannot create .depend: read-only file system
*** Error code 2

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.


It seems that back in the "Bootstrapping flex" part in "Rebuilding bootstrap
tools", the "make ... all install cleandir obj" command rebuilds the obj
dir for lex, but not lex/lib.

As the last step of the bootstrap, I see:

/usr/obj/src/2.2-stable/usr.bin/lex created for /src/2.2-stable/usr.bin/lex

but I DON'T see the expected lex/lib equivalent.

I reckon this is solvable.  I'll be building 2.2-stable pretty regularly
until release date, and I'm keen on building from read-only source.  If
no Makefile Master fixes this, I'll be adding something creative of my
own. :-)

Stephen.



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