From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8758AC433F5 for ; Sat, 16 Apr 2022 20:00:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232946AbiDPUDU (ORCPT ); Sat, 16 Apr 2022 16:03:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232263AbiDPUDT (ORCPT ); Sat, 16 Apr 2022 16:03:19 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 343E536159 for ; Sat, 16 Apr 2022 13:00:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 962C1B80839 for ; Sat, 16 Apr 2022 20:00:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11248C385A1; Sat, 16 Apr 2022 20:00:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650139243; bh=Ka6+qJaR1j7Wk+I96aulgn9GzzuGisO+SJlaR50Hcxc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IoQ2FlZ70XbC4GByKgALkl4zC2ps6xtKFyrf6SURaD1NW6VlnD/Np5hbd2pYDkZeY glJxL9MtkVKmQydNxFfXvjYXUzl1ycZfKN3y5i6yDWFYtgwzhXpWYglSRwgoop/4dh f4hEuf+bmDO+3j+Sq0CIYPVHyNHeMCKjML6PdVZQTo2GC0YcBsc4tbR/MLe0JmLYh9 nyrL+JSLSu1blTiCod7IQcCdaagR1ozFEw+KAlUJuWNsi6cfKThv2a3a84/Bc5Dbzt fapSis8e6+qFV2pgJcLSEgsYeKxdf7D1oI3y7ncgqVR/qkcGFqGdgh1BBa8E+dbonk g/jVbJlqO+Jmg== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 8030740407; Sat, 16 Apr 2022 17:00:40 -0300 (-03) Date: Sat, 16 Apr 2022 17:00:40 -0300 From: Arnaldo Carvalho de Melo To: Guilherme Amadio Cc: Jiri Olsa , Namhyung Kim , Adrian Hunter , Nathan Chancellor , Nick Desaulniers , Sedat Dilek , linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf clang: Fix header include for LLVM >= 14 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Sat, Apr 16, 2022 at 04:58:22PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Sat, Apr 16, 2022 at 04:56:24PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Sat, Apr 16, 2022 at 09:45:55AM +0200, Guilherme Amadio escreveu: > > > The header TargetRegistry.h has moved in LLVM/clang 14. > > > And that part : /usr/bin/ld: /usr/lib/llvm-10/lib/libclangCodeGen.a > > seems to imply its llvm 10 that is installed, lemme check: > > > > [perfbuilder@five ~]$ dsh ubuntu:20.04 > > $ bash > > perfbuilder@7cfe87e48135:/$ dpkg -l | grep llvm > > ii libllvm10:amd64 1:10.0.0-4ubuntu1 amd64 Modular compiler and toolchain technologies, runtime library > > ii libllvm12:amd64 1:12.0.0-3ubuntu1~20.04.5 amd64 Modular compiler and toolchain technologies, runtime library > > ii llvm 1:10.0-50~exp1 amd64 Low-Level Virtual Machine (LLVM) > > ii llvm-10 1:10.0.0-4ubuntu1 amd64 Modular compiler and toolchain technologies > > ii llvm-10-dev 1:10.0.0-4ubuntu1 amd64 Modular compiler and toolchain technologies, libraries and headers > > ii llvm-10-runtime 1:10.0.0-4ubuntu1 amd64 Modular compiler and toolchain technologies, IR interpreter > > ii llvm-10-tools 1:10.0.0-4ubuntu1 amd64 Modular compiler and toolchain technologies, tools > > ii llvm-dev 1:10.0-50~exp1 amd64 Low-Level Virtual Machine (LLVM), libraries and headers > > ii llvm-runtime 1:10.0-50~exp1 amd64 Low-Level Virtual Machine (LLVM), bytecode interpreter > > perfbuilder@7cfe87e48135:/$ dpkg -l | grep clang > > ii clang 1:10.0-50~exp1 amd64 C, C++ and Objective-C compiler (LLVM based) > > ii clang-10 1:10.0.0-4ubuntu1 amd64 C, C++ and Objective-C compiler > > ii libclang-10-dev 1:10.0.0-4ubuntu1 amd64 Clang library - Development package > > ii libclang-common-10-dev 1:10.0.0-4ubuntu1 amd64 Clang library - Common development package > > ii libclang-cpp10 1:10.0.0-4ubuntu1 amd64 C++ interface to the Clang library > > ii libclang-dev 1:10.0-50~exp1 amd64 clang library - Development package > > ii libclang1-10 1:10.0.0-4ubuntu1 amd64 C interface to the Clang library > > perfbuilder@7cfe87e48135:/$ > > > > Yeah, so I'll try making it test >= 10, lets see... > > perfbuilder@7cfe87e48135:/$ find /usr -name TargetRegistry.h > /usr/include/llvm-10/llvm/Support/TargetRegistry.h > perfbuilder@7cfe87e48135:/$ > Sorry, your fix is for the ubuntu 22.04 problem, not the 20.04 one, retesting... - Arnaldo