From owner-freebsd-current@freebsd.org Thu May 31 18:19:25 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BDA45F7D6EC for ; Thu, 31 May 2018 18:19:25 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5958D76AF9 for ; Thu, 31 May 2018 18:19:25 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from coleburn.home.andric.com (coleburn.home.andric.com [192.168.0.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 00DF843A4D; Thu, 31 May 2018 20:19:23 +0200 (CEST) From: Dimitry Andric Message-Id: <7464D18D-2879-4C2A-ADD3-BF84D80940BB@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_B5567DE5-22B6-46B3-9C22-D2F4A1A551CC"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: ``make buildkernel'' fails when /usr/obj is empty Date: Thu, 31 May 2018 20:19:20 +0200 In-Reply-To: Cc: Benjamin Kaduk , Gary Jennejohn , FreeBSD Current To: Warner Losh References: <20180531095222.399e7a37@ernst.home> <20180531095850.5845fd7a@ernst.home> <20180531160406.GD27985@kduck.kaduk.org> <32C087A4-1B67-4694-B769-16A347D4804E@FreeBSD.org> X-Mailer: Apple Mail (2.3445.6.18) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.26 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: Thu, 31 May 2018 18:19:25 -0000 --Apple-Mail=_B5567DE5-22B6-46B3-9C22-D2F4A1A551CC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 31 May 2018, at 20:11, Warner Losh wrote: >=20 > On Thu, May 31, 2018 at 11:47 AM, Dimitry Andric = wrote: > On 31 May 2018, at 18:04, Benjamin Kaduk wrote: > > On Thu, May 31, 2018 at 09:58:50AM +0200, Gary Jennejohn wrote: > >> On Thu, 31 May 2018 09:52:22 +0200 > >> Gary Jennejohn wrote: ... > > Whatever happened to the "run buildworld or kernel-toolchain before > > buildkernel" requirement? >=20 > That is still a requirement, yes. Otherwise, you might have outdated > toolchain components are in your /usr/obj. >=20 > Usually you can get away without doing that, and now that clang is the = toolchain that's rebuilt (and that's not fast) people try to get away = with it more and more... Actually clang doesn't get updated *that* often, but there is a minor snag that one of llvm's config files = (lib/clang/include/llvm/Config/config.h) includes , so each time __FreeBSD_version is bumped, quite a lot of dependencies get triggered... The version is only used for two checks: #if __FreeBSD_version >=3D 1000052 /* Define to 1 if you have the `backtrace' function. */ #define HAVE_BACKTRACE TRUE and: /* Define to 1 if you have the `futimens' function. */ #if __FreeBSD_version >=3D 1100056 #define HAVE_FUTIMENS 1 #endif Maybe the first check could be dropped, assuming that backtrace() is always available, but I'm not sure about futimens(). Is there any supported version of FreeBSD left that does *not* have it? -Dimitry --Apple-Mail=_B5567DE5-22B6-46B3-9C22-D2F4A1A551CC Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCWxA8qAAKCRCwXqMKLiCW o+FWAJ9C7rLpduS2kGwWPnviVa90f9MvBgCeKMo8tmVLyOwr65qbNmeovmN9dR8= =Nclm -----END PGP SIGNATURE----- --Apple-Mail=_B5567DE5-22B6-46B3-9C22-D2F4A1A551CC--