From: Peter Korsgaard Date: Tue, 26 Feb 2019 13:12:45 +0100 Subject: [Buildroot] [PATCH 1/1] package/linuxptp: fix build with new headers In-Reply-To: (Romain Naour's message of "Mon, 25 Feb 2019 23:40:12 +0100") References: <20190224204931.2759-1-panfilov.artyom@gmail.com> <20190225055853.rq2w5qnl4jxacj53@sapphire.tkos.co.il> Message-ID: <87sgwad9z6.fsf@dell.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Romain" == Romain Naour writes: > Hi Baruch, Artem, All, > Le 25/02/2019 ? 06:58, Baruch Siach a ?crit?: >> Hi Artem, >> >> On Sun, Feb 24, 2019 at 11:49:31PM +0300, Artem Panfilov wrote: >>> net_tstamp.h in recent kernel versions requires time.h for clockid_t. >> >> This is a kernel bug. Kernel UAPI headers must not use the userspace clockid_t >> type. This bug has been fixed in kernel commit e2c4cf7f98a5 ("net: Use >> __kernel_clockid_t in uapi net_stamp.h") just before the v4.20 release. It >> looks like this Linaro toolchain took the headers of a kernel -rc release. >> >> Maybe update the Linaro toolchain to 2019.02 in master? >> Romain? > Actually it's not a Linaro toolchain anymore, it's an ARM toolchain. > Indeed, these toolchains use a 4.20 -rc kernel release. > I noticed it while updating to the 2018.11 release that was released one month > before the official kernel 4.20 release (respectively 23 Nov 2018 and 23 Dec > 2018). I had to wait for BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20 symbol in Buildroot. > The latest ARM toolchain 2019.01 release use 5.0-rc1 kernel release. > We can't include this version into Buildroot since the kernel 5.0 is not > released yet. > Maybe we should report this issue to https://bugs.linaro.org ? Yes, it would be nice if they could use released kernels for the headers. -- Bye, Peter Korsgaard