Re: [PATCH 4/4] kbuild: cross-compile linux-headers package when possible
From: Masahiro Yamada
Date: Wed Jul 31 2024 - 22:52:11 EST
On Tue, Jul 30, 2024 at 10:03 AM Kees Cook <kees@xxxxxxxxxx> wrote:
>
> On Sat, Jul 27, 2024 at 04:42:04PM +0900, Masahiro Yamada wrote:
> > There are known limitations:
> >
> > - GCC plugins
> >
> > It would possible to rebuild GCC plugins for the target architecture
> > by passing HOSTCXX=${CROSS_COMPILE}g++ with necessary packages
> > installed, but gcc on the installed system emits
> > "cc1: error: incompatible gcc/plugin versions". I did not find a
> > solution for this because 'gcc' on a foreign architecture is a
> > different compiler after all.
>
> Do you mean having a plugins as part of a distro package? Does anyone do
> this?
I think the use of GCC plugins is not so common in distributions,
presumably due to its strong limitation.
In my quick research,
Debian, Ubuntu, Fedora disable CONFIG_GCC_PLUGINS.
Arch Linux enables CONFIG_GCC_PLUGINS.
> --
> Kees Cook
>
--
Best Regards
Masahiro Yamada