-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nvidia driver fails to build on Linux kernels with CONFIG_DEBUG_INFO_BTF_MODULES #756
Comments
Renaming my /usr/src/linux/vmlinux binary will allow the build to complete, but this is a hack, as it prevents the BTF debuginfo from being generated. |
It probably should be noted that reproduction likely requires building against a locally built kernel. I assume that a packaged one won't include the vmlinux binary in /usr/src/linux. |
I made an internal fix for this that has not made its way into a public release. With that fix, you will not need to move |
Here is a commit with our internal fix for this issue: Binary-Eater@854449a |
This issue is faced only on newer pahole versions. Older pahole versions do not generate BTF for these modules at all, so an update is unlikely to solve. As the reporter is using a locally built kernel they can skip BTF generation in the meanwhile as well
|
Thanks again for this. Unfortunately, I did not get around to applying this today when I updated to 570.86.16. Without this patch, the build process will hang. With this patch, the build process will also hang. It also does not apply cleanly to 565.77. This issue made troubleshooting #773 "interesting". |
NVIDIA Open GPU Kernel Modules Version
565.77
Operating System and Version
Gentoo Linux
Kernel Release
6.12.6-gentoo-x86_64
Please confirm you are running a stable release kernel (e.g. not a -rc). We do not accept bug reports for unreleased kernels.
Build Command
emerge x11-drivers/nvidia-drivers
Terminal output/Build Log
build.log
More Info
That build used MAKEOPTS=-j16, so the command that caused the failure is not obvious. The command that fails is this:
This appears to be related to #149. The reporter there claimed using !buildflags on Arch avoided the problem, although I am not sure how that is possible because the kernel build system does not use regular build flags.
In any case, there is something in the module's DWARF information that pahole does not like. Upgrading to pahole 1.28, which is the latest version, does not resolve the issue.
The text was updated successfully, but these errors were encountered: