Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp852673imm; Wed, 22 Aug 2018 13:51:59 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzVKHnpJUmrgIGNDhFVlVbXPBNN+E7Yo5+cXF7XkjBSVJGrwun41+WFhMpvn/njaBWWnzSE X-Received: by 2002:aa7:88d3:: with SMTP id p19-v6mr53031312pfo.160.1534971119302; Wed, 22 Aug 2018 13:51:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534971119; cv=none; d=google.com; s=arc-20160816; b=s/OgU/RkuUaf0t7V7T1DyM9bnz1R7xnX2R2VCdh2K/yMe/o7bPD0fKHbiW3Z4+kuEd YLM8WhSWPKqsiv4d3bFRkiW5Ua7oE03GXBs45ubiNLl2EHkHGyAYAVar66cmMdDdEtn0 Z5OfvnfgEHv2ZN70cqe/vO93aul6E5yukEdn74UeHDX7pz48oFVVygun5FLzUlsvGhwU bcAc7Ay0n9m8q5NwooaqkwvQpCnxvtMmf5HgbxrAXHPPWrnrDKnudUsSlNvarzTebLyc 416HDYL0rm7WK5ORfF2MSkz3sGbRxPVR5a1nQzfA6N3HtkZZSKbO6H+zhffhXGGq6rAK LWeg== 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=OOT+GTsdR2H05yMkDQiFRnklcBW9fBBTMviumnI6lgA=; b=IpBA669K6ggTtz85vFNQzg45DpeQGyrnnROALT7FT8ZlQD6leS7CZztKbejgHerJjX wAjmlpsOtIKIXl7U566jxFznxtvkUZcVASRoLkzWorgkEV9WqMEOzjujIvNlDDPg72oW 63KvrWRW3GnOuH74AdgT8eMjarqk9AvB7hw3SCv+A0AsqkzWCJfeSum0sqKXebUkz066 SrAmWzane9U0liLlxi7C/l5dipD3+tUb+Emq+OdJmEKnuJJa/O/WOB10bPxchqGvdd+A 3J0DgsS/PJ9VZtDFVIgKuS35qOeg8P5T6okRsdjn5GBRR/7A8gS34MascUiF9kZKVEei ELgA== 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 w190-v6si2371849pgd.482.2018.08.22.13.51.43; Wed, 22 Aug 2018 13:51:59 -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 S1727095AbeHWARD (ORCPT + 99 others); Wed, 22 Aug 2018 20:17:03 -0400 Received: from smtprelay0222.hostedemail.com ([216.40.44.222]:48757 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726581AbeHWARC (ORCPT ); Wed, 22 Aug 2018 20:17:02 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id BFB055B3B; Wed, 22 Aug 2018 20:50:35 +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:1277:1311:1313:1314:1345:1359:1431:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:2393:2525:2553:2559:2563:2682:2685:2693:2828:2859:2911:2915:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3355:3622:3834:3865:3866:3867:3868:3870:3871:3872:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:4321:4425:4470:4560:5007:6119:6742:7903:8531:8957:9025:10004:10400:10848:11026:11232:11658:11914:12043:12050:12294:12438:12663:12740:12760:12895:13439:14096:14097:14180:14181:14659:14721:21060:21080:21222:21324:21433:21451:21627:21740:30054:30056:30069: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:32,LUA_SUMMARY:none X-HE-Tag: birds46_4dd97befa159 X-Filterd-Recvd-Size: 4313 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf05.hostedemail.com (Postfix) with ESMTPA; Wed, 22 Aug 2018 20:50:33 +0000 (UTC) Message-ID: <39b6242771fd80fe19104c8a057bcc6afc0e41e5.camel@perches.com> 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: Wed, 22 Aug 2018 13:50:32 -0700 In-Reply-To: References: <1534834088-15835-1-git-send-email-yamada.masahiro@socionext.com> <20180821123832.GA19034@nautica> <20180822041646.GA21716@nautica> <78396ba82562326f4b3a395a63e3e8dc38d608b2.camel@perches.com> <20180822043230.GA26654@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 Wed, 2018-08-22 at 11:31 -0700, Nick Desaulniers wrote: > 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. A mild suggestion about the patch would be to break it up into 2 patches to improve how people read and review them. 1 include/linux/compiler-* 2 everything else Yes, some kernel configs might not build properly between 1 and 2 but that likely doesn't matter as those configs probably don't build before 1 either. Perhaps the test in arch/arm/kernel/asm-offsets.c for incompatible gcc compiler versions from 4.8.0 to 4.8.2 should be moved to compiler-gcc.h. > Also, does anyone know who I should talk to about ICC testing? No clue