Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5325486imm; Tue, 21 Aug 2018 09:48:20 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzhicsxGDKkwlpsGwMTukv0+OtqT+tqn7kHhHcMDBQPfPRCncuDRXzehB5/8ab/dVhIllsX X-Received: by 2002:a65:658d:: with SMTP id u13-v6mr47924559pgv.20.1534870100363; Tue, 21 Aug 2018 09:48:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534870100; cv=none; d=google.com; s=arc-20160816; b=PHF8Xw//dLvj2fCt1cETWkUdI/QDeSPiwCvCyADu4EKPxtuyS/OdfMSuCfMJBJo/T4 T0va0UbwRQR1puTBxiYcxlpyPMYznZZIA950eQoFOCqGbJxlYlxGpWoMRBbGcq2C5s7i 611z6L8CLnES0X5BU6IkYdsUwW/nK8Rb3exkTtEgABg3YSxjPGWDprdwNV2plEplSjri lkgz1Ym8vZdCXNcHCxZsvFE6TAmt1LX3GOcnE4627DpPBtDbPGYA+apyTs7kql4MZ/yh tGIOEyjjznzpbXoHUuKYy+DM9VumdUlAs9V54SQQ7QawEea+jrXSAoL+PiXoHh3T3yMe vo1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=eJrvLX1i4bC1B7Vfzd5n+BF2nIR5jxhLG15Sv5fglis=; b=fk8pDg/xHb/gtA1sJE/2e7hgL40amwKlVX6OARxydW1KiTTKCPPXg5KXbJaUrE7RIp cCvzhC5CTGk+2j9hcS/VjKSm9UlIpueVO0iq6taQ6wXSbXctNIzAn4Bn4zBYjdjyehWX 3sjJLVHMy+2WveIhyGR1YVf2qqEjPRk2KJSlnB6vBypeoDiCIsxONerkJv4+AxOMmKyW 8AYfceMPKUuYxef6sGDqkXeVyFIwPHcFCh4x5QO7nYk5ntVJXQjFrFgcPHdZe5jK2WcC YRxWXMlIKv4osp6BgCg2iDpPEc20oHFtNZlLHMtErgmgOWibBsbCi3YnpTE3AIUaT/eS WAvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 188-v6si13669326pfg.154.2018.08.21.09.48.04; Tue, 21 Aug 2018 09:48:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727160AbeHUUG1 (ORCPT + 99 others); Tue, 21 Aug 2018 16:06:27 -0400 Received: from smtprelay0052.hostedemail.com ([216.40.44.52]:54881 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726734AbeHUUG1 (ORCPT ); Tue, 21 Aug 2018 16:06:27 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id CBFDE180A884B; Tue, 21 Aug 2018 16:45:33 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:967:973:988:989:1260:1263:1277:1311:1313:1314:1345:1359:1431:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2194:2199:2393:2525:2553:2559:2565:2682:2685:2693:2828:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:4321:4659:5007:6117:6119:6742:7903:8957:8985:9025:9108:10004:10400:10848:11232:11658:11914:12043:12050:12663:12740:12760:12895:13069:13141:13161:13229:13230:13311:13357:13439:14096:14097:14181:14659:14721:21067:21080:21451:21627:21691:30054:30055:30056:30070:30090:30091,0,RBL:error,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:39,LUA_SUMMARY:none X-HE-Tag: peace76_876e920e42646 X-Filterd-Recvd-Size: 2780 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf11.hostedemail.com (Postfix) with ESMTPA; Tue, 21 Aug 2018 16:45:30 +0000 (UTC) Message-ID: Subject: Re: [PATCH] compiler-gcc: get back Clang build From: Joe Perches To: Nick Desaulniers , asmadeus@codewreck.org Cc: Masahiro Yamada , Kees Cook , Linus Torvalds , Jonathan Corbet , Arnd Bergmann , dwmw@amazon.co.uk, LKML , Thomas Gleixner , Will Deacon , Geert Uytterhoeven , Ingo Molnar , Andrew Morton Date: Tue, 21 Aug 2018 09:45:28 -0700 In-Reply-To: References: <1534834088-15835-1-git-send-email-yamada.masahiro@socionext.com> <20180821123832.GA19034@nautica> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-08-21 at 09:32 -0700, Nick Desaulniers wrote: > On Tue, Aug 21, 2018 at 5:38 AM Dominique Martinet > wrote: > > > > Nick Desaulniers Aug. 21, 2018, 8:09 a.m. UTC: > > > Thanks for noticing, and sending this patch. I'm happy to see others > > > testing with Clang. I noticed this too near the end of the day > > > https://github.com/ClangBuiltLinux/linux/issues/27. > > > > FWIW libbcc so many BPF users also use clang, so this has more impact > > than just testing to build linux with clang (not that this would be any > > reason to delay fixing either way) > > > > I would tend to agree havin a compiler-common + make clang/intel not > > include compiler-gcc would probably be best in the long run but we might > > want a quick fix for 4.19 meanwhile.. > > That's fair. SOP here is quick (full) revert, then come up with a > better fix. And I do prefer Masahiro's partial revert to a full > revert of Joe's patch. That will give us more time to develop the > proper fix rather than rush. I'll try to see how we can more properly > split the compiler specific headers. > > Tested with gcc-7 and clang-8. clang-8? Isn't the latest officlal clang 6.0.1 ? http://releases.llvm.org/ vs https://clang.llvm.org/docs/ReleaseNotes.html So if something other than 6.0.x is required, then some additional check should probably be added to compiler-clang.h as well.