All of lore.kernel.org
 help / color / mirror / Atom feed
* mips gcc plugin issues
@ 2024-06-18 23:41 Jeff Johnson
  2024-06-19 20:50 ` Kees Cook
  0 siblings, 1 reply; 5+ messages in thread
From: Jeff Johnson @ 2024-06-18 23:41 UTC (permalink / raw)
  To: Kees Cook; +Cc: linux-hardening, open list

I'm trying to do an allmodconfig build for ARCH=mips using:
https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/13.2.0/x86_64-gcc-13.2.0-nolibc-mips-linux.tar.gz

This build dies quickly with:
  CC      scripts/mod/empty.o
cc1: error: cannot load plugin ./scripts/gcc-plugins/randomize_layout_plugin.so: ./scripts/gcc-plugins/randomize_layout_plugin.so: undefined symbol: _ZNK6frange6acceptERK14vrange_visitor
cc1: error: cannot load plugin ./scripts/gcc-plugins/latent_entropy_plugin.so: ./scripts/gcc-plugins/latent_entropy_plugin.so: undefined symbol: _ZNK6frange6acceptERK14vrange_visitor
  CC      scripts/mod/devicetable-offsets.s
make[2]: *** [scripts/Makefile.build:244: scripts/mod/empty.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: error: cannot load plugin ./scripts/gcc-plugins/randomize_layout_plugin.so: ./scripts/gcc-plugins/randomize_layout_plugin.so: undefined symbol: _ZNK6frange6acceptERK14vrange_visitor
cc1: error: cannot load plugin ./scripts/gcc-plugins/latent_entropy_plugin.so: ./scripts/gcc-plugins/latent_entropy_plugin.so: undefined symbol: _ZNK6frange6acceptERK14vrange_visitor
  HDRINST usr/include/linux/usb/tmc.h
make[2]: *** [scripts/Makefile.build:117: scripts/mod/devicetable-offsets.s] Error 1

I see the following in my .config:
CONFIG_HAVE_GCC_PLUGINS=y
CONFIG_GCC_PLUGINS=y
CONFIG_GCC_PLUGIN_LATENT_ENTROPY=y
CONFIG_GCC_PLUGIN_RANDSTRUCT=y

So I'll turn those off, but just want to flag that this issue exists.
Seems either the plugins should work or the allmodconfig should turn them off.

/jeff

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

end of thread, other threads:[~2024-06-20  5:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-18 23:41 mips gcc plugin issues Jeff Johnson
2024-06-19 20:50 ` Kees Cook
2024-06-19 21:12   ` Arnd Bergmann
2024-06-19 21:17     ` Kees Cook
2024-06-20  5:10       ` Arnd Bergmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.