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" has written:
DCR> Devs,
DCR> Building kernel modules on an old 15.4 install, I get the warning:
DCR> Skipping BTF generation for
DCR> /home/david/dev/src-c/tmp/tst/kmgpio/gpioblink.ko
DCR> due to unavailability of vmlinux
[...]
DCR> The build proceeds fine then. My question is "is this normal to have to
DCR> manually create the vmlinux symlink, and if not how should it be properly
DCR> handled?"
Is there something wrong with the build structure?
In other words, skipping BTF generation is a problem that cannot be
ignored;
https://hatchjs.com/skipping-btf-generation-due-to-unavailability-of-vmlinux...
What are the consequences of skipping BTF generation?
Skipping BTF generation can have a number of consequences, including:
Reduced performance: BTF provides information that can be used
to optimize the performance of kernel code. By skipping BTF
generation, you may lose out on these optimizations.
Increased debugging difficulty: BTF can be used to debug
kernel problems. By skipping BTF generation, you may make it
more difficult to debug problems.
Increased security risk: BTF can be used to detect security
vulnerabilities. By skipping BTF generation, you may increase
your risk of being exploited by a security vulnerability.
I don't think the maintainer would do something like that?
Best Regards.
---
┏━━┓彡 野宮 賢 mail-to: m.nomiya+suse @ gmail.com
┃\/彡
┗━━┛ "Companies have come to view generative AI as a kind of monster that
must be fed at all costs―even if it isn’t always clear what exactly
that data is needed for or what those future AI systems might end up
doing."
-- Generative AI Is Making Companies Even More Thirsty for Your Data --