From owner-freebsd-stable Sat Jul 27 8:17:20 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E3E737B400 for ; Sat, 27 Jul 2002 08:17:17 -0700 (PDT) Received: from smtp.noos.fr (aragon.noos.net [212.198.2.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AC0A43E3B for ; Sat, 27 Jul 2002 08:17:16 -0700 (PDT) (envelope-from cyrille.lefevre@laposte.net) Received: (qmail 12385739 invoked by uid 0); 27 Jul 2002 15:17:14 -0000 Received: from unknown (HELO gits.gits.dyndns.org) ([212.198.229.153]) (envelope-sender ) by 212.198.2.75 (qmail-ldap-1.03) with SMTP for ; 27 Jul 2002 15:17:14 -0000 Received: from gits.gits.fr.invalid (39g7qia4ge2cel2l@localhost [127.0.0.1]) by gits.gits.dyndns.org (8.12.5/8.12.5) with ESMTP id g6RFHENc034264 for ; Sat, 27 Jul 2002 17:17:14 +0200 (CEST) (envelope-from cyrille.lefevre@laposte.net) Date: Sat, 27 Jul 2002 17:17:08 +0200 To: Ruslan Ermilov Cc: freebsd stable Subject: buildworld objdir moved! (was Re: sys/boot) Message-ID: <20020727151708.GA30397@gits.dyndns.org> References: <20020727145030.GA20412@gits.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020727145030.GA20412@gits.dyndns.org> User-Agent: Mutt/1.3.99i Organization: ACME X-Face: V|+c;4!|B?E%BE^{E6);aI.[< Mail-Followup-To: cyrille.lefevre@laposte.net, ru@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG X-Delivery-Agent: TMDA/0.58 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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