From 3b4369ef353873fa69b0ac7e8cb3f05a63222b60 Mon Sep 17 00:00:00 2001 From: Mikhail Novosyolov Date: Mon, 7 Nov 2022 17:52:17 +0300 Subject: [PATCH] BR libelf on x86_64: ``` DEBUG: + /usr/bin/make -O -j32 V=1 VERBOSE=1 CC=gcc ARCH=x86 V=1 -s all DEBUG: :1:10: fatal error: libelf.h: No such file or directory DEBUG: compilation terminated. DEBUG: In file included from /builddir/build/BUILD/kernel-x86_64/linux-6.1-rc4/tools/objtool/include/objtool/objtool.h:13, DEBUG: from /builddir/build/BUILD/kernel-x86_64/linux-6.1-rc4/tools/objtool/include/objtool/arch.h:11, DEBUG: from /builddir/build/BUILD/kernel-x86_64/linux-6.1-rc4/tools/objtool/include/objtool/check.h:11, DEBUG: from /builddir/build/BUILD/kernel-x86_64/linux-6.1-rc4/tools/objtool/include/objtool/special.h:10, DEBUG: from arch/x86/special.c:4: DEBUG: /builddir/build/BUILD/kernel-x86_64/linux-6.1-rc4/tools/objtool/include/objtool/elf.h:10:10: fatal error: gelf.h: No such file or directory DEBUG: 10 | #include DEBUG: | ^~~~~~~~ ``` --- kernel.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel.spec b/kernel.spec index 6f0a725..dcb726a 100644 --- a/kernel.spec +++ b/kernel.spec @@ -374,6 +374,7 @@ BuildRequires: zstd BuildRequires: uboot-tools %endif BuildRequires: kmod-devel +BuildRequires: pkgconfig(libelf) %ifarch x86_64 aarch64 BuildRequires: numa-devel %endif