Re: Can no longer build clean jail using make world

From: Ruslan Ermilov <ru_at_FreeBSD.org>
Date: Wed, 18 Aug 2004 23:00:36 +0300
On Wed, Aug 18, 2004 at 03:00:47PM -0400, Joe Marcus Clarke wrote:
> I just updated my tinderbox machine to 6.0-CURRENT, and I'm trying to
> build a clean 6.0-CURRENT jail.  I'm using the new make(1), and I do not
> have MAKEOBJDIRPREFIX set anywhere.  The script I'm using basically
> does:
> 
> rm -rf /space/jails/6-CURRENT/tmp
> mkdir -p /space/jails/6-CURRENT/tmp
> cd /space/jails/6-CURRENT/src
> make world DESTDIR=/space/jails/6-CURRENT/tmp
> 
> (Basically taken right out of the jail(8) man page.)
> 
> This is the error I get:
> 
> --------------------------------------------------------------
> >>> stage 1.2: bootstrap tools
> --------------------------------------------------------------
> cd /space/jails/6-CURRENT/src;
> MAKEOBJDIRPREFIX=/usr/obj/space/jails/6-CURRENT/src/i386  DESTDIR= 
> INSTALL="sh /space/jails/6-CURRENT/src/tools/install.sh" 
> PATH=/usr/obj/space/jails/6-CURRENT/src/i386/legacy/usr/sbin:/usr/obj/space/jails/6-CURRENT/src/i386/legacy/usr/bin:/usr/obj/space/jails/6-CURRENT/src/i386/legacy/usr/games:/sbin:/bin:/usr/sbin:/usr/bin  WORLDTMP=/usr/obj/space/jails/6-CURRENT/src/i386  MAKEFLAGS="-m /space/jails/6-CURRENT/src/tools/build/mk  DESTDIR=/space/jails/6-CURRENT/tmp -m /space/jails/6-CURRENT/src/share/mk" make -f Makefile.inc1  BOOTSTRAPPING=600000  -DNOHTML -DNOINFO -DNOLINT -DNOMAN -DNOPIC -DNOPROFILE  -DNOSHARED -DNO_CPU_CFLAGS -DNO_WARNS bootstrap-tools
> ===> games/fortune/strfile
> /usr/obj/space/jails/6-CURRENT/src/i386/space/jails/6-CURRENT/src/games/fortune/strfile created for /space/jails/6-CURRENT/src/games/fortune/strfile
> rm -f .depend
> mkdep -f .depend -a   
> -I/usr/obj/space/jails/6-CURRENT/src/i386/legacy/usr/include
> /space/jails/6-CURRENT/src/games/fortune/strfile/strfile.c
> echo strfile: /space/jails/6-CURRENT/tmp/usr/lib/libc.a
> /usr/obj/space/jails/6-CURRENT/src/i386/legacy/usr/lib/libegacy.a >>
> .depend
> cc -O -pipe 
> -I/usr/obj/space/jails/6-CURRENT/src/i386/legacy/usr/include -c
> /space/jails/6-CURRENT/src/games/fortune/strfile/strfile.c
> make: don't know how to make /space/jails/6-CURRENT/tmp/usr/lib/libc.a.
> Stop
> *** Error code 2
> 
> What am I missing?  Thanks.
> 
Command-line variables (of the highest priority) are now passed
as command-line to processes that make(1) executes, including the
sub-makes.  What it means is that DESTDIR= settings made by the
buildworld substages are now ignored in the synopsis shown by
you.  Two work arounds for you:

	env DESTDIR=/space/jails/6-CURRENT/tmp make world

-or-

	make buildworld
	make installworld DESTDIR=/space/jails/6-CURRENT/tmp

while I'm working on a true fix.


Cheers,
-- 
Ruslan Ermilov
ru_at_FreeBSD.org
FreeBSD committer

Received on Wed Aug 18 2004 - 18:02:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:07 UTC