Hi, I'm about to upgrade a (slow) Pentium based FreeBSD computer from 4.8 to 4.10. I would like to use my (fast) Athlon PC as a buildworld/buildkernel host and then mount /usr/src and /usr/obj on the slow computer. The Athlon PC runs a 4.10 world, built with pentiumpro optimizations. If I buildworld with pentium optimizations, does that newly built world rely on any pentiumpro optimized libraries of the Athlon PC base? That would surely hose the Pentium PC! I recall that there were some libc dependencies in the past... Regards, Sven
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, 4 Jun 2004 17:45, Sven Hazejager wrote:> I'm about to upgrade a (slow) Pentium based FreeBSD computer from 4.8 to > 4.10. I would like to use my (fast) Athlon PC as a buildworld/buildkernel > host and then mount /usr/src and /usr/obj on the slow computer. > > The Athlon PC runs a 4.10 world, built with pentiumpro optimizations. If I > buildworld with pentium optimizations, does that newly built world rely on > any pentiumpro optimized libraries of the Athlon PC base? That would > surely hose the Pentium PC!I don't think that the build system will add compiler flags for this sort of thing in 4.x, so I believe what you want to do is safe. If you are doing buildworld for the Pentium then remove any arch/cpu specific optimisations and you should be right. - -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAwESw5ZPcIHs/zowRAgKMAJ9kiiYoY+IyAIhdxO9Ji8/Z/r0IgwCfWpCW eFGnGrq3pEegJ0vn7GJmaDU=EA2X -----END PGP SIGNATURE-----
On Jun 4, 2004, at 4:15 AM, Sven Hazejager wrote:> The Athlon PC runs a 4.10 world, built with pentiumpro optimizations. > If I > buildworld with pentium optimizations, does that newly built world > rely on > any pentiumpro optimized libraries of the Athlon PC base? That would > surely hose the Pentium PC! >There was a bug a long time ago (probably around 4.1 or 4.2) that would "leak" some host system binaries into the buildworld targets. I don't know if this has been corrected. I had issues with building the world for a AMD k5 cpu on a host that had a world optimized for pentiumpro. When it got around to doing the installworld, some of the utilities it used from the build tree had the PPRO code that crashed as unknown instructions on the k5 from some local library that was linked statically rather than the buildworld target lib being used. Theoretically this should not happen, but it did. I now avoid building architecture-specific worlds just to avoid this situation. It doesn't seem to enhance any performance.