ru at FreeBSD.org
Sun Nov 20 20:24:42 GMT 2005
On Sun, Nov 20, 2005 at 10:14:37AM +0100, Eirik ?verby wrote:
> On Nov 20, 2005, at 09:50 , Eirik ?verby wrote:
> >On Nov 19, 2005, at 19:43 , Joseph Koshy wrote:
> >>>AFAICT cross-compiling amd64 on a i386 machine isn't supported
> >>>yet. I ran into a similar problem when I upgraded an i386
> >>>machine to amd64. I thought I could just set CPUTYPE=athlon-64
> >>>and buildworld would do the right thing. Apparently not.
> >>Bootstrapping a single machine is supported:
> >># make buildworld TARGET_ARCH=new-arch
> >>plus a few other steps. (See build(7)).
> >>There have been a couple of postings on the mailing lists
> >>on this topic in the recent past. I've taken a stab at
> >>describing how to cross-bootstrap too:
> >>The OP wanted to do a 'buildworld TARGET_ARCH=foo' on one
> >>machine and then an 'installworld' on a different set of
> >Yes, and he still wonders if this is supposed to be doable or not.
> >I think the culprit is (partly) the fact that every architecture is
> >built into its own subdirectory in /usr/obj, EXCEPT the
> >architecture the build is running on. The same goes for the install
> >part, and if the build and install architectures differ, it cannot
> >ever work. Setting MAKEOBJDIRPREFIX on the target host makes the
> >install start, but it fails after a couple of minutes with the "dd:
> >not found" error.
> >(I do notice that there is a /usr/obj/usr directory created also
> >when cross-building; I'm assuming this contains the build bootstrap
> Follow-up. If I enter src/sys and do a "make install", the dd step
> works perfectly - however it stops later when trying to install
> cdboot. I am assuming this is due to missing options or wrong target
> for make, but - from all I can tell - shows a weakness in the build/
> install system. Or maybe not...
We don't support build host != install host, in a strict sense.
But as Joseph pointed out, we do support NFS installs to different
architectures. The build host != install host is supported only
if a number of conditions are met, most noticeable are that they
should be running the same OS version and the same (or compatible)
CPU, and of course the same set of options (/etc/make.conf, etc.)
ru at FreeBSD.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20051120/3cb3f5c1/attachment.bin
More information about the freebsd-stable