From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 20 07:59:55 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 921DAD72 for ; Mon, 20 Jan 2014 07:59:55 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4BD6F1CD4 for ; Mon, 20 Jan 2014 07:59:55 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::15d7:a1c2:121d:286b] (unknown [IPv6:2001:7b8:3a7:0:15d7:a1c2:121d:286b]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 5CD125C44; Mon, 20 Jan 2014 08:59:53 +0100 (CET) Subject: Re: Kernel build when going from WITHOUT_CTF world to WITH_CTF world. Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Content-Type: multipart/signed; boundary="Apple-Mail=_B9ACBD02-73B0-4E7D-BA45-D66FE49A8AE1"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.1 (6062eb4) From: Dimitry Andric In-Reply-To: <08780E49-8FFA-4A8A-A9DD-B60C8CC735D7@icloud.com> Date: Mon, 20 Jan 2014 08:59:53 +0100 Message-Id: <32F7628E-D8BF-4534-B74E-38C589125D8F@FreeBSD.org> References: <08780E49-8FFA-4A8A-A9DD-B60C8CC735D7@icloud.com> To: Kimmo Paasiala X-Mailer: Apple Mail (2.1827) Cc: freebsd-hackers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jan 2014 07:59:55 -0000 --Apple-Mail=_B9ACBD02-73B0-4E7D-BA45-D66FE49A8AE1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On 20 Jan 2014, at 07:23, Kimmo Paasiala wrote: >=20 > I=92d like to try to fix an annoyance in the kernel build. If you have = a world built with WITHOUT_CTF (in my case I had WITHOUT_CDDL that = includes WITHOUT_CTF) that does not have a ctfmerge binary (and other = related ones) installed the next buildkernel will fail if you have built = the world before the kernel build with WITH_CTF set. Of course you can = manually go and install the ctfmerge and related binaries before = launching the buildkernel process but that is just too hacky for me. = Where should I look and what would be needed to change in the kernel = build so that it would check for the ctfmerge binaries from the = buildworld that was done before the buildkernel? This is unfortunately a long-standing problem. To fix it, the CTF tools and libraries should be conditionally added to the kernel-tools stage. As of r260401 (by scottl), this stage is rather empty: aicasm was really the only tool built specifically for the kernel. So you would have to look at Makefile.inc1 before that revision to have an idea of how to add the CTF tools. -Dimitry --Apple-Mail=_B9ACBD02-73B0-4E7D-BA45-D66FE49A8AE1 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iEYEARECAAYFAlLc13kACgkQsF6jCi4glqPABwCdGbCuTRT1LiXYIa/C4TElt1yZ RU8AoLP6Mti0caLI5Gc263luwD2z1GMh =fGmz -----END PGP SIGNATURE----- --Apple-Mail=_B9ACBD02-73B0-4E7D-BA45-D66FE49A8AE1--