Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4604032yba; Tue, 30 Apr 2019 00:55:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmQAvRPkY2L0t9+nTASagYo3VOVSqNOhKZ4mgHADugo9iiORoluGugk+WCK06sqL+ucjCN X-Received: by 2002:a62:5582:: with SMTP id j124mr68962487pfb.53.1556610939115; Tue, 30 Apr 2019 00:55:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556610939; cv=none; d=google.com; s=arc-20160816; b=kgkNr+W6i0I6nk4cDjohio4PumcuPnEIASn9TvzSLOp57Jt2NapKqN7JGQPsj80Tsd 5Oto8uQg85jJtZtykxcEX3rkEqPz1xvour6c/etB7j4og02c86BhWvfYkKy8DJ/WP/4B TBT1+LNnuKIZhP/1NgGOxo5Im7bAvvlHaoQPjEUZEVmP8cxZd3uGQV6jBaCjm/h/CoDx 0rp+H/lPA2+urxmrOeoTDUFm6gDQsl6R+O8o0yC1QOqhyjftYEH8jC9DUBlTTOjwCw/N BVbGdxL1MWjUZLPgMFJt4b4bFAARp+e0YKwjXZup/925hmJBr5kTRXqv3yNnVf/E/nNC gm0A== 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:date:message-id :references:cc:to:from:subject; bh=tLmpUGi8gAfQ6iTy2+Hw84feIRi4Fb1t2TdnPUNVwVE=; b=DwIq9m3BcNk8BPBH1e0kIMOfndorSdFD5+tdjUhwcrFRV9pY+7tfbICeYKqAS2z48j skXFInh0LvKinD5rlaMUsyNwwypfghLqC8bzkJX3Pel2tXG5VXispDgS+JBboi8Sm/Xi JK18nClkuI7e8GwaYFRuvMWbC2FWOFhape+J9shQYEKp01tSlcJCXaCpjyc/DobQ9dVC ZGv65AN57B8bapaLCB/q0SiAMy7gz2L5CXMxRKD4l1ep/pIfcQMaNB3hIlL6kSgWS/9V C54lgZ1V5Zc1F8TII/Le41zOPXTVEszwEONfiGanJEUgFU2ZBFHwLGbJz4qsWI7dSR9H achA== 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 q4si35705123plr.376.2019.04.30.00.55.23; Tue, 30 Apr 2019 00:55:39 -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 S1726378AbfD3HxT (ORCPT + 99 others); Tue, 30 Apr 2019 03:53:19 -0400 Received: from mx1.yrkesakademin.fi ([85.134.45.194]:32202 "EHLO mx1.yrkesakademin.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725554AbfD3HxS (ORCPT ); Tue, 30 Apr 2019 03:53:18 -0400 Subject: Re: perf build broken in 5.1-rc7 From: Thomas Backlund To: Linux List Kernel Mailing CC: Peter Zijlstra , , References: <560abacf-da1d-7f55-755c-2086096bdf2c@mageia.org> Message-ID: Date: Tue, 30 Apr 2019 10:53:14 +0300 MIME-Version: 1.0 In-Reply-To: <560abacf-da1d-7f55-755c-2086096bdf2c@mageia.org> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-WatchGuard-Spam-ID: str=0001.0A0C0204.5CC7FEEC.0078,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-WatchGuard-Spam-Score: 0, clean; 0, virus threat unknown X-WatchGuard-Mail-Client-IP: 85.134.45.194 X-WatchGuard-Mail-From: tmb@mageia.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Den 30-04-2019 kl. 10:26, skrev Thomas Backlund: > > Building perf in 5.1-rc5/6/7 fails: > > > Build start: > > > ?make -s -C tools/perf NO_PERF_READ_VDSO32=1 NO_PERF_READ_VDSOX32=1 > WERROR=0 NO_LIBUNWIND=1 HAVE_CPLUS_DEMANGLE=1 NO_GTK2=1 NO_STRLCPY=1 > NO_BIONIC=1 NO_JVMTI=1 prefix=/usr lib=lib64 all > ? BUILD:?? Doing 'make -j32' parallel build > ? HOSTCC?? fixdep.o > ? HOSTLD?? fixdep-in.o > ? LINK???? fixdep > Warning: Kernel ABI header at 'tools/arch/x86/include/uapi/asm/vmx.h' > differs from latest version at 'arch/x86/include/uapi/asm/vmx.h' > diff -u tools/arch/x86/include/uapi/asm/vmx.h > arch/x86/include/uapi/asm/vmx.h > > Auto-detecting system features: > ...???????????????????????? dwarf: [ on? ] > ...??????????? dwarf_getlocations: [ on? ] > ...???????????????????????? glibc: [ on? ] > ...????????????????????????? gtk2: [ on? ] > ...????????????????????? libaudit: [ on? ] > ...??????????????????????? libbfd: [ on? ] > ...??????????????????????? libelf: [ on? ] > ...?????????????????????? libnuma: [ on? ] > ...??????? numa_num_possible_cpus: [ on? ] > ...?????????????????????? libperl: [ on? ] > ...???????????????????? libpython: [ on? ] > ...????????????????????? libslang: [ on? ] > ...???????????????????? libcrypto: [ on? ] > ...???????????????????? libunwind: [ on? ] > ...??????????? libdw-dwarf-unwind: [ on? ] > ...????????????????????????? zlib: [ on? ] > ...????????????????????????? lzma: [ on? ] > ...???????????????????? get_cpuid: [ on? ] > ...?????????????????????????? bpf: [ on? ] > ...??????????????????????? libaio: [ on? ] > ...??????? disassembler-four-args: [ OFF ] > > Makefile.config:473: No sys/sdt.h found, no SDT events are defined, > please install systemtap-sdt-devel or systemtap-sdt-dev > Makefile.config:853: No libbabeltrace found, disables 'perf data' CTF > format support, please install libbabeltrace-dev[el]/libbabeltrace-ctf-dev > > > And breaks with: > > > CC?????? ui/setup.o > util/annotate.c: In function 'symbol__disassemble_bpf': > util/annotate.c:1767:29: error: incompatible type for argument 1 of > 'disassembler' > ? disassemble = disassembler(bfdf); > ???????????????????????????? ^~~~ > In file included from util/annotate.c:1689: > /usr/include/dis-asm.h:325:63: note: expected 'enum bfd_architecture' > but argument is of type 'bfd *' {aka 'struct bfd *'} > ?extern disassembler_ftype disassembler (enum bfd_architecture arc, > ???????????????????????????????????????? ~~~~~~~~~~~~~~~~~~~~~~^~~ > util/annotate.c:1767:16: error: too few arguments to function > 'disassembler' > ? disassemble = disassembler(bfdf); > ??????????????? ^~~~~~~~~~~~ > In file included from util/annotate.c:1689: > /usr/include/dis-asm.h:325:27: note: declared here > ?extern disassembler_ftype disassembler (enum bfd_architecture arc, > ?????????????????????????? ^~~~~~~~~~~~ > ? CC?????? arch/x86/util/header.o > ? CC?????? arch/x86/util/tsc.o > ? CC?????? arch/x86/util/pmu.o > mv: cannot stat 'util/.annotate.o.tmp': No such file or directory > ? CC?????? bench/futex-requeue.o > ? CC?????? arch/x86/util/kvm-stat.o > make[4]: *** > [/work/rpmbuild/BUILD/kernel-x86_64/linux-5.0/tools/build/Makefile.build:97: > util/annotate.o] Error 1 > make[4]: *** Waiting for unfinished jobs.... > ? CC?????? util/build-id.o > > > And I forgot... Reverting: From 6987561c9e86eace45f2dbb0c564964a63f4150a Mon Sep 17 00:00:00 2001 From: Song Liu Date: Mon, 11 Mar 2019 22:30:48 -0700 Subject: perf annotate: Enable annotation of BPF programs Makes it build again. -- Thomas