Bug 15586 - pc_x86_64_bios_defconfig: Does not build Linux kernel due to missing header file
Summary: pc_x86_64_bios_defconfig: Does not build Linux kernel due to missing header file
Status: RESOLVED MOVED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-21 19:54 UTC by Jan-Benedict Glaw
Modified: 2024-06-15 15:09 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan-Benedict Glaw 2023-05-21 19:54:57 UTC
[build 2023-05-21 14:43:31]   /usr/bin/gcc -O2 -isystem /var/lib/laminar/run/buildroot-pc_x86_64_bios_defconfig/5/buildroot/output/host/include -L/var/lib/laminar/run/buildroot-pc_x86_64_bios_defconfig/5/buildroot/output/host/lib -Wl,-rpath,/var/lib/laminar/run/buildroot-pc_x86_64_bios_defconfig/5/buildroot/output/host/lib -Wp,-MD,/var/lib/laminar/run/buildroot-pc_x86_64_bios_defconfig/5/buildroot/output/build/linux-6.1.24/tools/objtool/arch/x86/.special.o.d -Wp,-MT,/var/lib/laminar/run/buildroot-pc_x86_64_bios_defconfig/5/buildroot/output/build/linux-6.1.24/tools/objtool/arch/x86/special.o -Werror -Wbad-function-cast -Wdeclaration-after-statement -Wformat-security -Wformat-y2k -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-system-headers -Wold-style-definition -Wpacked -Wredundant-decls -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wundef -Wwrite-strings -Wformat -Wno-type-limits -Wstrict-aliasing=3 -Wshadow -Wno-switch-default -Wno-switch-enum -Wno-packed -Wno-nested-externs -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu11 -Wdeclaration-after-statement -g -I/var/lib/laminar/run/buildroot-pc_x86_64_bios_defconfig/5/buildroot/output/build/linux-6.1.24/tools/include -I/var/lib/laminar/run/buildroot-pc_x86_64_bios_defconfig/5/buildroot/output/build/linux-6.1.24/tools/arch/x86/include/uapi -I/var/lib/laminar/run/buildroot-pc_x86_64_bios_defconfig/5/buildroot/output/build/linux-6.1.24/tools/arch/x86/include -I/var/lib/laminar/run/buildroot-pc_x86_64_bios_defconfig/5/buildroot/output/build/linux-6.1.24/tools/objtool/include -I/var/lib/laminar/run/buildroot-pc_x86_64_bios_defconfig/5/buildroot/output/build/linux-6.1.24/tools/objtool/arch/x86/include -DLIBELF_USE_DEPRECATED -I/var/lib/laminar/run/buildroot-pc_x86_64_bios_defconfig/5/buildroot/output/build/linux-6.1.24/tools/lib -D"BUILD_STR(s)=#s" -c -o /var/lib/laminar/run/buildroot-pc_x86_64_bios_defconfig/5/buildroot/output/build/linux-6.1.24/tools/objtool/arch/x86/special.o arch/x86/special.c
[build 2023-05-21 14:43:31] In file included from /var/lib/laminar/run/buildroot-pc_x86_64_bios_defconfig/5/buildroot/output/build/linux-6.1.24/tools/objtool/include/objtool/objtool.h:13,
[build 2023-05-21 14:43:31]                  from /var/lib/laminar/run/buildroot-pc_x86_64_bios_defconfig/5/buildroot/output/build/linux-6.1.24/tools/objtool/include/objtool/arch.h:11,
[build 2023-05-21 14:43:31]                  from /var/lib/laminar/run/buildroot-pc_x86_64_bios_defconfig/5/buildroot/output/build/linux-6.1.24/tools/objtool/include/objtool/check.h:11,
[build 2023-05-21 14:43:31]                  from /var/lib/laminar/run/buildroot-pc_x86_64_bios_defconfig/5/buildroot/output/build/linux-6.1.24/tools/objtool/include/objtool/special.h:10,
[build 2023-05-21 14:43:31]                  from arch/x86/special.c:4:
[build 2023-05-21 14:43:31] /var/lib/laminar/run/buildroot-pc_x86_64_bios_defconfig/5/buildroot/output/build/linux-6.1.24/tools/objtool/include/objtool/elf.h:10:10: fatal error: gelf.h: No such file or directory
[build 2023-05-21 14:43:31]    10 | #include <gelf.h>
[build 2023-05-21 14:43:31]       |          ^~~~~~~~
[build 2023-05-21 14:43:31] compilation terminated.
[build 2023-05-21 14:43:31] make[5]: *** [/var/lib/laminar/run/buildroot-pc_x86_64_bios_defconfig/5/buildroot/output/build/linux-6.1.24/tools/build/Makefile.build:97: /var/lib/laminar/run/buildroot-pc_x86_64_bios_defconfig/5/buildroot/output/build/linux-6.1.24/tools/objtool/arch/x86/special.o] Error 1
[build 2023-05-21 14:43:31] make[4]: *** [/var/lib/laminar/run/buildroot-pc_x86_64_bios_defconfig/5/buildroot/output/build/linux-6.1.24/tools/build/Makefile.build:139: arch/x86] Error 2
[build 2023-05-21 14:43:31] make[3]: *** [Makefile:54: /var/lib/laminar/run/buildroot-pc_x86_64_bios_defconfig/5/buildroot/output/build/linux-6.1.24/tools/objtool/objtool-in.o] Error 2
[build 2023-05-21 14:43:31] make[2]: *** [Makefile:73: objtool] Error 2
[build 2023-05-21 14:43:31] make[1]: *** [Makefile:1442: tools/objtool] Error 2
[build 2023-05-21 14:43:31] make[1]: Leaving directory '/var/lib/laminar/run/buildroot-pc_x86_64_bios_defconfig/5/buildroot/output/build/linux-6.1.24'
[build 2023-05-21 14:43:31] make: *** [package/pkg-generic.mk:293: /var/lib/laminar/run/buildroot-pc_x86_64_bios_defconfig/5/buildroot/output/build/linux-6.1.24/.stamp_built] Error 2
Comment 1 Yann E. MORIN 2024-06-15 15:09:53 UTC
Thank you for your report.

The issue tracker for the Buildroot project has been moved to
the Gitlab.com issue tracker:
    https://gitlab.com/buildroot.org/buildroot/-/issues

We are taking this opportunity to close old issues in this old
tracker. If you believe your issue is still relevant, please
open one in the new issue tracker.

Thank you!