[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220622181918.ykrs5rsnmx3og4sv@alap3.anarazel.de>
Date: Wed, 22 Jun 2022 11:19:18 -0700
From: Andres Freund <andres@...razel.de>
To: linux-kernel@...r.kernel.org, bpf@...r.kernel.org,
Quentin Monnet <quentin@...valent.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>
Subject: init_disassemble_info() signature changes causes compile failures
Hi,
binutils changed the signature of init_disassemble_info(), which now causes
perf and bpftool to fail to compile (e.g. on debian unstable).
Relevant binutils commit: https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=60a3da00bd5407f07d64dff82a4dae98230dfaac
util/annotate.c: In function ‘symbol__disassemble_bpf’:
util/annotate.c:1765:9: error: too few arguments to function ‘init_disassemble_info’
1765 | init_disassemble_info(&info, s,
| ^~~~~~~~~~~~~~~~~~~~~
In file included from util/annotate.c:1718:
/usr/include/dis-asm.h:472:13: note: declared here
472 | extern void init_disassemble_info (struct disassemble_info *dinfo, void *stream,
| ^~~~~~~~~~~~~~~~~~~~~
with equivalent failures in
tools/bpf/bpf_jit_disasm.c
tools/bpf/bpftool/jit_disasm.c
The fix is easy enough, add a wrapper around fprintf() that conforms to the
new signature.
However I assume the necessary feature test and wrapper should only be added
once? I don't know the kernel stuff well enough to choose the right structure
here.
Attached is my local fix for perf. Obviously would need work to be a real
solution.
Greetings,
Andres Freund
View attachment "perf-compile-bfd.diff" of type "text/x-diff" (924 bytes)
Powered by blists - more mailing lists