Why is manual symlink to vmlinux in the kernel source required for module build of
![](https://seccdn.libravatar.org/avatar/4d153ac69db401eb419362f704048f81.jpg?s=120&d=mm&r=g)
Devs, Building kernel modules on an old 15.4 install, I get the warning: Skipping BTF generation for /home/david/dev/src-c/tmp/tst/kmgpio/gpioblink.ko due to unavailability of vmlinux Tracking the issue down, I ended up creating the symlink in the kernel source directory linux-5.14.21-150400.24.100-obj/x86_64/default: # ln -s /sys/kernel/btf/vmlinux The build proceeds fine then. My question is "is this normal to have to manually create the vmlinux symlink, and if not how should it be properly handled?" -- David C. Rankin, J.D.,P.E.
![](https://seccdn.libravatar.org/avatar/d44eef0af67eb8d1cea3abe443ba966a.jpg?s=120&d=mm&r=g)
Hello,
In the Message;
Subject : Why is manual symlink to vmlinux in the kernel source required for module build of
Message-ID : <802acdb3-0ec4-47ac-bfea-6f018d0ab67a@gmail.com>
Date & Time: Fri, 31 May 2024 20:13:15 -0500
[DCR] == "David C. Rankin"
![](https://seccdn.libravatar.org/avatar/9435667f7160374bc34a8600b686aecd.jpg?s=120&d=mm&r=g)
On 01.06.2024 04:13, David C. Rankin wrote:
Devs,
Building kernel modules on an old 15.4 install, I get the warning:
Skipping BTF generation for /home/david/dev/src-c/tmp/tst/kmgpio/gpioblink.ko due to unavailability of vmlinux
Tracking the issue down, I ended up creating the symlink in the kernel source directory linux-5.14.21-150400.24.100-obj/x86_64/default:
# ln -s /sys/kernel/btf/vmlinux
The build proceeds fine then. My question is "is this normal to have to manually create the vmlinux symlink, and if not how should it be properly handled?"
It is normal for upstream kernel which allows building of external modules without building of vmlinux first. For openSUSE I guess you could try bug report.
participants (3)
-
Andrei Borzenkov
-
David C. Rankin
-
Masaru Nomiya