Bug 219973 - cross compile fails with GCC_PLUGIN_LATENT_ENTROPY
Summary: cross compile fails with GCC_PLUGIN_LATENT_ENTROPY
Status: NEW
Alias: None
Product: Linux
Classification: Unclassified
Component: Kernel (show other bugs)
Hardware: All Linux
: P3 normal
Assignee: Virtual assignee for kernel bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-01 20:50 UTC by Tadhg McDonald-Jensen
Modified: 2025-04-01 20:50 UTC (History)
0 users

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Tadhg McDonald-Jensen 2025-04-01 20:50:05 UTC
when `CONFIG_GCC_PLUGIN_LATENT_ENTROPY=y` is set `scripts/gcc-plugins/latent_entropy_plugin.o` gets compiled for the target system instead of for the host causing the compilation to fail.

The relevent error is reproduced with the following when a suitable cross compiler is present on the system:

`make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- scripts/gcc-plugins/latent_entropy_plugin.o`

Doing a full build with the flag enabled in `.config` would be necessary to test the plugin is used properly once it is compiled.

Note You need to log in before you can comment on or make changes to this bug.