Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp730442imm; Wed, 22 Aug 2018 11:33:35 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxDkewKmL2sS7aN5kCNV1+Ra+uOPlDnLVrVw+Bp3SnHVbLd3HV5csEyC9WPyMH24B3O48Tk X-Received: by 2002:a17:902:9a01:: with SMTP id v1-v6mr55353369plp.20.1534962815062; Wed, 22 Aug 2018 11:33:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534962815; cv=none; d=google.com; s=arc-20160816; b=cLJk/Y4o2Qs/cK2HIoMCkRMy6epGqyarjAL2T/PK4z3wCc/HzoBkXTwBqSjF9uYWO3 /LE1AR6J4MMgu4k/A+tTcZrd5N3bWO77iBCQ8TKSO461IIzc8MZzVVT3xa11gILLmYAy TNDbmpc+z/Qy7+ygr0mQu6EWuaDjkcXtBzEE9xlmf+QUCPKFUvlsiKm62+sqaz5Dxi0A L2IZ+5RlBSnNhLLDoZAeb3EuoxB7Or7vCsW1Ugwgr79/N+DiRHTTIEqYPPL/eXHI1bQl /v3Ou7vc0/uyLXjFyPSu4zKn0HUnEb8Dr2iRUzRzaOLI8qHntXG8LbjNIxZ9Ijad1WH7 32tA== 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=L6nRzbI7YxBw0kI+eZ5MPyhsDtdwZjhJiAkVizkZedE=; b=W19IjEdUL79eh81UZMGPlP4JRDluWq2R7eRtIIgFhUS+oaBcLbrmSoQDd4ep8J9yoi FXYJYVDV9zQ3o1uDd5aeY6R/AaymXH9NOIebKLATlxooW1Jl3ZBxGA5cYuWirt2Zubzn 2tSGQ/+EtZKnscE/3Y1G0siRTrLgjlhjn4ATwmrpIAxTNbO2II41swDqSBp1xX8eYSlV 4JeFjMdbnrgx15IpZZ1WhOYhdvHZutIW2ygNTPlbv/RP4iAh37KVK7ApJYDkQAdj8gI0 Br3dcgajlwjqDZnMbCmXRTehd3O4+A6gi+fXDYD8F0X3bOICD4GdhE4RNw1VbDS8MBHD Do6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=odgK+uQX; 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 t9-v6si1890672pga.26.2018.08.22.11.33.18; Wed, 22 Aug 2018 11:33: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=odgK+uQX; 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 S1727854AbeHVV6I (ORCPT + 99 others); Wed, 22 Aug 2018 17:58:08 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:37219 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727016AbeHVV6I (ORCPT ); Wed, 22 Aug 2018 17:58:08 -0400 Received: by mail-pl0-f66.google.com with SMTP id c6-v6so1230732pls.4 for ; Wed, 22 Aug 2018 11:32:09 -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=L6nRzbI7YxBw0kI+eZ5MPyhsDtdwZjhJiAkVizkZedE=; b=odgK+uQXYVMUVDnE5X8nopAtjK6M+fF5/XohRNof2rOffUrh14Xjq9129FJDBGJLd+ srKCHdR8/qCltzqIK2K57rMOOuLl2a7jTVn6Sn7aLB/Me1jkdA+TWyIwYpdfSxi2M2yB RC3wYIbd3S8NLd2CPCr2oiW7kIQmDF5JXKChhNcN1RFTpiqt3CWouUWVCG/rWRW7ixVT bKscceGkBSZZbfZP5U1X1RjKikeE3g2jUvzkT4HHggXPbgk6o4+VucqYh0uRNi3t/F2p nIg9iWlpDSlEf3rVri0y/7HWttxOjm/MDNqQE4ddfC1ZA2wUlZCQOzXOkVDmoiIJOq7B cFRg== 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=L6nRzbI7YxBw0kI+eZ5MPyhsDtdwZjhJiAkVizkZedE=; b=kSnenq8CMeW1h+VxqxiLFLXC17UYKpsp6JgSK9nsu/lwBLdnoo9aVBSQ25gQkhK/Sy qC0WF76CD8ehjSaMZFe5c3JYaUvO6vy9zu8b3zYnQLB0faj5tbxBDaws+55Ejg2KVZqB TXKh0u23aQuEIX16AUJRYEeca1GnXPyFBo1MharurMcmeM8iW14E5HFmR5HrIRglfJL4 JGvm2b0/JmT1NwlleTT5LzE/kAXopUbfXah4SIshjp3yP/Qa4EAS+KwyRp03opsd8cVR LxRXuXCF0dUIexdIu93yJEd9WzsZH69rspZqvTt4x26hdQnfCxrOT3iuGT83fgL/NqgZ yp0Q== X-Gm-Message-State: APzg51AXIWWddGZHJhONLSJYgJoWjmd4rnHZbgN1sbc/r42Zk4deYBds 9rUpqdS4168qVz5zlUrrAAEvMbG8LWECcGp2ewGPzw== X-Received: by 2002:a17:902:981:: with SMTP id 1-v6mr5512999pln.229.1534962728156; Wed, 22 Aug 2018 11:32:08 -0700 (PDT) MIME-Version: 1.0 References: <1534834088-15835-1-git-send-email-yamada.masahiro@socionext.com> <20180821123832.GA19034@nautica> <20180822041646.GA21716@nautica> <78396ba82562326f4b3a395a63e3e8dc38d608b2.camel@perches.com> <20180822043230.GA26654@nautica> In-Reply-To: <20180822043230.GA26654@nautica> From: Nick Desaulniers Date: Wed, 22 Aug 2018 11:31:56 -0700 Message-ID: Subject: Re: [PATCH] compiler-gcc: get back Clang build To: asmadeus@codewreck.org Cc: joe@perches.com, 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:32 PM Dominique Martinet wrote: > > Joe Perches wrote on Tue, Aug 21, 2018: > > On Wed, 2018-08-22 at 06:16 +0200, Dominique Martinet wrote: > > > I think that could work, but at the point making a separate > > > compiler-common.h and not including compiler-gcc.h for clang sounds > > > better to me... More importantly here, either solution sound complex > > > enough to require more than a few days and proper testing for all archs > > > etc when compared to the partial revert we have here. > > > > The immediate need for a partial revert seems unnecessary as > > clang hasn't really worked for a couple releases now. > > Sorry for repeating myself, clang is used by bcc for compiling BPF > programs (e.g. bpf_module_create_c_from_string() or any similar function > will use the clang libs to compile the bpf program with linux headers), > and this has always been working because it's not using our makefiles. > > This broke today in master and I only joined this thread after looking > at why the build started failing today and noticing this patch, it > definitely hasn't been broken for two releases, or I wouldn't be here > with this timing :) > > > > The separate compiler file changes are much more sensible, > > even if it takes a few days. > > A few days are fine, but I think some form of fix in 4.19-rc1 would be > good. > > I'll stop taking your time now, but I think you are/were underestimating > how many people use clang with the linux kernel headers indirectly. > BPF is a well-used tool :) Hi Dominique, I'm currently testing a fix in https://github.com/ClangBuiltLinux/linux/commit/1f89ae7622c26b8131f42f3a362d6ef41b88a595, can you please share with me your steps to test/verify that the patch fixes the issue for eBPF? I'll go talk to a co-worker who know more about eBPF, but I've not yet done anything with it. Also, does anyone know who I should talk to about ICC testing? -- Thanks, ~Nick Desaulniers