Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Feb 2011 00:21:05 +0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Warner Losh <imp@freebsd.org>
Subject:   Re: svn commit: r218130 - head
Message-ID:  <AANLkTikcAHRkV=_mu2dZsAa0QwPA2P8VYTw6z3tqjdF7@mail.gmail.com>
In-Reply-To: <20110210134108.D80258@maildrop.int.zabbadoz.net>
References:  <201101311517.p0VFHl9F028038@svn.freebsd.org> <20110210134108.D80258@maildrop.int.zabbadoz.net>

next in thread | previous in thread | raw e-mail | index | archive | help
So when I run this:

adrian@ref8-amd64:/scratch/tmp/adrian/head/src$ env
BUILD_FLAGS=3D"NOCLEAN=3D1 NO_CLEAN=3D1" ../../build/build-scripts/bin/buil=
d
rspro buildworld
MAKEOBJDIRPREFIX: /scratch/tmp/adrian/head/src/../obj/mipseb/
env=3DMAKEOBJDIRPREFIX=3D/scratch/tmp/adrian/head/src/../obj/mipseb/ make
NOCLEAN=3D1 NO_CLEAN=3D1 TARGET=3Dmips TARGET_ARCH=3Dmipseb
TARGET_CPUTYPE=3Dmips32 KERNCONF=3DRSPRO_STANDALONE
DESTDIR=3D/scratch/tmp/adrian/head/src/../root/mipseb
LOCAL_DIRS=3Dtools/tools/ath buildworld


I get this:
=3D=3D=3D> 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
=3D=3D=3D> 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
<bzeeb-lists@lists.zabbadoz.net> 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:
>> =A0Move the architecture guessing from Makefile.inc1 to Makefile. =A0We
>> =A0need to do this because variables specified on the command line
>> =A0override those specified in the Makefile. =A0This is why we also move=
d
>> =A0from TARGET to _TARGET in Makefile, and then set TARGET on the comman=
d
>> =A0line when we fork a submake with Makefile.inc1.
>>
>> =A0This makes mips/mips work again, even without the workaround committe=
d to
>> =A0lib/libc/Makefile.
>>
>> Modified:
>> =A0head/Makefile
>> =A0head/Makefile.inc1
>
> Hey,
>
> not sure if it's a result of this commit or one of the many others:
>
> env MAKEOBJDIRPREFIX=3D/path/to/obj make -f Makefile.inc1 hierarchy \
> =A0 =A0 =A0 =A0-DWITHOUT_TOOLCHAIN \
> =A0 =A0 =A0 =A0__MAKE_CONF=3D/path/to/make.conf SRCCONF=3D/path/to/src.co=
nf \
> =A0 =A0 =A0 =A0DESTDIR=3D/path/to/destdir \
> =A0 =A0 =A0 =A0TARGET=3Di386
>
> results in:
>
> "/path/to/base9-201102092305/Makefile.inc1", line 127: Unknown target :i3=
86.
>
> This used to work before. TARGET_ARCH is unset, TARGET=3Di386 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=3Di386 for the moment.
>
> /bz
>
> --
> Bjoern A. Zeeb =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 You have to have visions!
> =A0 =A0 =A0 =A0 Stop bit received. Insert coin for new address family.
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikcAHRkV=_mu2dZsAa0QwPA2P8VYTw6z3tqjdF7>