From owner-freebsd-current@FreeBSD.ORG Wed Aug 29 06:17:22 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2EFA16A418 for ; Wed, 29 Aug 2007 06:17:22 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.freebsd.org (Postfix) with ESMTP id 8894F13C468 for ; Wed, 29 Aug 2007 06:17:20 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id 54C45EB3281; Wed, 29 Aug 2007 14:17:19 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id PE-hhrcarcIM; Wed, 29 Aug 2007 14:17:11 +0800 (CST) Received: from LI-Xins-MacBook.local (sina152-194.staff.sina.com.cn [61.135.152.194]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id 8AE25EB30C0; Wed, 29 Aug 2007 14:17:11 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type; b=skoM851wuVYD4jIqR102kRfpCJ6cTEDQ5mNZF9zsAZoF+N/9GfGV8yndDDm15+85I VCeNJA2M4eurUWadJpT2A== Message-ID: <46D50F5E.6010505@delphij.net> Date: Wed, 29 Aug 2007 14:17:02 +0800 From: LI Xin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: Danny Braniss References: <20070828213044.GB89132@dragon.NUXI.org> In-Reply-To: X-Enigmail-Version: 0.95.3 OpenPGP: url=http://www.delphij.net/delphij.asc Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig48F6C2E304EEEC8358233324" Cc: freebsd-current@freebsd.org, Rong-en Fan Subject: Re: -current cross compile for -stable X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Aug 2007 06:17:22 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig48F6C2E304EEEC8358233324 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Danny Braniss wrote: >> On Tue, Aug 28, 2007 at 12:19:42PM +0300, Danny Braniss wrote: >>>> On 8/28/07, LI Xin wrote: >>>>> Danny Braniss wrote: >>>>>> till now I used a stable box to cross compile for other >>>>>> arch/stable|current. today i decided to try out -current as a >>>>>> base to cross compile. does it work? since i get: >>>>>> >>>>>> export MAKEOBJDIRPREFIX=3D/r+d/obj/cs4 >>>>>> cd /r+d/6.2/src; make TARGET_ARCH=3Damd64 buildworld >>>>>> ... >>>>> This won't work. In order to build -STABLE you have to install a >>>>> chrooted RELENG_6 environment and chroot into it to make it work. >>>> I think there is a hack for ports' tinderbox, patch is at >>>> http://www.marcuscom.com/downloads/binutils.diff >>>> Not sure it appears in ports@ mailing or tinderbox's. >>> well, I can confirm that it works. 1)I'm now testing the result >>> by using the result to make buildworld - goto 1 :-). >>> >>> so, if it works for tinderbox, and for me, can it be 'installed'? >> There's no reason to - if you want to build RELENG_6 on a 7.x box, you= >> should have RELENG_6 chroot to do so. You'll just keep running into >> problems as we don't support builds the way you're trying. >=20 > one of the things that attracted me to FreeBSD was the fact that I coul= d=20 > cross-compile. I always, till now, used a RELENG as a base (solid? :-) = to > build CURRENT, but now, so close to releases, I decided to try the othe= r way, > just before upgrading. >=20 > So now I have some questions: > - Is documented !=3D supported? > - is building on a RELENG for CURRRENT ok? I think there is some misunderstanding. The supported way is to "upgrade", means to compile -CURRENT for instance, from a RELENG base; the reverse, however, is not well "supported". The "official" way to cross compile older sources on a newer world is to create a chroot environment. Cheers, --=20 Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! --------------enig48F6C2E304EEEC8358233324 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG1Q9eOfuToMruuMARCnb5AJoDDcYp2jUkbWp69NIrsr2OxGUgjgCfSvSy Tx9ysfEGfg1Z5Z9LyaXtJ6w= =p1yH -----END PGP SIGNATURE----- --------------enig48F6C2E304EEEC8358233324--