Bug 219973

Summary: cross compile fails with GCC_PLUGIN_LATENT_ENTROPY
Product: Linux Reporter: Tadhg McDonald-Jensen (tadhgmister)
Component: KernelAssignee: Virtual assignee for kernel bugs (linux-kernel)
Status: NEW ---    
Severity: normal    
Priority: P3    
Hardware: All   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:

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.