From owner-freebsd-amd64@FreeBSD.ORG Sat Jan 26 08:09:33 2008 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C677516A417 for ; Sat, 26 Jan 2008 08:09:33 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from fallbackmx09.syd.optusnet.com.au (fallbackmx09.syd.optusnet.com.au [211.29.132.242]) by mx1.freebsd.org (Postfix) with ESMTP id 06AC813C447 for ; Sat, 26 Jan 2008 08:09:32 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail03.syd.optusnet.com.au (mail03.syd.optusnet.com.au [211.29.132.184]) by fallbackmx09.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m0PJggRU004191 for ; Sat, 26 Jan 2008 06:42:42 +1100 Received: from server.vk2pj.dyndns.org (c220-239-20-82.belrs4.nsw.optusnet.com.au [220.239.20.82]) by mail03.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m0PJgdJv005546 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 26 Jan 2008 06:42:40 +1100 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.2/8.14.1) with ESMTP id m0PJgdpL052986; Sat, 26 Jan 2008 06:42:39 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.2/8.14.2/Submit) id m0PJgcq3052985; Sat, 26 Jan 2008 06:42:38 +1100 (EST) (envelope-from peter) Date: Sat, 26 Jan 2008 06:42:38 +1100 From: Peter Jeremy To: Steven Hartland Message-ID: <20080125194238.GP53741@server.vk2pj.dyndns.org> References: <07bb01c85f68$04f85440$b6db87d4@multiplay.co.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline In-Reply-To: <07bb01c85f68$04f85440$b6db87d4@multiplay.co.uk> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-amd64@freebsd.org Subject: Re: Cross build of i386 on 7.0 fails X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2008 08:09:33 -0000 --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 25, 2008 at 03:36:14PM -0000, Steven Hartland wrote: >> make buildkernel TARGET=3Di386 >.... >>>> stage 3.1: making dependencies >... >/usr/src/sys/i386/i386/genassym.c:1: error: -mpreferred-stack-boundary=3D2= is not between 4 and 12 > >What I think is happening is that something is still working as though >I want amd64 bins and hence the error. I can reproduce the error and it looks like it's not invoking an i386 cc - possibly because you haven't previously cross-built world. AFAIK, the only way to build an i386 kernel on amd64 is by cross-building world as well: make TARGET_ARCH=3Di386 buildworld make TARGET_ARCH=3Di386 buildkernel >On an related topic upgrading i386 boxes to amd64 and vice versa from >source is this possible, The former is definitely possible and the latter may be. See (eg) http://lists.freebsd.org/pipermail/cvs-src/2007-November/083395.html > if so how. I tried installing a new amd64 >( 7.0 ) kernel on my test i386 ( 6.2 ) machine but boot failed with: >init died ( signal 0, exit 1 ) You need to rename /libexec/ld-elf.so.1 partway through the install. --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --SUOF0GtieIMvvwua Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHmjuu/opHv/APuIcRAqO8AKCDUqQLmbj4w9y3FXvaM69FV3GeyQCeJLqg LcQQvYKpcRa4xaUupsiZjJ4= =1bn3 -----END PGP SIGNATURE----- --SUOF0GtieIMvvwua--