From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932765AbcLIKly (ORCPT ); Fri, 9 Dec 2016 05:41:54 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:61827 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753656AbcLIKlv (ORCPT ); Fri, 9 Dec 2016 05:41:51 -0500 From: Arnd Bergmann To: Kees Cook Cc: Stephen Rothwell , Randy Dunlap , Olof Johansson , Mark Brown , info@kernelci.org, Linus Torvalds , Andrew Morton , Will Deacon , Russell King - ARM Linux , LKML , Linux-Next , Fengguang Wu , Andrew Donnellan , Michael Ellerman , Laura Abbott , "x86@kernel.org" Subject: Re: enabling COMPILE_TEST support for GCC plugins in v4.11 Date: Fri, 09 Dec 2016 11:40:52 +0100 Message-ID: <2680957.ot0HfIkH6p@wuerfel> User-Agent: KMail/5.1.3 (Linux/4.4.0-34-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:qf1iXHDKOvamDxn3KXjzpvJwl0ye+JgS3XZ1g8qpDr2HHfQQl4K Bm0y3tq3IZsySY67GBiJVq7fBwJodEWjNSzJHzz5Z5r0pwdo2D9aTQ3IUu1pB/J/oZnl81+ FW23U0vxBYSFbLOW6jy+TVRdTYSzT/L+cogavMqiNtKdJC1f6xE5y/B7nGhDpnAzTT8wcBX 2lAnJ3FM9O7YkUK0sVdVg== X-UI-Out-Filterresults: notjunk:1;V01:K0:68DuWrpQ7Jc=:eDqETblAlCdPRGwVOU5X8q QI2pI1ncDiQLzEoIJ1pZZl2BUeVtzFpRIwclTNTpgJMLgo7jo1FplAB6jx0L/X5zucxvj0cpY hup2PH4Bk3KDo/i7Z+4qY1ara15XeXkXJHzoNMDpHGpoUY0DNYUdBXbHbIEPzw7mTrlKVOTdp 63lm0fta+CmE+b+5oh7c8QeFUpxR1gzyDjV9lFr5OqAdYQV0ggV2eRtqwQGJUDq+vMd7IdJld i+2utfZzz0AjikyjDwyzm3FRt5hmGALloNbnh3hS7+yPQyn9meXh23GJt4OU6VBpsYjWGvPuz uQKUK0zl0G//We31S8NZhzvVmGc/ye+GUTb67RrCxmXdgVgAGPEv0hveESj93L6I+0LqRZQXf /uUdQCfPBGvih917hcbmfisIaKF0VBt371SwM0AeQyj2OQbaqhaYIDC7qlWfcRwuV6+ZJP23P /0eDMOlgb+OqsXBpW61io32elRS1okgZ8SROYNGz0jpp1atCix2zxnAOux8kD+a3NSyJUXT4y crEi6Vmgvwwj+hswaR0GfN5VfpRZMVYxxumLy1v7WbI+LgLSPosBFGds1HFR59BAf2S9p8fE4 4BmZaRm2w5CLVmhH8kE8rcPCbUuSjMrkgMpOn1TcnLBeCTCTlwa8Xp9C4JNQLsTpmYWQ6Q4Ip Ctk1YUjlrIRHfY9XeL/g1QLQbzrCEkk35kX6aVAci/ai7dOT3yV9Rf0iVcBbVEsG1qmyjJ7Ge 6C/t4RvokOZS5EUI Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, December 8, 2016 11:00:42 AM CET Kees Cook wrote: > If you have a moment, applying 215e2aa6c024[1] and reverting > a519167e753e for an allyesconfig/allmodconfig build should let you > know if things are working correctly with headers installed. If anyone > sees any problems, please let me know and I can queue up fixes. Using gcc-4.9.3 or gcc-5.3.1 for an ARM allmodconfig build, I get tons of errors such as this one: /git/arm-soc/init/initramfs.c: In function 'error': /git/arm-soc/init/initramfs.c:50:1: error: unrecognizable insn: } ^ (insn 26 25 27 5 (set (reg:SI 111 [ local_entropy.243 ]) (rotatert:SI (reg:SI 116 [ local_entropy.243 ]) (const_int -30 [0xffffffffffffffe2]))) -1 (nil)) *** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins. Event | Plugins PLUGIN_ATTRIBUTES | latent_entropy_plugin PLUGIN_START_UNIT | latent_entropy_plugin /git/arm-soc/init/initramfs.c:50:1: internal compiler error: in extract_insn, at recog.c:2202 /git/arm-soc/arch/arm/vfp/vfpmodule.c: In function 'vfp_init': /git/arm-soc/arch/arm/vfp/vfpmodule.c:824:1: error: unrecognizable insn: } ^ (insn 138 137 139 17 (set (reg:SI 165 [ local_entropy.93 ]) (rotatert:SI (reg:SI 150 [ local_entropy.93 ]) (const_int -9 [0xfffffffffffffff7]))) -1 (nil)) *** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins. Using gcc-6.1.1 or gcc-7.0.0, everything works fine as far as I can tell. With some older Ubuntu binary toolchains, I get this one: In file included from :1:0: /git/arm-soc/scripts/gcc-plugins/gcc-common.h:4:22: fatal error: bversion.h: No such file or directory compilation terminated. Cannot use CONFIG_GCC_PLUGINS: your gcc installation does not support plugins, perhaps the necessary headers are missing? and I can't find the packages for the headers (I still get them for gcc-5, but not older versions). On very old toolchains (e.g. gcc-4.3), I get this one: Cannot use CONFIG_GCC_PLUGINS: your gcc version does not support plugins, you should upgrade it to at least gcc 4.5 scripts/Makefile.gcc-plugins:54: recipe for target 'gcc-plugins-check' failed Arnd