From: Tadhg McDonald-Jensen <tadhgmister@gmail.com>
To: kees@kernel.org, linux-hardening@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: cross compile fails with GCC_PLUGIN_LATENT_ENTROPY
Date: Tue, 1 Apr 2025 17:34:05 -0400 [thread overview]
Message-ID: <d8375c5b-03d6-4c24-83c1-483f0093c48d@gmail.com> (raw)
[-- 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 --]
next reply other threads:[~2025-04-01 21:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-01 21:34 Tadhg McDonald-Jensen [this message]
2025-04-04 17:32 ` cross compile fails with GCC_PLUGIN_LATENT_ENTROPY Kees Cook
2025-04-09 21:20 ` Tadhg McDonald-Jensen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d8375c5b-03d6-4c24-83c1-483f0093c48d@gmail.com \
--to=tadhgmister@gmail.com \
--cc=kees@kernel.org \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox