Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Oct 2004 11:46:02 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        Subhro <subhro.kar@gmail.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Compiling 4-RELEASE on 5-STABLE
Message-ID:  <20041014184602.GB6381@xor.obsecurity.org>
In-Reply-To: <b2807d0404101400011e9774e8@mail.gmail.com>
References:  <20041014000024.T27161@dante.zefram.net> <b2807d0404101321223f96161e@mail.gmail.com> <20041014011057.P22475@dante.zefram.net> <b2807d0404101400011e9774e8@mail.gmail.com>

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

--Bn2rw/3z4jIqBvZU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Thu, Oct 14, 2004 at 12:31:33PM +0530, Subhro wrote:

> >        What about my question about boot strapping? Does that ensure that
> > I could compile the world/kernel of 4.x on 5.3?
> >                John
> No it does not. To be precise as far as I know, there is no way you
> can compile a native 4.X binary of any kind (application, kernel,
> bootstrap, you name it) on a 5.X box.

It's not so hard, you just extract a 4.x system image into a directory
and chroot to it, and build from there.  With more work you could do
it without the chroot.

However, to answer the original question: binaries built by the 5.x
system toolchain cannot be run on 4.x.  The main barrier is that 5.x
binaries usually use syscalls that are not present in the 4.x kernel,
so you'll get signal 12 errors if you try and run them.

Kris
--Bn2rw/3z4jIqBvZU
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFBbslpWry0BWjoQKURAhGvAJ4l+2Zzr9U3t64X4boPU78EG8V2cACeM4ni
byXBQVTyU01mnqfivsZQbnE=
=54Pe
-----END PGP SIGNATURE-----

--Bn2rw/3z4jIqBvZU--



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