Re: [BUG] perf tools: Build failure in v6.16-rc1

From: Sebastian Andrzej Siewior
Date: Thu Jun 12 2025 - 02:25:26 EST


On 2025-06-11 16:01:00 [-0300], Arnaldo Carvalho de Melo wrote:
> > Is this needed? Aren't these defines coming from that local copy?
>
> So, these are, as you say, in the copied linux/prctl.h, but in musl libc
> we have:
right, I briefly forgot about musl.
All good.

> I thought this would be something fixed in newer alpine versions, but
> no:
>
> toolsbuilder@five:~$ grep FAIL dm.log.old/summary
> 5 19.53 alpine:3.16 : FAIL gcc version 11.2.1 20220219 (Alpine 11.2.1_git20220219)
> 6 20.83 alpine:3.17 : FAIL gcc version 12.2.1 20220924 (Alpine 12.2.1_git20220924-r4)
> 7 13.94 alpine:3.18 : FAIL gcc version 12.2.1 20220924 (Alpine 12.2.1_git20220924-r10)
> 8 16.60 alpine:3.19 : FAIL gcc version 13.2.1 20231014 (Alpine 13.2.1_git20231014)
> 9 15.72 alpine:3.20 : FAIL gcc version 13.2.1 20240309 (Alpine 13.2.1_git20240309)
> 10 16.38 alpine:3.22 : FAIL gcc version 14.2.0 (Alpine 14.2.0)
> 11 15.09 alpine:edge : FAIL gcc version 14.2.0 (Alpine 14.2.0)
> toolsbuilder@five:~$
>
> So the easiest way out of this seems to be not to explicitely include
> linux/prctl.h and define the new stuff conditionally, as I did, right?

Let me drop an email to alpine and check with them.

> - Arnaldo

Sebastian