Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2139322imm; Sat, 16 Jun 2018 10:23:33 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKdRlpB99uYV+On5YKQzb6HcWBKnFYFR0+1hxNKTpuoZTIxXGxhk7EjOR7N6XDd5U6hYw06 X-Received: by 2002:a62:f551:: with SMTP id n78-v6mr7120789pfh.200.1529169813406; Sat, 16 Jun 2018 10:23:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529169813; cv=none; d=google.com; s=arc-20160816; b=Si+3RFKhTY/yjdbZ0veTrO5+jtWg7Nw/D28mz3SpY3GOUA+6vo2jlPjT7slkHLCBAc CWzAXv4Z+DXJJ+MKd8ALLKqSNO4gs2O8J52PO6/w34NHEgldweDj00mgwIzT0YRhZUMH schBVpmo2RwrAKpuqfFl7Q2FKyFUZw9zWiprvbECJp/uyjDdLRf5qMZ7tIlgmwhMHtpC c6ptudt37DwcoME/boVWBbYwcsXC4qwaCeSRWGIVsUFgp88hidhy0T0jz79/jo74W144 6ijsA45ZtPf+CjG5XOewSmf8Lic2isAjhGwlJJ3/x6XvYAv1d3XAQxgoaTYABxGSVP6y 7Xkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature :arc-authentication-results; bh=v6KY/HKYw2olasscIeCNWdDlY0/JDbIWGJZChuCvD+I=; b=HjeoSZ8NZ+F+NU/16Ccx2CdiVWVqQBD0tQjcnYCPakb8WwYjEbLjSWZnf5w3wr7MtY m4VI0cHd3PQ0iBaKcq3jki4KM2Jj6/w1aryCmjAQLoWe2t8QQ2JCerXvbj/s7szN0BBm O+DNqShEBOkmnNjvUoDbYKm3R+souIuNWBFGl6DMBj5oYwS6Vsc3fRf3cCWxgg2tRwKu lDHWpglxipV5AhWOmYLPgGleVv/SPpuVi7XmbUs239p9Rlbul8r9kpHHcARTFv7GvH+t RNN/3ksfi6r4WuP14Fo97+yra0mi5ZO0AErUiw7tEaDE5pDdlg3mprf7urG/R125+k+0 Wm8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=Q1bXYCOV; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=cq2aB5aO; 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=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f59-v6si10857592plf.500.2018.06.16.10.22.41; Sat, 16 Jun 2018 10:23:33 -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=@fb.com header.s=facebook header.b=Q1bXYCOV; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=cq2aB5aO; 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=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932594AbeFPRVj (ORCPT + 99 others); Sat, 16 Jun 2018 13:21:39 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:41086 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752814AbeFPRVh (ORCPT ); Sat, 16 Jun 2018 13:21:37 -0400 Received: from pps.filterd (m0109334.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w5GHHRKB027148; Sat, 16 Jun 2018 10:20:54 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=facebook; bh=v6KY/HKYw2olasscIeCNWdDlY0/JDbIWGJZChuCvD+I=; b=Q1bXYCOVtDM28pz8g/9GLmbfzboslzLMbH/7H2vd55Y3nOq/87yO0lHcJXpD0sVBgEDw /WJSGiinVfiVyYRavDhP8UkSkSwJEfVWUAfhtDAO8fTQuArZzWRIwBT1x6JOkmWcIUzX 0BFLljLsoTbH2BchyB943bqh5uBnCdEINFg= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 2jn1us8ern-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 16 Jun 2018 10:20:54 -0700 Received: from NAM05-CO1-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.28) with Microsoft SMTP Server (TLS) id 14.3.361.1; Sat, 16 Jun 2018 13:20:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=v6KY/HKYw2olasscIeCNWdDlY0/JDbIWGJZChuCvD+I=; b=cq2aB5aO3qCWqGoePaD9kEAX/p1kBmfD+K4/zOcinYjXXGzzvtOEnOVrwPhOOcLIBbThPuvak+agyIDMDZBg8cAlNVARMancUFTjPHMjt/bHRqzRh0b+BmBKs9kj9K7bu+J1K1PCQ1db7wwQPid2OgmkAi9vrH6FPtdoXc3JSO0= Received: from macbook-pro-52.dhcp.thefacebook.com (2620:10d:c090:180::1:58f6) by CY1PR15MB0078.namprd15.prod.outlook.com (2a01:111:e400:5849::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.19; Sat, 16 Jun 2018 17:20:46 +0000 Subject: Re: perf tools: LIBCLANGLLVM=1 build broken with llvm 7/clang 6 To: Arnaldo Carvalho de Melo , Wang Nan CC: Jiri Olsa , Linux Kernel Mailing List , Alexei Starovoitov , Martin KaFai Lau , Daniel Borkmann References: <20180616122608.GM30043@kernel.org> From: Yonghong Song Message-ID: <91a76633-54e4-984d-cb68-ca0445146b15@fb.com> Date: Sat, 16 Jun 2018 10:20:21 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180616122608.GM30043@kernel.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [2620:10d:c090:180::1:58f6] X-ClientProxiedBy: MWHPR04CA0098.namprd04.prod.outlook.com (2603:10b6:301:3a::39) To CY1PR15MB0078.namprd15.prod.outlook.com (2a01:111:e400:5849::28) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 92067ff3-053c-4bae-39c3-08d5d3ad8000 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(2017052603328)(7153060)(7193020);SRVR:CY1PR15MB0078; X-Microsoft-Exchange-Diagnostics: 1;CY1PR15MB0078;3:OV2qNX7OS9A1g6bTPH5yPvrYWTBMU8G27KaYB+p0mFL9dOKtzBKcfGFPM9bpvxuQL1UyQ68mxZGkDmeJe06rRpqsr08pVxcDFCDqDWj/Lfd5fvPbDLKgBytRHoYflWloOD5rAWP/4pfjHguR405Jso7uUMFpXMKVEr0mO34ZDk99DL/KHinFEdDf5+RhqteccZu8cyBFVK8fFRkgpzeGEywULRMfvQUo0WhH4xpYXxi1yGbkvTae7Wfy895YdhZR;25:EK7xrzrGYwskkQeZhwPmscCp7rGY1Giz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CFhoPioztxaTLzrramKTSe3OGknpqBjYOHrHFqJSPwErcrwbhyzu;4:liri7oNtsOUivJN2/cRuquWOZmayZmqvTqKbFANhC4ie8EHog0YOrkqYPbIluq+eAZYuKpS5PJD8C5krJnNjGyJb6oAEDlGb/SENy83FrSjNytFpKtYqIpHjMWvvx0lSYozsHuIPPSVnUV9r9kd1vx2pTJzD6sQ2JmYS2lQNnaQO0xs/28RzE9qke4ovE0bJ58rfy4jbiapQIpJiAdCdTtY8ZhOSZkE1TXQ6A0h8qFfzhyctnGxJaXzE9w6vnkllFTrbOQvCBJce8otKcv4xRw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231254)(11241501184)(944501410)(52105095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016);SRVR:CY1PR15MB0078;BCL:0;PCL:0;RULEID:;SRVR:CY1PR15MB0078; X-Forefront-PRVS: 0705EB1700 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(396003)(366004)(346002)(376002)(39860400002)(39380400002)(199004)(189003)(65956001)(65806001)(110136005)(58126008)(36756003)(23676004)(2486003)(52146003)(52396003)(76176011)(6116002)(31696002)(47776003)(53936002)(86362001)(386003)(52116002)(6506007)(53546011)(54906003)(6666003)(6512007)(305945005)(8676002)(2616005)(106356001)(16526019)(186003)(25786009)(6246003)(46003)(478600001)(2870700001)(7736002)(105586002)(64126003)(486006)(446003)(316002)(11346002)(8936002)(67846002)(68736007)(229853002)(65826007)(97736004)(6486002)(5660300001)(2906002)(81156014)(81166006)(31686004)(50466002)(4326008)(476003)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR15MB0078;H:macbook-pro-52.dhcp.thefacebook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: fb.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTFQUjE1TUIwMDc4OzIzOk9nOFZxSmo2OFArRklKK0dFQjNUcndnU3k3?= =?utf-8?B?NnFEeXB5S3dVZUl0OHc2VGVROFdibmZCekp2cmo1LzFOa0FONzVzQWpZbWZW?= =?utf-8?B?RExUM1JVZE9KSURnN0hYbGorQTZQVHdodU8yYm41dUhaVGE0cGdvbVRraTBI?= =?utf-8?B?blJmOVJINkNzbHdIdkJLYVdiejlPUGVSSDc5bUt2RWJjYlZjZ1N0RGtHV2x5?= =?utf-8?B?d3VDcUtNUGt1dEpqa3VIbjBmZnMyS3BONUppWVZrb0M2a2RLanBQdEZoSWQr?= =?utf-8?B?WmhEb2t1ditXVS9qZFJZU1pDdzgySlMzSzJFbnVQdkV1aEUvNXBaTzc0QVZ5?= =?utf-8?B?U1FGN1Nkd1czYnpJdzNUc2p1Z1dvTDN3OSs2dmFnQllGckF0b2cyanJLVzhJ?= =?utf-8?B?RmtlNm0razZRNS9XVUNBdFJ4OE1sSmxrdTZSSjlONjdLZWNSR3k4REkraHFs?= =?utf-8?B?bWVMcW03WmpGdWcvQU50ZjBMbmRTekFHRlI1K0F5SGtxWmFTRWcwUjZOenVy?= =?utf-8?B?eWgxc3hENHZ2bExJVS82RGtLZk8xYnBlRVd3OGxTUmxzQU9IQXRRNVBiOHhr?= =?utf-8?B?ZlQzY0ZibWc4enBSaXlmeE1LRElGNVEvWFVwcW9scGdNRXR2YjZYNHhxb1hT?= =?utf-8?B?elZ3Zm1RcWlkU1BUMVFXNmJYZnpySmlTa2gvOS9tM3dseVlsQzl4TTdRb1Fw?= =?utf-8?B?Z1JaQTFHY1c0Uk1SSFVQdjZvMzBHM1VhTFdnakdHM0dtamlEVEE4SVlObitx?= =?utf-8?B?c0Z5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F3YtPy9WKUjqlyez0mHNjRy75nEu0etIMYSZBklMBK77aooOW1tcMx/t2jnMlWusQmx7cvUEbw1OqCUh+ees1efoByfnNytvWLXs4Jz6ap3SLip4hmV48X7KsIUrR/Ho+LxM=;24:H0KXoKbCWkU0eWcZZI4xRvJGz/3AbpKDRmlvxlu6F2trifW3jeDodj3xnihiLbylWF6LFkKihYdHrWVH/xrBLx4YE+a1fQyE18lDt5nOmAU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR15MB0078;7:7gfDeF1O4vUf4l0ZMb+VVxrlXpwH5VvL0oz9NW850Knxw7+3Flki4GIqsns4gbV/or0elOfQzJ4YIMwsg0KbeVbUwEFQrccsG8IOuyXMj0ornz7hE9OnvyW+Tiw9mxVC+ymysyu3e2bWEyhA8G+0MomM9eO1bpDztn52i73RRjP/WflskWYQF/PBjd8qbUUKi3BKVcfyBpqc6dFrGrxPruLyTPLgYVG6nFEZqYOhsCrixmYx1J8nM1Nc/V/Sa+mg;20:aWCdc4syfwhyqaw/5xofuYGz6+1F2nFo/coCvSx/VExsS+YBdwjQN6UC2JdIMgP9TSoqPIMsAGC/LA85alb/HZ//89YK0Hx6ZHNwA7is443R+sXMDHFa6L9IHDqdU+m3BG3tkNK1FxRoeg2SJTJy84UnDnTpj1h6yp8OVrn/Em0= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2018 17:20:46.1285 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 92067ff3-053c-4bae-39c3-08d5d3ad8000 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR15MB0078 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-06-16_09:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/16/18 5:26 AM, Arnaldo Carvalho de Melo wrote: > 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 There is an interface change in llvm 7.0 (trunk) for function llvm::TargetMachine::addPassesToEmitFile. The following patch should fix the problem. -bash-4.2$ git diff diff --git a/tools/perf/util/c++/clang.cpp b/tools/perf/util/c++/clang.cpp index bf31cea..11dee58 100644 --- a/tools/perf/util/c++/clang.cpp +++ b/tools/perf/util/c++/clang.cpp @@ -146,8 +146,15 @@ getBPFObjectFromModule(llvm::Module *Module) raw_svector_ostream ostream(*Buffer); legacy::PassManager PM; - if (TargetMachine->addPassesToEmitFile(PM, ostream, - TargetMachine::CGFT_ObjectFile)) { + bool NotAdded; +#if CLANG_VERSION_MAJOR < 7 + NotAdded = TargetMachine->addPassesToEmitFile(PM, ostream, + TargetMachine::CGFT_ObjectFile); +#else + NotAdded = TargetMachine->addPassesToEmitFile(PM, ostream, nullptr, + TargetMachine::CGFT_ObjectFile); +#endif + if (!NotAdded) { llvm::errs() << "TargetMachine can't emit a file of this type\n"; return std::unique_ptr>(nullptr);; } -bash-4.2$ Will submit a formal patch soon. > > - Arnaldo >