--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: linux: Skipping BTF generation for /my/own/lkm.ko due to unavailability of vmlinux
- From: Thorsten Glaser <tg@mirbsd.de>
- Date: Wed, 24 Aug 2022 00:02:44 +0200
- Message-id: <166129216449.8112.13709521161545669950.reportbug@tglase.lan.tarent.de>
Package: linux-headers-5.19.0-trunk-amd64
Version: 5.19-1~exp1
Severity: normal
X-Debbugs-Cc: tg@mirbsd.de
In building an out-of-tree kernel module I wrote on 5.19 (to test
compatibility), I noticed a new error message.
/usr/lib/linux-kbuild-5.19/scripts/Makefile.modfinal emits the
message, and an inserted pwd;ls -l shows that the command looks
for existence of a “vmlinux” file (or symlinked) in its cwd
/usr/src/linux-headers-5.19.0-trunk-amd64 which belongs to the
linux-headers-*-$arch package.
sudo ln -s /boot/vmlinuz-5.19.0-trunk-amd64 /usr/src/linux-headers-5.19.0-trunk-amd64/vmlinux
brings me further. I now also have to install the pahole package,
which probably needs to be depended on by linux-kbuild-5.19 now,
but then I get:
libbpf: failed to get EHDR from vmlinux
Failed to parse base BTF 'vmlinux': -4001
What am I still missing?
Are these BTF files supposed to be generated for out-of-tree
modules in the first place? If not, I suggest skipping the
BTF [M] /my/own/lkm.ko
and the error message altogether instead.
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'buildd-unstable'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 5.10.0-10-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)
Versions of packages linux-headers-5.19.0-trunk-amd64 depends on:
ii linux-compiler-gcc-11-x86 5.18.5-1
ii linux-headers-5.19.0-trunk-common 5.19-1~exp1
ii linux-kbuild-5.19 5.19-1~exp1
linux-headers-5.19.0-trunk-amd64 recommends no packages.
linux-headers-5.19.0-trunk-amd64 suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Hi
This bug was filed for a (very) old kernel or the bug is old itself
without resolution. Maybe it was for a feature enablement which nobody
acted on. We are sorry we were not able to timely deal with this issue.
There are many open bugs for the src:linux package and thus we are
closing older bugs where it's unclear if they still occur in newer
versions and are still relevant to the reporter. For an overview see:
https://bugs.debian.org/src:linux .
If you can reproduce your issue with
- the current version in unstable/testing
- the latest kernel from backports
or, if it was a feature addition/wishlist and still consider it
relevant, then:
Please reopen the bug, see https://www.debian.org/Bugs/server-control
for details.
Please try to provide as much fresh details including kernel logs where
relevant. In particular were an issue is coupled with specific hardware we
might ask you to do additional debugging on your side as the owner of the
hardware.
Regards,
Salvatore
--- End Message ---