Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 May 2018 20:19:20 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Warner Losh <imp@bsdimp.com>
Cc:        Benjamin Kaduk <kaduk@mit.edu>, Gary Jennejohn <gljennjohn@gmail.com>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: ``make buildkernel'' fails when /usr/obj is empty
Message-ID:  <7464D18D-2879-4C2A-ADD3-BF84D80940BB@FreeBSD.org>
In-Reply-To: <CANCZdfozqmA%2BQz77Yu4KDwD0NRH4AJ24XAhE6FuHz_4Ubf60Gg@mail.gmail.com>
References:  <20180531095222.399e7a37@ernst.home> <20180531095850.5845fd7a@ernst.home> <20180531160406.GD27985@kduck.kaduk.org> <32C087A4-1B67-4694-B769-16A347D4804E@FreeBSD.org> <CANCZdfozqmA%2BQz77Yu4KDwD0NRH4AJ24XAhE6FuHz_4Ubf60Gg@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On 31 May 2018, at 20:11, Warner Losh <imp@bsdimp.com> wrote:
> 
> On Thu, May 31, 2018 at 11:47 AM, Dimitry Andric <dim@freebsd.org> wrote:
> On 31 May 2018, at 18:04, Benjamin Kaduk <kaduk@MIT.EDU> 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 <gljennjohn@gmail.com> 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 <osreldate.h>, 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?

-Dimitry


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.2

iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCWxA8qAAKCRCwXqMKLiCW
o+FWAJ9C7rLpduS2kGwWPnviVa90f9MvBgCeKMo8tmVLyOwr65qbNmeovmN9dR8=
=Nclm
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7464D18D-2879-4C2A-ADD3-BF84D80940BB>