Cross compiling FreeBSD

Peter Jeremy peterjeremy at optushome.com.au
Wed Jan 14 13:16:29 PST 2009


[Please wrap your lines before 80 columns]

On 2009-Jan-14 15:06:06 +0000, Andrew Hotlab <andrew.hotlab at hotmail.com> wrote:
>At this time, I've tried to build RELENG_7_1 for the i386
>architecture using an amd64 machine (running RELENG_7_0 for amd64)
>then, exporting /usr/src and /usr/obj via NFS in read-only mode to
>target machines,

This won't work because install{world,kernel} uses programs (under
/usr/obj) that were built to run on the build system (amd64 in
your case) and so won't run on the target (i386) system.

The supported approach is to NFS mount the target machines onto the
build machine and run "make DESTDIR=/mount/point install{world,kernel}"
on the build machine.  Note that this will report errors since NFS
cannot handle UFS flags - you will need to manually remove/add schg flags.

-- 
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-amd64/attachments/20090114/30d8b4d8/attachment.pgp


More information about the freebsd-amd64 mailing list