Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5797184ybl; Tue, 14 Jan 2020 15:19:39 -0800 (PST) X-Google-Smtp-Source: APXvYqzlKzjIbVaezOjc7plI9x2itkfXI3v7GBrZzrIVwqGVD2LbyDVVBcm4sor+5elf07rE+p1f X-Received: by 2002:a9d:62d9:: with SMTP id z25mr592439otk.249.1579043979247; Tue, 14 Jan 2020 15:19:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579043979; cv=none; d=google.com; s=arc-20160816; b=djL3J2Ra8GJfviJCKEtdVzG7SoTX3MV0NOJxjpPmyIWqwJZzFk/6W+igMnMH/A+OFD UI9yNryFsnbVSrO93SkF5/QhokHIhB2Xrf0yB18SsaO34Ck7Bjo6RRI1qLy0BcGfHfm2 1KxMKmJho8Ubl4SkSutjqcPyJ8cCQOqlF9u966uWvT1DMiDQ9O5spVf8xSscAq983HHr Trf1f0ie6QcoebK9RRVhJyEL8yQ8lXoUjXoETHKdskExhgWZPbgXhupX+vVwzLCDkAc5 ma4JDPcKREhRANINomGnV6JeBNEJPWja3gL94CkoRUbimYBP0hiNLs2A1x6o8gW5lrpY HbzA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject; bh=bomJu8veO5Da1CIqv55YPHzp+D6dxHbjH2JX5Jt5Ls4=; b=oQ3MiX7RpDj9QI7B7cBvpEyDNuluALhccmeV7sOo6YZ+Ccw+UGgDQMVfiVe4DsGgPB Ei4YG9FSEcXN/8v2kpZ8FdKjMOVkdaqDFUSbg/KuowAc405dR9zGB6iQgI/+1l2lnUoY ZYxSDlSL7W6siGvoGWjfgoUCidl6WusQ9t9efeZ/3lsPdQnWOSH4er1NEdiCy6cvXCjb xSmxGV8/+EW1JruXAFLyKJY9mStyFltCqZN63Nkhd8Jve+F9l23wa+wJVdzsm47tfjrA ulHpxDLlsP2fRA1T2kaxgtdy9aeTfCmy6aprbRzgnBDIeFmIO+Ge+dtIkJXOnDVjb18h WCCA== 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 h20si9967585otn.253.2020.01.14.15.19.26; Tue, 14 Jan 2020 15:19:39 -0800 (PST) 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 S1728769AbgANXSb (ORCPT + 99 others); Tue, 14 Jan 2020 18:18:31 -0500 Received: from vps-vb.mhejs.net ([37.28.154.113]:36794 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728650AbgANXSa (ORCPT ); Tue, 14 Jan 2020 18:18:30 -0500 Received: from MUA by vps-vb.mhejs.net with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.3) (envelope-from ) id 1irVS4-000305-45; Wed, 15 Jan 2020 00:18:24 +0100 Subject: Re: [PATCH] perf clang: Fix build with Clang 9 To: Arnaldo Carvalho de Melo Cc: Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Dennis Schridde , Denis Pronin , Naohiro Aota , clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org References: <20191228171314.946469-2-mail@maciej.szmigiero.name> <20200114222025.GC4769@kernel.org> From: "Maciej S. Szmigiero" Autocrypt: addr=mail@maciej.szmigiero.name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ZsXGxMSrZ4RRRFESvcgvK95KgnlsyuRouyVFu7tJVbTnW6/65JRFNlEQ6Wsbx/0C90 KWkF9R7DLtcVxno75+pXiXDdy9bq54uQeT+9dr+EdyVL0H3eTzP9js7GrRahuHD6/AxekQwX afDLYnExRXL7acu5a1fUpDKWe/CigtyjJz73Dvs9eV7Wvk69TFV60Ft84UEqNBqSha7s1/m8 tQW4InvfnL9h0LWVvwUZe5HKCPe65amwBOvwkkYd4OfNb0NDVudTMsCYLJ8al57zLelH2hcS wOiVdXBsbePjzLy2exEXUb1bHFjBoHnHX6uszBOzM/Dv1eNWJPZ3r3PRFnQk/D9ohEXVEmUI TLDd7lR06Nr8J4oG1RprRTW1T8xE6lSwbfsp9ApU1QuDZzSI1hdNpDYRVUmQeiXnSjR1YBVb zOyMU+hnnsQZMdTQ2qVFZs4JGCA9/wSOMMsohDbJNX2iGR1S+RFpZY9sipuGBVM7wIVrz4Ac Iw== Message-ID: Date: Wed, 15 Jan 2020 00:18:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: <20200114222025.GC4769@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14.01.2020 23:20, Arnaldo Carvalho de Melo wrote: > Em Sat, Dec 28, 2019 at 06:13:14PM +0100, Maciej S. Szmigiero escreveu: >> LLVM D59377 (included in Clang 9) refactored Clang VFS construction a bit, >> which broke perf clang build. >> Let's fix it. >> >> Signed-off-by: Maciej S. Szmigiero >> Reviewed-by: Dennis Schridde >> --- >> tools/perf/util/c++/clang.cpp | 4 ++++ >> 1 file changed, 4 insertions(+) >> >> diff --git a/tools/perf/util/c++/clang.cpp b/tools/perf/util/c++/clang.cpp >> index fc361c3f8570..c8885dfa3667 100644 >> --- a/tools/perf/util/c++/clang.cpp >> +++ b/tools/perf/util/c++/clang.cpp >> @@ -71,7 +71,11 @@ getModuleFromSource(llvm::opt::ArgStringList CFlags, >> CompilerInstance Clang; >> Clang.createDiagnostics(); >> >> +#if CLANG_VERSION_MAJOR < 9 >> Clang.setVirtualFileSystem(&*VFS); >> +#else >> + Clang.createFileManager(&*VFS); >> +#endif > > Building on ubuntu 19.10 fails, is this related? Or to the other patch? I > haven't paid attention other than realizing its clang related. Don't think so, these linker errors you posted look unrelated. See the following Gentoo bugs for sample compile errors fixed by these patches: https://bugs.gentoo.org/695726 https://bugs.gentoo.org/678652 Maciej