On Mon, May 20, 2019 at 05:15:02PM +0200, H. Nikolaus Schaller wrote: > Hi, > it seems as if ARM build is broken since ARM now hard enables > CONFIG_HAVE_GCC_PLUGINS > which indirectly enables CONFIG_GCC_PLUGIN_ARM_SSP_PER_TASK. Compiling this > breaks > on my system (Darwin build host) due to conflicts in system headers and Linux > headers. > > So how can I turn off all these GCC_PLUGINS? > > The offending patch seems to be > > security: Create "kernel hardening" config area > > especially the new "default y" for GCC_PLUGINS. After removing that line from > scripts/gcc-plugins/Kconfig makes my compile succeed.
The intention is to enable it _if_ the plugins are available as part of the build environment. The "default y" on GCC_PLUGINS is mediated by: depends on HAVE_GCC_PLUGINS depends on PLUGIN_HOSTCC != "" So it seems that something isn't working in the plugin detection maybe? Can you send your build error, compiler version, .config, etc? I've not been able to reproduce this problem. (And I'm not aware of any of the automated build systems failing in this area yet either...) Perhaps it's something specific to building under Darwin? Thanks! -- Kees Cook