world's toolchain & CPUTYPE

Ruslan Ermilov ru at freebsd.org
Sun Feb 26 11:50:05 PST 2006


On Sun, Feb 26, 2006 at 06:50:09PM +0300, Yar Tikhiy wrote:
> Hi all,
> 
> Yesterday I hit the following problem:
> 
> - was given an Athlon XP machine with a fresh CURRENT built with
>   CPUTYPE=athlon-xp;
> 
> - used it to build a fresh RELENG_6 world with no customizations
>   at all -- __MAKE_CONF=/dev/null;
> 
> - tried to install the world over NFS on an old Pentium machine
>   with some 5.3-BETA;
> 
> - "make installkernel" failed instantly because install(1) died on
>   signal 4, illegal instruction.
> 
> Quick investigation showed that the world was built using generic
> i386 code, as expected, but its toolchain was linked against the
> builder system libs contaminated by Athlon-specific code.  It was
> sufficient to rebuild and reinstall all libs on the builder machine
> with no particular CPUTYPE set and then to rebuild the world's
> toolchain again to make the latter run well on the Pentium.
> 
> I used to be under impression that a world's toolchain should be
> fairly independent from the builder system.  However, this case
> showed that it wasn't quite true.  Is it a known issue, or am I
> missing a key point?  Thanks!
> 
Simple answer: we just don't support installing "from" NFS,
but we do support installing "to" NFS.  Any documentation
that says it's supported is lying.

More details: during the install, part of the toolchain and
some special install tools that were built on the "build"
host are used.  They have been built using that host's
toolchain, CFLAGS, libraries, etc., but libraries is the
most important factor.  That means that the "install" host
should be CPU/syscall/etc. compatible with the "build"
host.  When "build" == "install", all these conditions are
met.  When CPUs match, kernels may be different enough so
there will be missing syscalls.  And so far...


Cheers,
-- 
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20060226/d8dda658/attachment.bin


More information about the freebsd-hackers mailing list