Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1891296imm; Sat, 16 Jun 2018 05:28:01 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKIZJwH5EehwgK+GwoT66n8RK9ARu3ytcJxS1Fu8uqMIa+zE62wQyKbXDqENKqKcgyZoZwc X-Received: by 2002:a17:902:6f0f:: with SMTP id w15-v6mr6315081plk.216.1529152081030; Sat, 16 Jun 2018 05:28:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529152081; cv=none; d=google.com; s=arc-20160816; b=nmlDA8GnD6qIN7fHgsjI03DXBtnT8gf2oWSVmbu2po2HJ0wswP/0XhSfb1kbzc8zsU ppyb3iZPQRjn393MJOZG9Kdc7p4zvuUnBav2LQiVgoUMWuL12H3aawErX9YzK7IkkbmE j+o91E8iieRW63WbbM6wz+YIj2PmTC2JNBGR/xCFhsUSskMH/j9Hp0rEIwTfD1xWdmUn axOfsPA6nrMAclqAj2mc23PFZPnXQyWamNI8tPP0J+AM0g4s1ocZsHdrLh0IKrUkiO0C QMO0KfoNJM0qeabm3hzN/pY/KviZTp7A5HDRN3hqSYbCiirPx6++6TBEJZ6vCVOByaJG HY6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=kxUUngtVLrZpu7FQFP+qaUODn7RZe3qsPYqTzyNY1iQ=; b=JgHDeBGH466VsJYc/CBujmk0UwriNPWxNVsf/Fs1Rm9MhXXn3EnPx/R31NiRx2hFFl KYWMKhbuPWe3wifS228KUlnnBAQ3tCwZikXIcMERUMirdm0kdoVo7Ayp2jtMAMojWoyS EhMj7wW+riQQZUaUlVUXZHyIVgfyT0ZPf2q4226+MU0srrIDpwzNU24cVc0FaL1pKaH7 0Eh781RQP+/A6MCDZ8/cJUlph4N3mg+AIx0ZbVcoFsSomiuFCISSVYOmwobnJiFZa3ue YY0bzI2OxjyDZ+JTtYt+/jVWpfaL9te9nfBtmpGpFatI57ACOAATEptyGrVJLJMIq2uJ aCbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HzreFmL6; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si10280864plk.19.2018.06.16.05.27.46; Sat, 16 Jun 2018 05:28:01 -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=@kernel.org header.s=default header.b=HzreFmL6; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932848AbeFPM0O (ORCPT + 99 others); Sat, 16 Jun 2018 08:26:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:49602 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932805AbeFPM0N (ORCPT ); Sat, 16 Jun 2018 08:26:13 -0400 Received: from jouet.infradead.org (unknown [179.97.41.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 458FD208AF; Sat, 16 Jun 2018 12:26:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1529151972; bh=bMh4vJDQIHC0e2Q/Ctv2yZOqA1oPb2Ct5zeOtpUwp+U=; h=Date:From:To:Cc:Subject:From; b=HzreFmL6TcAwHlaU8K/wAQiCZDXnqt5Z3GKmcZmBOx3dR3RjSaRNufl2/6Sl6sLP2 Tbj6/fy1RoN1uP5aMAI4EUkd9x5ka0LbZJDCXbcHj57GLN74g6La5c5O81jdm4PHky XkAeXuze5FLtdJVXrfWbYLonNT4fef+74l7C6qaI= Received: by jouet.infradead.org (Postfix, from userid 1000) id 5AE2114699E; Sat, 16 Jun 2018 09:26:08 -0300 (-03) Date: Sat, 16 Jun 2018 09:26:08 -0300 From: Arnaldo Carvalho de Melo To: Wang Nan , Yonghong Song Cc: Jiri Olsa , Linux Kernel Mailing List , Alexei Starovoitov , Martin KaFai Lau , Daniel Borkmann Subject: perf tools: LIBCLANGLLVM=1 build broken with llvm 7/clang 6 Message-ID: <20180616122608.GM30043@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Wang, Yogong, While reviewing the BTF patches for pahole, I updated llvm/clang to HEAD and then building perf with clang embedded I noticed this, will investigate, posting here to document the regression, maybe this is something you came across in other scenario: $ make LIBCLANGLLVM=1 -C tools/perf/ CC /tmp/tmp.t53Qo38zci/tests/kmod-path.o util/c++/clang.cpp: In function ‘std::unique_ptr > perf::getBPFObjectFromModule(llvm::Module*)’: util/c++/clang.cpp:150:43: error: no matching function for call to ‘llvm::TargetMachine::addPassesToEmitFile(llvm::legacy::PassManager&, llvm::raw_svector_ostream&, llvm::TargetMachine::CodeGenFileType)’ TargetMachine::CGFT_ObjectFile)) { ^ In file included from util/c++/clang.cpp:25:0: /usr/local/include/llvm/Target/TargetMachine.h:254:16: note: candidate: virtual bool llvm::TargetMachine::addPassesToEmitFile(llvm::legacy::PassManagerBase&, llvm::raw_pwrite_stream&, llvm::raw_pwrite_stream*, llvm::TargetMachine::CodeGenFileType, bool, llvm::MachineModuleInfo*) virtual bool addPassesToEmitFile(PassManagerBase &, raw_pwrite_stream &, ^~~~~~~~~~~~~~~~~~~ /usr/local/include/llvm/Target/TargetMachine.h:254:16: note: candidate expects 6 arguments, 3 provided mv: cannot stat '/tmp/tmp.t53Qo38zci/util/c++/.clang.o.tmp': No such file or directory make[7]: *** [/home/acme/git/perf/tools/build/Makefile.build:101: /tmp/tmp.t53Qo38zci/util/c++/clang.o] Error 1 make[6]: *** [/home/acme/git/perf/tools/build/Makefile.build:139: c++] Error 2 make[5]: *** [/home/acme/git/perf/tools/build/Makefile.build:139: util] Error 2 make[5]: *** Waiting for unfinished jobs.... CC /tmp/tmp.t53Qo38zci/tests/thread-map.o - Arnaldo