From owner-freebsd-current@FreeBSD.ORG Wed Mar 24 07:00:36 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B4BF16A4CE for ; Wed, 24 Mar 2004 07:00:36 -0800 (PST) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id E820443D46 for ; Wed, 24 Mar 2004 07:00:34 -0800 (PST) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.10/8.12.9) with ESMTP id i2OF3e8b058191 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 24 Mar 2004 17:03:41 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.12.11/8.12.11) id i2OF0UEq043483; Wed, 24 Mar 2004 17:00:30 +0200 (EET) (envelope-from ru) Date: Wed, 24 Mar 2004 17:00:30 +0200 From: Ruslan Ermilov To: Kris Kennaway Message-ID: <20040324150030.GC42844@ip.net.ua> References: <20040324012315.GA40315@xor.obsecurity.org> <20040324065815.GA40963@ip.net.ua> <20040324070256.GA44741@xor.obsecurity.org> <20040324082045.GA41172@ip.net.ua> <20040324093101.GA44928@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TYecfFk8j8mZq+dy" Content-Disposition: inline In-Reply-To: <20040324093101.GA44928@xor.obsecurity.org> User-Agent: Mutt/1.5.6i X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: current@FreeBSD.org Subject: Re: [FAQ] Prerequisites for a successful buildworld/buildkernel X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2004 15:00:36 -0000 --TYecfFk8j8mZq+dy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 24, 2004 at 01:31:01AM -0800, Kris Kennaway wrote: > On Wed, Mar 24, 2004 at 10:20:45AM +0200, Ruslan Ermilov wrote: >=20 > > > > Yes, src/sys/ is self-sufficient, except for some tools used during > > > > buildkernel, aicasm is one of them. > > >=20 > > > ...which was the content of my question. So, upgrades (buildworld > > > then buildkernel) apparently don't work if you don't have /usr/include > > > installed to begin with. > > >=20 > > Of course not. For a successful buildworld (and buildkernel), > > it is required to have a complete and non-broken build system, > > as we still build lot of tools using the host toolchain. >=20 > > - build-tools. These are special small helper applications > > that are built and used only during buildworld/buildkernel. > > For example, "mkinit" for bin/sh and "aicasm" for the > > Adaptec SCSI drivers. >=20 > By the time we get to building the kernel, we have already built world > successfully, and a complete up-to-date toolchain is available (but > not yet installed in the default location on the host). The failure > case I reported to you occurs at this point; missing db.h will allow > the world to build, but kernel builds to fail. >=20 > In other words there's no need for kernel build tools to fail, because > everything they require is available from the output of 'make > buildworld'. Whether or not it is difficult to use these in the > current FreeBSD build implementation is another matter, but your > general "of course not" is missing my specific point. >=20 No, we cannot use "up-to-date" (target) toolchain to build "aicasm", because using this toolchain will produce binaries that may be incompatible with the running kernel -- it will link them with fresh libraries (which the currently running kernel don't necessarily will survive) and headers. Furthemore, it may be for a different hardware architecture, and we need to _run_ "aicasm" to build the kernel, hence it should be built using host toolchain (including libraries and headers). Re-read carefully what I've said before. Cheers, --=20 Ruslan Ermilov FreeBSD committer ru@FreeBSD.org --TYecfFk8j8mZq+dy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAYaKOUkv4P6juNwoRAnhDAJ42MBKp2tY2pxtLmaeG8CtMnCyk3wCfVK+A uV6+XrMEDZCEitcddt1kKFo= =Jr3t -----END PGP SIGNATURE----- --TYecfFk8j8mZq+dy--