Date: Sat, 27 Jul 2002 17:17:08 +0200 From: Cyrille Lefevre <cyrille.lefevre@laposte.net> To: Ruslan Ermilov <ru@FreeBSD.ORG> Cc: freebsd stable <freebsd-stable@FreeBSD.ORG> Subject: buildworld objdir moved! (was Re: sys/boot) Message-ID: <20020727151708.GA30397@gits.dyndns.org> In-Reply-To: <20020727145030.GA20412@gits.dyndns.org> References: <20020727145030.GA20412@gits.dyndns.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jul 27, 2002 at 04:50:30PM +0200, Cyrille Lefevre wrote:
> I'm running -stable and I encounter the following problem :
>
> # make buildworld
> ...
> ===> sys/boot/buildworld
> cd: can't cd to /disk2/freebsd/stable/src/sys/boot/buildworld
> *** Error code 2
found it! this is due by recent changes in src/Makefile.inc1.
TARGET is set using ?= and this is a problem when this variable
already exists in the environment as I do through the Makefile
I use to fetch/update/build/install/configure everything.
here is the log before w/ the following patch :
--------------------------------------------------------------
>>> Rebuilding the temporary build tree
--------------------------------------------------------------
# XXX - These two can depend on any header file.
rm -f /usr/obj/buildworld/disk2/freebsd/stable/src/usr.bin/kdump/ioctl.c
rm -f /usr/obj/buildworld/disk2/freebsd/stable/src/usr.bin/truss/ioctl.c
^^^^^^^^^^ oops!
and the log w/ it :
--------------------------------------------------------------
>>> Rebuilding the temporary build tree
--------------------------------------------------------------
# XXX - These two can depend on any header file.
rm -f /usr/obj/disk2/freebsd/stable/src/usr.bin/kdump/ioctl.c
rm -f /usr/obj/disk2/freebsd/stable/src/usr.bin/truss/ioctl.c
Index: /usr/src/Makefile.inc1
===================================================================
RCS file: /home/ncvs/src/Makefile.inc1,v
retrieving revision 1.141.2.54
diff -u -r1.141.2.54 Makefile.inc1
--- /usr/src/Makefile.inc1 25 Jul 2002 09:33:13 -0000 1.141.2.54
+++ /usr/src/Makefile.inc1 27 Jul 2002 15:04:17 -0000
@@ -126,9 +126,12 @@
MAKEOBJDIRPREFIX?= /usr/obj
TARGET_ARCH?= ${MACHINE_ARCH}
.if ${TARGET_ARCH} == ${MACHINE_ARCH}
-TARGET?= ${MACHINE}
+TARGET= ${MACHINE}
.else
-TARGET?= ${TARGET_ARCH}
+TARGET= ${TARGET_ARCH}
+.endif
+.if defined(TARGET_OVERRIDE)
+TARGET= ${TARGET_OVERRIDE}
.endif
.if make(buildworld)
BUILD_ARCH!= sysctl -n hw.machine_arch
PS : the previous patch submitted still apply.
Cyrille.
--
Cyrille Lefevre mailto:cyrille.lefevre@laposte.net
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?20020727151708.GA30397>
