seems like a bug if binutils-libs is needed for Binary File Descriptor (BFD) library then I think it would be in the kernel-build eclassgrant123 wrote:Compiling gentoo-kernel-6.19.2 fails with 'fatal error: bfd.h: No such file or directory' unless I install binutils-libs.
Code: Select all
grep -n "BDEPEND=" /usr/portage/eclass/kernel-build.eclass -A 15
Hi, I'm not OP but I'm having the exact same issue. I noticed it when I tried to switch from gentoo-kernel-bin to gentoo-kernel. In my case, it compiled successfully the first time, but warned me about preserved libraries. When I tried to runturtles wrote:seems like a bug if binutils-libs is needed for Binary File Descriptor (BFD) library then I think it would be in the kernel-build eclassgrant123 wrote:Compiling gentoo-kernel-6.19.2 fails with 'fatal error: bfd.h: No such file or directory' unless I install binutils-libs.
What doesgive you?Code: Select all
grep -n "BDEPEND=" /usr/portage/eclass/kernel-build.eclass -A 15
Code: Select all
emerge -aqv @preserved-rebuildCode: Select all
/usr/portage/Interesting, my system is old what does this give you?:beastrabban wrote: Thedirectory does not seem to exist on my system. Is there any other information that I can provide to troubleshoot the issue?Code: Select all
/usr/portage/
Code: Select all
find $(portageq get_repo_path / gentoo) -name "kernel-build.eclass" Code: Select all
init=/sbin/openrc-init
-systemd -logind -elogind seatdI am NaN! I am a man!
Code: Select all
grep -n -A 15 "BDEPEND=" $(find $(portageq get_repo_path / gentoo) -name "kernel-build.eclass")Code: Select all
diff -u /usr/portage/eclass/kernel-build.eclass /usr/portage/eclass/kernel-build.eclass.new
--- /usr/portage/eclass/kernel-build.eclass 2025-11-23 11:42:32.000000000 -0800
+++ /usr/portage/eclass/kernel-build.eclass.new 2026-02-18 10:18:44.649954771 -0800
@@ -52,6 +52,7 @@
sys-devel/bison
sys-devel/flex
virtual/libelf
+ sys-libs/binutils-libs
arm? ( sys-apps/dtc )
arm64? ( sys-apps/dtc )
riscv? ( sys-apps/dtc )
Thanks I don't have a up to date system to reproduce and test on but I added my suggested patch idea to that bug.grknight wrote:Take note of Bug 970027 - sys-kernel/gentoo-sources-6.19.0 is missing headers for objtool build with gcc
