Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752723AbdLCVXF (ORCPT ); Sun, 3 Dec 2017 16:23:05 -0500 Received: from smtprelay0047.hostedemail.com ([216.40.44.47]:48798 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752384AbdLCVXE (ORCPT ); Sun, 3 Dec 2017 16:23:04 -0500 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1434:1437:1461:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2689:2693:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3872:3873:3874:5007:6119:6261:7809:7875:7903:10004:10400:10848:10967:11232:11658:11914:12043:12740:12760:12895:13069:13311:13357:13439:14659:14721:21080:21433:21434:21451:21627:30012:30054:30070:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: tub61_1a6763edaa25b X-Filterd-Recvd-Size: 2098 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> X-Mailer: Claws Mail 3.15.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 842 Lines: 20 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