From a12305070f7e66b872cd1b9a9eb00cb621eb1e78 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 24 Aug 2022 22:29:41 +0100 Subject: [PATCH] eztrace: use binutils-2.38 until upstream is ported Without the change eztrace build fails on binutils-2.39 due to API change: ../pptrace/arch/x86_64/hijack.c: In function 'check_instructions': ../pptrace/arch/x86_64/hijack.c:62:3: error: too few arguments to function 'init_disassemble_info' 62 | init_disassemble_info ( &i, NULL, dummy_print ); | ^~~~~~~~~~~~~~~~~~~~~ --- pkgs/development/tools/profiling/EZTrace/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/profiling/EZTrace/default.nix b/pkgs/development/tools/profiling/EZTrace/default.nix index 41b343cdf1c5..e05e61f60339 100644 --- a/pkgs/development/tools/profiling/EZTrace/default.nix +++ b/pkgs/development/tools/profiling/EZTrace/default.nix @@ -5,8 +5,10 @@ libelf, libiberty, zlib, - libbfd, - libopcodes, + # Once https://gitlab.com/eztrace/eztrace/-/issues/41 + # is released we can switch to latest binutils. + libbfd_2_38, + libopcodes_2_38, buildPackages, autoreconfHook }: @@ -23,7 +25,7 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ gfortran autoreconfHook ]; - buildInputs = [ libelf libiberty zlib libbfd libopcodes ]; + buildInputs = [ libelf libiberty zlib libbfd_2_38 libopcodes_2_38 ]; meta = with lib; { description = "Tool that aims at generating automatically execution trace from HPC programs";