Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jan 2008 06:42:38 +1100
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        Steven Hartland <killing@multiplay.co.uk>
Cc:        freebsd-amd64@freebsd.org
Subject:   Re: Cross build of i386 on 7.0 fails
Message-ID:  <20080125194238.GP53741@server.vk2pj.dyndns.org>
In-Reply-To: <07bb01c85f68$04f85440$b6db87d4@multiplay.co.uk>
References:  <07bb01c85f68$04f85440$b6db87d4@multiplay.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



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