From owner-freebsd-current@freebsd.org Sun Jun 3 10:31:13 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 C0199FE21DF for ; Sun, 3 Jun 2018 10:31:13 +0000 (UTC) (envelope-from matt.xtaz@gmail.com) Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F07667D868; Sun, 3 Jun 2018 10:31:12 +0000 (UTC) (envelope-from matt.xtaz@gmail.com) Received: by mail-wr0-x243.google.com with SMTP id v13-v6so28538400wrp.13; Sun, 03 Jun 2018 03:31:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=jQQz/jLi1ln+kNwDG8WClmkpTwjWHfA4tdhr66/LYsg=; b=dOxenCdgkJAShCr01VWvHws1Ordq4YqkwX6eZF24hL21+gd8hC5lR+3hhcfaGj9WFe EVPYk3A5GhLyJPUFOu+HfjNrma6XyvT5GrPmogyDbuqZnhbkDR3EpwQgCzzpkiRyRR/G HMNBfwsiGMnWfhtXJ0HzXDD97vl6VPd/cA9hd92YOEwcxjJthc/Jni07RO4v0L7pVKbf aRskEABKwcaEiKpMJlt6c4pL6QpXjx6dRKlhdZjkE52wUmzeL6F0gsabofxXp4TIVZTu 0Hx6hzyoGiVgDQ9iAyExgn9qoqGA+ivsJS6VFYtjfmTarbWq+QidYvK6/Dzohi6S/j1/ FbJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=jQQz/jLi1ln+kNwDG8WClmkpTwjWHfA4tdhr66/LYsg=; b=g77ehIBvjVUEWM7R1IpCwrYTdSryIVDYdYB7Uc4/7amOdMq5hOKfJlcomC2rw2Jjk4 N24qn8UiK00nHKdaWVOvYiz0t6XtWOE/cVKIKaS9l05YiQesLgc1pPX599O28wCvUlxc 5TBAt/Hd5psCfFnWXnm51rgrScvdLCCgZIX0HkUa7nh3ezWPWKySDNnKcky4Nd6Y6Umx emH/TcySUf7F6+j3RBP0KYJsq2n+SwsQJ6QWSPoRV+28MEZpFeHvfm5IeqPHSud39KMV vTzIhT9LJN5o8NWJXN+mrH6hR+V2DHpIzm5mDiQmF3vvEmdv+PyeII9oulBiUkSr15/S YOQQ== X-Gm-Message-State: ALKqPwfYcJYuwDVZ5a1dW4IXhnVHc1NEkVxWi8i71YD80cMvM/Ht2tLd oQUeszadjPxzwMPiSYwL0qXFoZiW X-Google-Smtp-Source: ADUXVKJsAhDjzhplMfz5aYx59iOHXtK+nAX6oOaEIljGK9oIZ+N8azRZUxDGBKDHYs1/uklYkBDZSg== X-Received: by 2002:adf:ad8a:: with SMTP id w10-v6mr14358673wrc.83.1528021872024; Sun, 03 Jun 2018 03:31:12 -0700 (PDT) Received: from gmail.com (tao.xtaz.uk. [2a02:390:7e52::10]) by smtp.gmail.com with ESMTPSA id q13-v6sm5417448wmc.29.2018.06.03.03.31.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 03 Jun 2018 03:31:11 -0700 (PDT) Date: Sun, 3 Jun 2018 11:31:09 +0100 From: Matt Smith To: Konstantin Belousov Cc: Dimitry Andric , Warner Losh , Benjamin Kaduk , Gary Jennejohn , FreeBSD Current Subject: Re: ``make buildkernel'' fails when /usr/obj is empty Message-ID: <20180603103108.GA17738@gmail.com> Mail-Followup-To: Matt Smith , Konstantin Belousov , Dimitry Andric , Warner Losh , Benjamin Kaduk , Gary Jennejohn , FreeBSD Current References: <20180531095222.399e7a37@ernst.home> <20180531095850.5845fd7a@ernst.home> <20180531160406.GD27985@kduck.kaduk.org> <32C087A4-1B67-4694-B769-16A347D4804E@FreeBSD.org> <7464D18D-2879-4C2A-ADD3-BF84D80940BB@FreeBSD.org> <20180531195003.GZ3789@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20180531195003.GZ3789@kib.kiev.ua> User-Agent: Mutt/1.10.0 (2018-05-17) 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: Sun, 03 Jun 2018 10:31:14 -0000 On May 31 22:50, Konstantin Belousov wrote: >On Thu, May 31, 2018 at 08:19:20PM +0200, Dimitry Andric wrote: >> On 31 May 2018, at 20:11, Warner Losh wrote: >> > >> > 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? >> > >> > That is still a requirement, yes. Otherwise, you might have outdated >> > toolchain components are in your /usr/obj. >> > >> > 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 >= 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 >= 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? >Or you can manually define the symbols as needed on each branch, >eliminating the need for osreldate.h and reusable if some other >configuration variable needs to be conditionally set. Are these the kind of things that could get done in current and stable? Currently llvm/clang is rebuilt on pretty much every buildworld cycle that I do because of this which makes using things like WITH_META_MODE pretty pointless. It would be great to get this kind of change in the trees. -- Matt