From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Rostedt Date: Sun, 03 Dec 2017 21:22:56 +0000 Subject: Re: Difficulties for compilation without extra optimisation Message-Id: <20171203162256.4ea0750d@vmware.local.home> List-Id: References: <7f072f78-eef4-6d87-d233-cee71dac5a32@users.sourceforge.net> <1512314250.3673.6.camel@primarydata.com> In-Reply-To: <1512314250.3673.6.camel@primarydata.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kernel-janitors@vger.kernel.org On Sun, 3 Dec 2017 15:17:32 +0000 Trond Myklebust wrote: > > I would like to check corresponding build results then without extra > > optimisation applied by the compiler. > > But I got surprised by error messages for a command like the > > following. > > > > elfring@Sonne:~/Projekte/Linux/next-patched> my_cc=/usr/bin/gcc-7 && > > LANG=C make -j4 CC="${my_cc}" HOSTCC="${my_cc}" EXTRA_CFLAGS='-O0' > > allmodconfig fs/nfs/write.o Why would you compile the kernel without optimization? There's many places in the kernel that WILL NOT BUILD without optimization. In fact, we do a lot of tricks to make sure that things work the way we expect it to, because we add broken code that only gets compiled out when gcc optimizes the code the way we expect it to be, and the kernel build will break otherwise. -- Steve From mboxrd@z Thu Jan 1 00:00:00 1970 From: rostedt at goodmis.org (Steven Rostedt) Date: Sun, 3 Dec 2017 16:22:56 -0500 Subject: [Linux-kselftest-mirror] Difficulties for compilation without extra optimisation In-Reply-To: <1512314250.3673.6.camel@primarydata.com> References: <7f072f78-eef4-6d87-d233-cee71dac5a32@users.sourceforge.net> <1512314250.3673.6.camel@primarydata.com> Message-ID: <20171203162256.4ea0750d@vmware.local.home> On Sun, 3 Dec 2017 15:17:32 +0000 Trond Myklebust wrote: > > I would like to check corresponding build results then without extra > > optimisation applied by the compiler. > > But I got surprised by error messages for a command like the > > following. > > > > elfring at Sonne:~/Projekte/Linux/next-patched> my_cc=/usr/bin/gcc-7 && > > LANG=C make -j4 CC="${my_cc}" HOSTCC="${my_cc}" EXTRA_CFLAGS='-O0' > > allmodconfig fs/nfs/write.o Why would you compile the kernel without optimization? There's many places in the kernel that WILL NOT BUILD without optimization. In fact, we do a lot of tricks to make sure that things work the way we expect it to, because we add broken code that only gets compiled out when gcc optimizes the code the way we expect it to be, and the kernel build will break otherwise. -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: rostedt@goodmis.org (Steven Rostedt) Date: Sun, 3 Dec 2017 16:22:56 -0500 Subject: [Linux-kselftest-mirror] Difficulties for compilation without extra optimisation In-Reply-To: <1512314250.3673.6.camel@primarydata.com> References: <7f072f78-eef4-6d87-d233-cee71dac5a32@users.sourceforge.net> <1512314250.3673.6.camel@primarydata.com> Message-ID: <20171203162256.4ea0750d@vmware.local.home> Content-Type: text/plain; charset="UTF-8" Message-ID: <20171203212256.0_zF63ZWD_UQmaanKF5tCal77PZ2fc_iL7fTRM5WUf8@z> On Sun, 3 Dec 2017 15:17:32 +0000 Trond Myklebust wrote: > > I would like to check corresponding build results then without extra > > optimisation applied by the compiler. > > But I got surprised by error messages for a command like the > > following. > > > > elfring at Sonne:~/Projekte/Linux/next-patched> my_cc=/usr/bin/gcc-7 && > > LANG=C make -j4 CC="${my_cc}" HOSTCC="${my_cc}" EXTRA_CFLAGS='-O0' > > allmodconfig fs/nfs/write.o Why would you compile the kernel without optimization? There's many places in the kernel that WILL NOT BUILD without optimization. In fact, we do a lot of tricks to make sure that things work the way we expect it to, because we add broken code that only gets compiled out when gcc optimizes the code the way we expect it to be, and the kernel build will break otherwise. -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtprelay0070.hostedemail.com ([216.40.44.70]:50964 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751380AbdLCV2l (ORCPT ); Sun, 3 Dec 2017 16:28:41 -0500 Date: Sun, 3 Dec 2017 16:22:56 -0500 From: Steven Rostedt To: Trond Myklebust Cc: "linux-kselftest@vger.kernel.org" , "elfring@users.sourceforge.net" , "linux-nfs@vger.kernel.org" , "kernel-janitors@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "peterz@infradead.org" Subject: Re: Difficulties for compilation without extra optimisation Message-ID: <20171203162256.4ea0750d@vmware.local.home> In-Reply-To: <1512314250.3673.6.camel@primarydata.com> References: <7f072f78-eef4-6d87-d233-cee71dac5a32@users.sourceforge.net> <1512314250.3673.6.camel@primarydata.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-nfs-owner@vger.kernel.org List-ID: On Sun, 3 Dec 2017 15:17:32 +0000 Trond Myklebust wrote: > > I would like to check corresponding build results then without extra > > optimisation applied by the compiler. > > But I got surprised by error messages for a command like the > > following. > > > > elfring@Sonne:~/Projekte/Linux/next-patched> my_cc=/usr/bin/gcc-7 && > > LANG=C make -j4 CC="${my_cc}" HOSTCC="${my_cc}" EXTRA_CFLAGS='-O0' > > allmodconfig fs/nfs/write.o Why would you compile the kernel without optimization? There's many places in the kernel that WILL NOT BUILD without optimization. In fact, we do a lot of tricks to make sure that things work the way we expect it to, because we add broken code that only gets compiled out when gcc optimizes the code the way we expect it to be, and the kernel build will break otherwise. -- Steve