Re: [PATCH v2 0/8] perf build: Support building with Clang

Arnaldo Carvalho de Melo
2025-10-02T17:43:37Z

On Wed, Oct 01, 2025 at 09:20:50PM +0100, Leo Yan wrote:
> On Wed, Oct 01, 2025 at 07:32:56PM +0100, Leo Yan wrote:
>
> [...]
>
> > > + make 'ARCH=' 'CROSS_COMPILE=' 'EXTRA_CFLAGS=' -C tools/perf 'O=/tmp/build/perf' 'CC=clang'
> > > make: Entering directory '/git/perf-6.17.0-rc6/tools/perf'
> > > BUILD: Doing 'make -j28' parallel build
> > > Makefile.config:494: *** No gnu/libc-version.h found, please install glibc-dev[el]. Stop.
>
> It does not set correctly --target as x86_64-alpine-linux-musl if
> distros are using musl libc.
>
> Now running the container build for updated code. Once pass test,
> I will send new series.

Thanks for spotting the problem after taking the trouble of starting a
container! Hopefully that will save time for other people trying to
cross-build perf.

Cheers,

- Arnaldo