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:[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message
  • sys/boot Cyrille Lefevre
    • Cyrille Lefevre

Reply via email to