-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
6.2rc1 dkms is failing to build #429
Comments
Have you tried disabling asynchronous-unwind-tables in src/nvidia-modeset/Makefile? The patch below also address SLS and RETHUNK warnings. diff --git a/src/nvidia-modeset/Makefile b/src/nvidia-modeset/Makefile
index 9ef3c62..a6e3dc7 100644
--- a/src/nvidia-modeset/Makefile
+++ b/src/nvidia-modeset/Makefile
@@ -140,8 +140,11 @@ ifeq ($(TARGET_ARCH),x86_64)
CONDITIONAL_CFLAGS += $(call TEST_CC_ARG, -fcf-protection=branch)
endif
CONDITIONAL_CFLAGS += $(call TEST_CC_ARG, -fno-jump-tables)
+ CONDITIONAL_CFLAGS += $(call TEST_CC_ARG, -fno-asynchronous-unwind-tables)
CONDITIONAL_CFLAGS += $(call TEST_CC_ARG, -mindirect-branch=thunk-extern)
CONDITIONAL_CFLAGS += $(call TEST_CC_ARG, -mindirect-branch-register)
+ CONDITIONAL_CFLAGS += $(call TEST_CC_ARG, -mharden-sls=all)
+ CONDITIONAL_CFLAGS += $(call TEST_CC_ARG, -mfunction-return=thunk-extern)
endif
CFLAGS += $(CONDITIONAL_CFLAGS)
diff --git a/src/nvidia/Makefile b/src/nvidia/Makefile
index b7ca09b..dc747bd 100644
--- a/src/nvidia/Makefile
+++ b/src/nvidia/Makefile
@@ -164,6 +164,8 @@ ifeq ($(TARGET_ARCH),x86_64)
CONDITIONAL_CFLAGS += $(call TEST_CC_ARG, -fno-jump-tables)
CONDITIONAL_CFLAGS += $(call TEST_CC_ARG, -mindirect-branch-register)
CONDITIONAL_CFLAGS += $(call TEST_CC_ARG, -mindirect-branch=thunk-extern)
+ CONDITIONAL_CFLAGS += $(call TEST_CC_ARG, -mharden-sls=all)
+ CONDITIONAL_CFLAGS += $(call TEST_CC_ARG, -mfunction-return=thunk-extern)
endif
CFLAGS += $(CONDITIONAL_CFLAGS) |
Actually I already got nvidia-dkms patched for 6.2.
The rethunk part is not needed to get fixed for now. So far it also works without the above patch. I think nvidia will fix this with their new driver hopefully. |
this patch fixes also the not-open driver sources |
Yes, I mainly made it for the closed drivers in my case. But should work for both. :) |
leave the "should" it is working on my laptop ;) thanks `root@ghost:~# nvidia-smi +-----------------------------------------------------------------------------+ |
news ? |
Its fixed in |
thanks |
It works but for some reasons it seemed to have skipped the dkms installation even if I specified --dkms in the install string `uname -a +-----------------------------------------------------------------------------+ |
NVIDIA Open GPU Kernel Modules Version
525.60.11
Operating System and Version
CachyOS (archlinux based)
Kernel Release
6.2.rc1
Build Command
Closed and open drivers are failing when building dkms.
Terminal output/Build Log
More Info
The 6.2 rc1 Kernel got released on sunday and nvidia-dkms is not building anymore correctly.
Also there are many warnings about the rethunks:
Related commit from kernel:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/drm/drm_mode_config.h?id=7c99616e3fe7f35fe25bf6f5797267da29b4751e
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/gpu/drm/drm_edid.c?id=90b575f52c6ab35979968e2e4d9cbd9f1eb3901c
The text was updated successfully, but these errors were encountered: