New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linuxPackages_testing.perf (5.1.0-rc7) fails to compile #60891
Comments
See also torvalds/linux@6987561 |
Easy fix: missing |
Newer versions of perf in Linux 5.1+ support disassembling and annotating eBPF programs inside the kernel. In order to do this, it uses libbfd's support for bpf disassembly. There are two parts: libopcodes and libbfd. The 'perf' build system seems to expect libopcodes/libbfd to go "hand in hand" -- always together, if one or the other is installed. If the build system detects libbfd is available, then an import of <dis-asm.h> is performed, but this fails since it wasn't in the buildInput. Fixing this should be an easy, backwards-compatible change. Fixes #60891, allowing linuxPackages_testing.perf to build again (currently kernel version 5.1.0-rc7). Signed-off-by: Austin Seipp <aseipp@pobox.com> (cherry picked from commit c8cb015)
Thank you so much @thoughtpolice from 3 years ago! |
Issue description
Steps to reproduce
nix build nixpkgs.linuxPackages_testing.perf
, f40a559Technical details
dis-asm.h
should come from binutils, so presumably we're missing something here...The text was updated successfully, but these errors were encountered: