Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5346791imm; Tue, 21 Aug 2018 10:08:35 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzjI7GTs7ScFdmHY6/hwMa8u2aVh7n4vemGvcsjRcoNCGEXwGuCiU/Z6GS9vygAwczssbhJ X-Received: by 2002:a17:902:3324:: with SMTP id a33-v6mr8857994plc.221.1534871315926; Tue, 21 Aug 2018 10:08:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534871315; cv=none; d=google.com; s=arc-20160816; b=DmutSriH+Rklg4+DWqShZusRMPsoFttb/HyZoXyp6RLyyc2GGS+iZfOw1rF4uWr0GF iw0TXdfSa2q4cJZAisim1gHps2nrwf/rhCjjOU79UOWpP8rDvZ0s7YD0/NkspnRbgk7d oVHPSjHtgWAu8vGG1/vKuG4xYTotbTpLdqiKrge2wToLfAVMreVgx7EmKiofN9yu7fRG O9lQa7etpQCooUKxm4LYcnfzzAhlHaRFV/uU/wtRR0nE1Mp2fz9pSt8Ia56nqwqanPXs dWqHjDmOGdk7f2VFCqT987UITGPKNCsvQRPyKv8uCJ14zS4NKSzqfnLRDAbmu4iRCQuU 1Hsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=axrEzShdx5QPxl/juPcsI2w2RlOHGua6EjE2ZesHLAc=; b=BNosa21dLXl8sfubXc9J12Hhgpw4JvrMQgaHh1zx/AwgXYa2YP7z4WE0MLKWM1NrIv p2Jc8F4ENEiDMROIHNMV63qFTEh0IcWd8PLWmo6kLT8rUbNRUXnf/xBrLHSoZ2vpiyud 7jDZhrPGhcS1YQrVVp9cdp7bx4R5xefhAey7QyWMPZ/VkVjenSmIM2bGQ497iRmPtlxC Wv/aqZ65lE9VQNQUC+eBJaeZMUyoyruFPfViJmqLTqIT5JtWk/UQHzclRm7TP1IMeVif ScGfBlbI/uEBNkXQissrvUQJC7y1U37aGjZo9//VDytpIn8xtQpZJkOpKCeK4XLp5srq sxyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZMzlMsD4; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s29-v6si12429462pgn.47.2018.08.21.10.08.19; Tue, 21 Aug 2018 10:08:35 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=ZMzlMsD4; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727443AbeHUUVl (ORCPT + 99 others); Tue, 21 Aug 2018 16:21:41 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:41238 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726872AbeHUUVl (ORCPT ); Tue, 21 Aug 2018 16:21:41 -0400 Received: by mail-pg1-f194.google.com with SMTP id s15-v6so5966076pgv.8 for ; Tue, 21 Aug 2018 10:00:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=axrEzShdx5QPxl/juPcsI2w2RlOHGua6EjE2ZesHLAc=; b=ZMzlMsD4OKDBj7l9zvxcMkGI07FqLUSfp45o9AIclriPU6ZoI/BdMS2mlt+GaZ8s/L VRaaRNfFdEnwkJ1kMlb1FU204AFPng6DZuPJTegVxBz59HRJx0FRrAh61OvwqpW5GSUw fQaSZkR1fVC2qcxEtAX0s1fMMuDwSZ2uUcXvgiCCP6NS9q0wEbKRHrTjV8QRPII+Ok/k kL+SE451UrBG+XLNx28H59sCBnf7Ha/rObcLsmyMa+Skla2F6SXSyFcP0AWIMqihk1P6 cnU62xlnWZYIcvL+XobNt++DAloduG3QI7w3g7RlCa8kx982q+izrL17pOWfRgt6Whx8 KYVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=axrEzShdx5QPxl/juPcsI2w2RlOHGua6EjE2ZesHLAc=; b=KEir6/tvHR7nGf+UERH0SYS0OzQrMwD8DuYMF3mTGLKD5A3gDpOBFjQ16iMZdxyU42 7W3WJcV276yMDyszKIKVu8FVMVTU2nqnmxhIgY2ujyMxkT4646eDhJAzkuO3W1+64Los Fsu1RADbr3rVBqjUnWBuRyLZaBmjq34r3ck35OFrMXZP8VYSD4BDXhX+QDWRLgDi7W4P vrbr+BXPSZ194ocwzmSgbaPPWsYWZtSQq6rJtVlw8owimvMTXdZBS0+Gi0sczP7Lzisf czu+LfgrEq3AWKsXaKet1uek9/3SDmsv9Jk2JpOjegJVkAon3HvxpFVaNg0bwHTb9mt3 +ABw== X-Gm-Message-State: AOUpUlGEPWTUnVphqykqcc7HCJHm9BZbAccM67k3ZQ8ZLND/s8Bx/ET9 NKw5zlDDxGLIB+ud2V9MNIhmcgREMZyb87//M6PuyA== X-Received: by 2002:a62:1815:: with SMTP id 21-v6mr53675882pfy.227.1534870843859; Tue, 21 Aug 2018 10:00:43 -0700 (PDT) MIME-Version: 1.0 References: <1534834088-15835-1-git-send-email-yamada.masahiro@socionext.com> <20180821123832.GA19034@nautica> In-Reply-To: From: Nick Desaulniers Date: Tue, 21 Aug 2018 10:00:32 -0700 Message-ID: Subject: Re: [PATCH] compiler-gcc: get back Clang build To: joe@perches.com Cc: asmadeus@codewreck.org, 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 21, 2018 at 9:45 AM Joe Perches wrote: > > 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 ? Yes, but I have a local llvm tree that I work out of, that's in my $PATH, so my version of clang is never too far behind Top of Tree. For android, we're using clang-5, but currently staging an upgrade to clang 6.0.1. > So if something other than 6.0.x is required, > then some additional check should probably be > added to compiler-clang.h as well. > Sure, but that doesn't need to go in Mashiro's patch today. That can wait for a proper separation between compiler headers where we can then implement improved version checks. -- Thanks, ~Nick Desaulniers