From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Date: Wed, 3 Feb 2021 11:54:35 +0100 Message-ID: <20210203105435.GV19583@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline From: Sascha Hauer Subject: [ptxdist] PTXCONF_KERNEL_GCC_PLUGINS broken with newer kernels List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de 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 | 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