Re: [perf] Build error when using LTO on 6.4

From: Bagas Sanjaya
Date: Thu Jul 27 2023 - 01:57:16 EST


On Wed, Jul 26, 2023 at 09:20:33PM -0700, Ian Rogers wrote:
> On Wed, Jul 26, 2023 at 8:55 PM Bagas Sanjaya <bagasdotme@xxxxxxxxx> wrote:
> >
> > Hi,
> >
> > I notice a build regression on Bugzilla [1]. Quoting from it:
> >
> > > Starting with Kernel 6.4, I see a build error when using "-flto" to build perf. This used to work fine with earlier Kernels when using either bfd or mold as linker when using GCC 13.1.1.
>
> Hmm.. strange I've never seen this work with GCC.
>
> > >
> > > This is the PKGBUILD I use as my build recipe: https://github.com/ms178/archpkgbuilds/blob/main/packages/bpf/PKGBUILD
>
> If this binary is for distribution BUILD_BPF_SKEL=1 should be set. We
> need to make this an opt-out rather than opt-in. The last time we did
> this there was some friction:
> https://lore.kernel.org/lkml/CAHk-=wjY_3cBELRSLMpqCt6Eb71Qei2agfKSNsrr5KcpdEQCaA@xxxxxxxxxxxxxx/

The reporter runs Arch Linux. PKGBUILD is a build script to create
packages, though. See the distro doc [1] for details.

[1]: https://wiki.archlinux.org/title/PKGBUILD

--
An old man doll... just what I always wanted! - Clara

Attachment: signature.asc
Description: PGP signature