From owner-svn-src-all@FreeBSD.ORG Thu Feb 10 19:18:48 2011 Return-Path: Delivered-To: svn-src-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5E2C106566B; Thu, 10 Feb 2011 19:18:48 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 755598FC1C; Thu, 10 Feb 2011 19:18:48 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id p1AJFqWx015997; Thu, 10 Feb 2011 12:15:53 -0700 (MST) (envelope-from imp@bsdimp.com) Message-ID: <4D543968.9090502@bsdimp.com> Date: Thu, 10 Feb 2011 12:15:52 -0700 From: Warner Losh User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.13) Gecko/20101211 Thunderbird/3.1.7 MIME-Version: 1.0 To: Adrian Chadd References: <201101311517.p0VFHl9F028038@svn.freebsd.org> <20110210134108.D80258@maildrop.int.zabbadoz.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-head@FreeBSD.org, "Bjoern A. Zeeb" , svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, Warner Losh Subject: Re: svn commit: r218130 - head X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Feb 2011 19:18:49 -0000 Can you send me build-scripts? Warner On 02/10/2011 09:21, Adrian Chadd wrote: > So when I run this: > > adrian@ref8-amd64:/scratch/tmp/adrian/head/src$ env > BUILD_FLAGS="NOCLEAN=1 NO_CLEAN=1" ../../build/build-scripts/bin/build > rspro buildworld > MAKEOBJDIRPREFIX: /scratch/tmp/adrian/head/src/../obj/mipseb/ > env=MAKEOBJDIRPREFIX=/scratch/tmp/adrian/head/src/../obj/mipseb/ make > NOCLEAN=1 NO_CLEAN=1 TARGET=mips TARGET_ARCH=mipseb > TARGET_CPUTYPE=mips32 KERNCONF=RSPRO_STANDALONE > DESTDIR=/scratch/tmp/adrian/head/src/../root/mipseb > LOCAL_DIRS=tools/tools/ath buildworld > > > I get this: > ===> usr.bin/rpcgen (obj,depend,all,install) > sh /scratch/tmp/adrian/head/src/tools/install.sh -s -o root -g wheel > -m 555 rpcgen > /scratch/tmp/adrian/head/src/../obj/mipseb//mips.mipseb/scratch/tmp/adrian/head/src/tmp/legacy/usr/bin > ===> usr.bin/sed (obj,depend,all,install) > make: don't know how to make > /scratch/tmp/adrian/head/obj-i386/i386.i386/scratch/tmp/adrian/head/src/tmp/usr/include/sys/cdefs.h. > Stop > *** Error code 2 > > Stop in /scratch/tmp/adrian/head/src. > *** Error code 1 > > Stop in /scratch/tmp/adrian/head/src. > *** Error code 1 > > Stop in /scratch/tmp/adrian/head/src. > > > > Adrian > > > On 10 February 2011 21:45, Bjoern A. Zeeb > wrote: >> On Mon, 31 Jan 2011, Warner Losh wrote: >> >>> Author: imp >>> Date: Mon Jan 31 15:17:47 2011 >>> New Revision: 218130 >>> URL: http://svn.freebsd.org/changeset/base/218130 >>> >>> Log: >>> Move the architecture guessing from Makefile.inc1 to Makefile. We >>> need to do this because variables specified on the command line >>> override those specified in the Makefile. This is why we also moved >>> from TARGET to _TARGET in Makefile, and then set TARGET on the command >>> line when we fork a submake with Makefile.inc1. >>> >>> This makes mips/mips work again, even without the workaround committed to >>> lib/libc/Makefile. >>> >>> Modified: >>> head/Makefile >>> head/Makefile.inc1 >> Hey, >> >> not sure if it's a result of this commit or one of the many others: >> >> env MAKEOBJDIRPREFIX=/path/to/obj make -f Makefile.inc1 hierarchy \ >> -DWITHOUT_TOOLCHAIN \ >> __MAKE_CONF=/path/to/make.conf SRCCONF=/path/to/src.conf \ >> DESTDIR=/path/to/destdir \ >> TARGET=i386 >> >> results in: >> >> "/path/to/base9-201102092305/Makefile.inc1", line 127: Unknown target :i386. >> >> This used to work before. TARGET_ARCH is unset, TARGET=i386 thus >> they differ and thus the check there tries to find "/i386" rather than >> just "i386". >> >> Is it a rather unsupported thing or what's the proper way to fix it? >> As a workaround I was also setting TARGET_ARCH=i386 for the moment. >> >> /bz >> >> -- >> Bjoern A. Zeeb You have to have visions! >> Stop bit received. Insert coin for new address family. >> > >