From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 26 19:50:05 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D9B916A420 for ; Sun, 26 Feb 2006 19:50:05 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7641943D4C for ; Sun, 26 Feb 2006 19:50:03 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id k1QJnaqw080156; Sun, 26 Feb 2006 21:49:36 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ip.net.ua [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 77068-01-3; Sun, 26 Feb 2006 21:49:10 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id k1QIvBCD078485 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 26 Feb 2006 20:57:12 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.4/8.13.4) id k1QIvL68046610; Sun, 26 Feb 2006 20:57:21 +0200 (EET) (envelope-from ru) Date: Sun, 26 Feb 2006 20:57:21 +0200 From: Ruslan Ermilov To: Yar Tikhiy Message-ID: <20060226185721.GF42677@ip.net.ua> References: <20060226155009.GB6435@comp.chem.msu.su> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Sw7tCqrGA+HQ0/zt" Content-Disposition: inline In-Reply-To: <20060226155009.GB6435@comp.chem.msu.su> User-Agent: Mutt/1.5.11 X-Virus-Scanned: amavisd-new at ip.net.ua Cc: hackers@freebsd.org Subject: Re: world's toolchain & CPUTYPE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Feb 2006 19:50:05 -0000 --Sw7tCqrGA+HQ0/zt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 26, 2006 at 06:50:09PM +0300, Yar Tikhiy wrote: > Hi all, >=20 > Yesterday I hit the following problem: >=20 > - was given an Athlon XP machine with a fresh CURRENT built with > CPUTYPE=3Dathlon-xp; >=20 > - used it to build a fresh RELENG_6 world with no customizations > at all -- __MAKE_CONF=3D/dev/null; >=20 > - tried to install the world over NFS on an old Pentium machine > with some 5.3-BETA; >=20 > - "make installkernel" failed instantly because install(1) died on > signal 4, illegal instruction. >=20 > 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. >=20 > 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! >=20 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" =3D=3D "install", all these conditions are met. When CPUs match, kernels may be different enough so there will be missing syscalls. And so far... Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --Sw7tCqrGA+HQ0/zt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFEAfoRqRfpzJluFF4RAjqFAJ9JIcqPmWyB27/BhcJoqqe0m6KLmwCfRi+R xPH+DEQNcblcxiDZDXIVxFA= =rxqO -----END PGP SIGNATURE----- --Sw7tCqrGA+HQ0/zt--