From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 26 18:25:31 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 881C216A420 for ; Sun, 26 Feb 2006 18:25:31 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from mail20.syd.optusnet.com.au (mail20.syd.optusnet.com.au [211.29.132.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 658FE43D4C for ; Sun, 26 Feb 2006 18:25:30 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail20.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k1QIOgiT025774 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 27 Feb 2006 05:24:42 +1100 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.4/8.13.4) with ESMTP id k1QIOgYE010648; Mon, 27 Feb 2006 05:24:42 +1100 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.4/8.13.4/Submit) id k1QIOgc0010647; Mon, 27 Feb 2006 05:24:42 +1100 (EST) (envelope-from peter) Date: Mon, 27 Feb 2006 05:24:42 +1100 From: Peter Jeremy To: Yar Tikhiy Message-ID: <20060226182442.GD707@turion.vk2pj.dyndns.org> References: <20060226155009.GB6435@comp.chem.msu.su> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060226155009.GB6435@comp.chem.msu.su> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.11 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 18:25:31 -0000 On Sun, 2006-Feb-26 18:50:09 +0300, Yar Tikhiy wrote: >- tried to install the world over NFS on an old Pentium machine > with some 5.3-BETA; This isn't supported in general. It should work if: - Both the buildhost and install target are running the same OS date - The installed OS on buildhost was built to the lowest common denominator of both hosts (ie CPU_TYPE=pentium or lower in your case) - src and obj have the same absolute pathnames (including symlink expansions in src). The supported approach is to NFS mount the target onto the buildhost and use "make DESTDIR=/target installworld" >Quick investigation showed that the world was built using generic >i386 code, as expected, Good. > but its toolchain was linked against the >builder system libs contaminated by Athlon-specific code. Also, as expected. >I used to be under impression that a world's toolchain should be >fairly independent from the builder system. Not true. The buildworld toolchain is a cross-compilation system designed to run on the existing host OS version whilst building executables that will run on the target OS version. Of necessity, the toolchain compiles and links against the installed include files and libraries on the host system. -- Peter Jeremy