public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* cross compile fails with GCC_PLUGIN_LATENT_ENTROPY
@ 2025-04-01 21:34 Tadhg McDonald-Jensen
  2025-04-04 17:32 ` Kees Cook
  0 siblings, 1 reply; 3+ messages in thread
From: Tadhg McDonald-Jensen @ 2025-04-01 21:34 UTC (permalink / raw)
  To: kees, linux-hardening, linux-kernel


[-- Attachment #1.1.1: Type: text/plain, Size: 796 bytes --]

Hello,

When cross compiling the linux kernel with
`CONFIG_GCC_PLUGIN_LATENT_ENTROPY=y` it tries to compile the plugin for
the target platform instead of for the host machine causing the
compilation to fail.

I've opened a bug on bugzilla:
https://bugzilla.kernel.org/show_bug.cgi?id=219973

Specifically I am using GNU guix and trying to compile with `ARCH=arm`
and `CROSS_COMPILE=arm-linux-gnueabihf`, in guix the include paths are
setup in a non typical way so if that is relevant to this error I am
happy to provide more detail, but hopefully just the output of make
showing `CC scripts/gcc-plugins/latent_entropy_plugin.o` instead of
`HOSTCC` like many other files in the scripts folder is sufficient to
reproduce and solve this issue.

Kind Regards,
Tadhg McDonald-Jensen

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 677 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-04-09 21:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-01 21:34 cross compile fails with GCC_PLUGIN_LATENT_ENTROPY Tadhg McDonald-Jensen
2025-04-04 17:32 ` Kees Cook
2025-04-09 21:20   ` Tadhg McDonald-Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox