Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Feb 2002 13:19:14 +0200
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        BOUWSMA Beery <freebsd-user@netscum.dyndns.dk>
Cc:        Vallo Kallaste <kalts@estpak.ee>, freebsd-stable@FreeBSD.ORG
Subject:   Re: buildworld with ro /usr/src broken
Message-ID:  <20020227111914.GB30220@sunbay.com>
In-Reply-To: <200202091743.g19HhIm00362@beerswilling.netscum.dyndns.dk>
References:  <20020209130437.GA15287@myhakas.estpak.ee> <200202091743.g19HhIm00362@beerswilling.netscum.dyndns.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Feb 09, 2002 at 06:43:18PM +0100, BOUWSMA Beery wrote:
> 
> Serwoas!
> %s wrote on %.3s, %lld Sep 1993
> 
> > Buildworld with ro NFS mounted /usr/src is broken. I have
> > MAKEOBJDIRPREFIX set to nonstandard location.
> 
> Look back in the freebsd-hackers list a few days or so.  I gave a
> pretty lengthy explanation of what you need to do to get it to work.
> (Also in freebsd-bugs, maybe a month ago)
> 
> In short, either use `env MAKEOBJDIRPREFIX ... ' or if you set it in
> /etc/make.conf, dont use `=' but instead use `?='
> 
> 
> Here's what is happening:
> 
> > cd /usr/src; MAKEOBJDIRPREFIX=/cache/b/obj/usr/src/i386
>                                 ^^^^^^^^^^^^^^^^^^^^^^^^^
> this is generated from the value you provide
> 
> > /cache/b/obj/usr/src/usr.bin/yacc created for /usr/src/usr.bin/yacc
>   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> this too was generated from the value you gave, instead of being formed
> based on the prefix above, and it's missing the `i386' in the path
> 
> > mkdep -f .depend -a      closure.c error.c lalr.c lr0.c main.c mkpar.c
> > /usr/bin/mkdep: cannot create _mkdep3993: read-only file system
> 
> the mkdep command can't find the object directory it's looking for, since
> what was created by `make obj' wasn't where it's looking, so it tries to
> work in the current source (read-only) directory
> 
MAKEOBJDIR[PREFIX] only work right if set as environment variables.
This is documented in make(1) manpage and in /usr/share/mk/bsd.obj.mk.

I have an uncommitted patch that makes it possible to set them on
make(1)'s command line but still no joy in attempting to set them
in /etc/make.conf.  I bear in mind adding a patch to Makefile.inc1
too that would prevent people from attempting to set MAKEOBJDIRPREFIX
in /etc/make.conf.


Cheers,
-- 
Ruslan Ermilov		Sysadmin and DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

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




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