mirror of
https://github.com/torvalds/linux.git
synced 2026-12-04 20:34:05 +00:00
kbuild: rpm-pkg: Add (elfutils-devel or libdw-devel) to BuildRequires
The dwarf.h header, which is included by
scripts/gendwarfksyms/gendwarfksyms.h, resides within elfutils-devel
or libdw-devel package.
This portion of the code is compiled under the condition that
CONFIG_GENDWARFKSYMS is enabled.
Consequently, add (elfutils-devel or libdw-devel) to BuildRequires to
prevent unforeseen compilation failures.
Fix follow possible error:
In file included from scripts/gendwarfksyms/cache.c:6:
scripts/gendwarfksyms/gendwarfksyms.h:6:10: fatal error: 'dwarf.h' file not found
6 | #include <dwarf.h>
| ^~~~~~~~~
Link: https://lore.kernel.org/all/[email protected]/
Fixes: f28568841a ("tools: Add gendwarfksyms")
Suggested-by: Petr Pavlu <[email protected]>
Signed-off-by: WangYuli <[email protected]>
Reviewed-by: Nicolas Schier <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
This commit is contained in:
committed by
Masahiro Yamada
parent
657f96cb7c
commit
5bd6bdd0f7
@@ -16,6 +16,7 @@ Source1: config
|
||||
Source2: diff.patch
|
||||
Provides: kernel-%{KERNELRELEASE}
|
||||
BuildRequires: bc binutils bison dwarves
|
||||
BuildRequires: (elfutils-devel or libdw-devel)
|
||||
BuildRequires: (elfutils-libelf-devel or libelf-devel) flex
|
||||
BuildRequires: gcc make openssl openssl-devel perl python3 rsync
|
||||
|
||||
|
||||
Reference in New Issue
Block a user