mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] PTXCONF_KERNEL_GCC_PLUGINS broken with newer kernels
@ 2021-02-03 10:54 Sascha Hauer
  0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2021-02-03 10:54 UTC (permalink / raw)
  To: ptxdist

In ptxdist we have the option PTXCONF_KERNEL_GCC_PLUGINS which is
described as:

| The kernel kconfig options to enable gcc plugins depend on a
| sufficiently new host compiler. As a result, the kernel config
| may change with a different host compiler version.
| If this option is disabled then the environment is manipulated
| to ensure that the compiler check always fails. This keeps the
| kernel config stable. Enable this option when the kernel gcc
| plugins are used.

This stopped working with this kernel commit:

| commit 1e860048c53ee77ee9870dcce94847a28544b753
| Author: Masahiro Yamada <masahiroy@kernel.org>
| Date:   Thu Dec 3 21:57:00 2020 +0900
| 
|     gcc-plugins: simplify GCC plugin-dev capability test

This commit changed the test in a way that it always succeeds, no matter
if PTXCONF_KERNEL_GCC_PLUGINS is set or not:

-       depends on $(success,$(srctree)/scripts/gcc-plugin.sh $(CC))
+       depends on $(success,test -e $(shell,$(CC) -print-file-name=plugin)/include/plugin-version.h)

What indeed still fails is compilation of the plugins when
PTXCONF_KERNEL_GCC_PLUGINS is unset. So in a way this option still does
its job, you won't get a kernel with plugins enabled, but instead you
get a terrifying error message during compilation of the kernel.

I am unsure what we want to do about this, so this is merely a heads up
for now.

Sascha



-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-03 10:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-03 10:54 [ptxdist] PTXCONF_KERNEL_GCC_PLUGINS broken with newer kernels Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox