Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6099651yba; Wed, 1 May 2019 06:09:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqynBvqjdgtbo/ZsZlJR4BrnOU5B/MxiWVZvzZOgr5sndkIYWf3OJXxHcJ5oU/iu9b5Dl9fL X-Received: by 2002:a63:4ce:: with SMTP id 197mr15609345pge.309.1556716148056; Wed, 01 May 2019 06:09:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556716148; cv=none; d=google.com; s=arc-20160816; b=lH3RuaRIoqG5GQlcXTAiDRLXm+sJczw16TJLNHvdSf+7iTAdx+yqMZzN5xe8tQ9ylo IIpY30LmgOQ+6yiiuJHER57NZqCNRx53GRXIJXQU3/GWoIxjgEYqwzqmAL4jmWsGUqy7 hqErrOzallJghEx4m9deYPMdKbWACFRxQ8EaG8CR8fQYgK/3RyxhDBEiCKavmB/SN7G8 u7tpKSKGfVmNMNW5lnHjN7ZKseeJ+7WOzH/b9uOM1N5WFzMV6sKFyIGVkrjhV3jYS58Q tFKp2vv4R73GbRHZhO8DwEKVLae9V9DtgMmvFgq8hjKfwRfgA+OekssA0ZXYuzyGGknj rHBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date:from:dkim-signature; bh=MUA2zuOrcYbdzVjIm+Q4TmiYMEwYU00gs3cBxPFeEbk=; b=IXXTGF/T9xSFvKpeBw0+l3stK4CYnkPVkRj/LgWz07HVs8YPmuE2rlkJUT+JK7Sn0K vc02WaxHOQjV7e6lfXYnQSnFYMFNyjQ8A2kIF3ANcYHbNWGxuqtD/mUW0lGz3YH4P7x4 twa5ArktVnuvHwtg21fMeOMud5oflg+U6aFrBQn5dFaBSAr6fS3BdevHbsX56AB1sfjb N2Jkk4brRT7JahqctvCRme7y5gg3BJh8h/JeFeCoOw1wmuuR3TuYSPfSH3RR6Aw/bmYJ rxFtdSMLkVVUotXu7rRupqgA7OJKCMpPf7OzDg6htpFoGwxXFklKj2N6OPY9MoSBjxiZ qH2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=c9wt94q2; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c13si41286517pgg.452.2019.05.01.06.08.50; Wed, 01 May 2019 06:09:08 -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=@gmail.com header.s=20161025 header.b=c9wt94q2; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726452AbfEANHz (ORCPT + 99 others); Wed, 1 May 2019 09:07:55 -0400 Received: from mail-yw1-f68.google.com ([209.85.161.68]:36864 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725993AbfEANHy (ORCPT ); Wed, 1 May 2019 09:07:54 -0400 Received: by mail-yw1-f68.google.com with SMTP id a62so8251052ywa.4 for ; Wed, 01 May 2019 06:07:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=MUA2zuOrcYbdzVjIm+Q4TmiYMEwYU00gs3cBxPFeEbk=; b=c9wt94q2GCP7+BKbmX6cuzScIhiUygh6Fyt894S9scsl9zG9G8trU+UPdIiAwonIeg me/5pYD7vM9bBtzLNJqW9fsVbCvmIMEvAr9fNCIOmfWVUB7pwvHyxMJ73oDRm9VrxJhb V+VTnlZcHn8aqMsDj30pRBh1o6FZ2ZmMwgfWouoM23tPc88GrSh0cYxgmrbSxrHBcj++ awOtNZXtjgciDgeyo1Vob8Y32IHwr7D/mMoUYQ26XuEupHEYYtP6pYRf0f7RgGVvVJAy /QQ8Sw/bIXqSOYPggludlD7luwgiHDEkes6IICGIlaLClwk/AIKhNMjyB4p+63mny6aL j0mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=MUA2zuOrcYbdzVjIm+Q4TmiYMEwYU00gs3cBxPFeEbk=; b=jOdA5uQU3JifMHLggFhY8GyfoANulH7FEPOurP9XRR/SmPgkZYTyT5t94ouSwXc/5k woYeJ+BsglfLENOtK2Y+5nJKwX9IHPzy000hI8JqxzaQp/0PrCRw4TCvQEW4Q34GrXQn uYJz+BtIx4udcia4gZ64q/0bMTg71ZL8rcDy997uefzCH3UdgCzAM6Typz7BmPremhcq PATYRIRTBjPLQg4BrRcksvikJoQlUyhWhmZXYgzTICSz42oHvg24hnGsLe22MUINO7J/ VggqPij330gH83lsnzo1zc06zmmJoA0hfIHvWmdpfyRNsO7g4/RSH4SveihD1jzKQHfm uuZQ== X-Gm-Message-State: APjAAAWDB9FEmvKMZFrMYt79n5C724uI03nvP8oX2xKM2TGDlOWm/Uvk EnfKBS7EQrRt22G80hv/DKc= X-Received: by 2002:a81:3a49:: with SMTP id h70mr20076639ywa.58.1556716073410; Wed, 01 May 2019 06:07:53 -0700 (PDT) Received: from quaco.ghostprotocols.net (adsl-173-228-226-134.prtc.net. [173.228.226.134]) by smtp.gmail.com with ESMTPSA id l143sm1209264ywb.77.2019.05.01.06.07.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 01 May 2019 06:07:52 -0700 (PDT) From: Arnaldo Carvalho de Melo X-Google-Original-From: Arnaldo Carvalho de Melo Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 5AE214111F; Wed, 1 May 2019 09:07:51 -0400 (EDT) Date: Wed, 1 May 2019 09:07:51 -0400 To: Thomas Backlund Cc: Song Liu , Linux List Kernel Mailing , Peter Zijlstra , Ingo Molnar Subject: Re: perf build broken in 5.1-rc7 Message-ID: <20190501130751.GB21436@kernel.org> References: <560abacf-da1d-7f55-755c-2086096bdf2c@mageia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Apr 30, 2019 at 04:31:14PM +0300, Thomas Backlund escreveu: > > Den 30-04-2019 kl. 16:06, skrev Song Liu: > > On Tue, Apr 30, 2019 at 12:55 AM Thomas Backlund wrote: > > > 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 > > > > > Hi Thomas, > > > > Which system are you running this test on? I would like to repro it in a VM. > > > > Thanks, > > Song > > > Mageia Cauldron currently stabilizing to become Mageia 7 in ~1 month. > > > Basesystem is: > > binutils-2.32-5.mga7 > (includes all fixes from upstream binutils-2_32-branch) > > gcc-8.3.1-0.20190419.2.mga7 > > glibc-2.29-7.mga7 > (includes all fixes from upstream glibc release/2.29/master branch up to > 2019-04-15 for now) > > > kernel-desktop-5.1.0-0.rc7.1.mga7 > kernel-userspace-headers-5.1.0-0.rc7.1.mga7 Ok, so the steps are: 1) the feature test, the small C program that we try to build is: [acme@quaco perf]$ cat tools/build/feature/test-disassembler-four-args.c // SPDX-License-Identifier: GPL-2.0 #include #include int main(void) { bfd *abfd = bfd_openr(NULL, NULL); disassembler(bfd_get_arch(abfd), bfd_big_endian(abfd), bfd_get_mach(abfd), abfd); return 0; } [acme@quaco perf]$ And here in my fedora29 system it ends up producing the following file, when built with: $ make O=/tmp/build/perf -C tools/perf install-bin [acme@quaco perf]$ cat /tmp/build/perf/feature/test-disassembler-four-args.make.output [acme@quaco perf]$ [acme@quaco perf]$ file /tmp/build/perf/feature/test-disassembler-four-args.bin /tmp/build/perf/feature/test-disassembler-four-args.bin: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=c9bd83db766a620c5cb6d756b0cd6991527641ff, not stripped, too many notes (256) [acme@quaco perf]$ ldd /tmp/build/perf/feature/test-disassembler-four-args.bin linux-vdso.so.1 (0x00007ffebc5f9000) libz.so.1 => /lib64/libz.so.1 (0x00007fed2da04000) libdl.so.2 => /lib64/libdl.so.2 (0x00007fed2d9fe000) libc.so.6 => /lib64/libc.so.6 (0x00007fed2d838000) /lib64/ld-linux-x86-64.so.2 (0x00007fed2da3e000) [acme@quaco perf]$ Meaning it built properly, so in this sytem the disassembler() function has indeed four args, so we end up with: [acme@quaco perf]$ grep disassembler /tmp/build/perf/FEATURE-DUMP feature-disassembler-four-args=1 [acme@quaco perf]$ Can you check the output for /tmp/build/perf/feature/test-disassembler-four-args.make.output in your system? And also check what is the prototype for the disassembler() routine on mageia7? Here I have: [acme@quaco perf]$ rpm -q binutils binutils-2.31.1-25.fc29.x86_64 [acme@quaco perf]$ Perhaps binutils 2.32 changed that prototype again and instead of falling back to using just one arg we need to use some other number of args, or even a different type for the N args it now maybe have? - Arnaldo