You are not logged in.

#1 2025-05-11 09:36:58

Airyy
Member
Registered: 2025-05-11
Posts: 3

[solved] nvidia-535xx-dkms fails to build

So i updated my system like normal using

sudo pacman -Syu

and then after the next reboot my nvidia drivers just broke.

The dkms module fails to build using this command:

sudo dkms build nvidia/535.247.01

This is what it says:

Sign command: /usr/lib/modules/6.7.2-arch1-1/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module(s).......(bad exit status: 2)
Failed command:
'make' -j12 IGNORE_PREEMPT_RT_PRESENCE=1 NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' KERNEL_UNAME=6.7.2-arch1-1 modules

Error! Bad return status for module build on kernel: 6.7.2-arch1-1 (x86_64)
Consult /var/lib/dkms/nvidia/535.247.01/build/make.log for more information.

make.log:
https://pastebin.com/Z5JZLkHN

uname -r
6.7.2-arch1-1

Last edited by Airyy (2025-05-13 09:14:12)

Offline

#2 2025-05-11 10:27:23

BS86
Member
Registered: 2022-11-03
Posts: 58

Re: [solved] nvidia-535xx-dkms fails to build

the kernel you are using is 1,5 years old, you certainly did not do a regular update but a partial update or using a severly outdated mirror.

Make sure your mirror list is up to date and do a full system update

Last edited by BS86 (2025-05-11 10:28:16)

Offline

#3 2025-05-11 10:55:49

Airyy
Member
Registered: 2025-05-11
Posts: 3

Re: [solved] nvidia-535xx-dkms fails to build

BS86 wrote:

the kernel you are using is 1,5 years old, you certainly did not do a regular update but a partial update or using a severly outdated mirror.

Make sure your mirror list is up to date and do a full system update

I have tried a bunch of different kernels, none of the ones i tried are working

Offline

#4 2025-05-11 12:05:14

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,661

Re: [solved] nvidia-535xx-dkms fails to build

What all kernels do you have, and how?

Online

#5 2025-05-11 12:08:02

seth
Member
Registered: 2012-09-03
Posts: 63,551

Re: [solved] nvidia-535xx-dkms fails to build

Please post the make.log for a kernel that's not already rotting.
The original problem is probably w/ gcc15.

Offline

#6 2025-05-13 09:13:52

Airyy
Member
Registered: 2025-05-11
Posts: 3

Re: [solved] nvidia-535xx-dkms fails to build

seth wrote:

Please post the make.log for a kernel that's not already rotting.
The original problem is probably w/ gcc15.

I had completely missed the gcc warning/error,
I downgraded gcc and that solved the problem. Thanks!

Offline

#7 2025-05-13 10:58:55

seth
Member
Registered: 2012-09-03
Posts: 63,551

Re: [solved] nvidia-535xx-dkms fails to build

Downgrading gcc and gcc-lbs in isolation is no solution to this.
You end up silently breaking a bunch of stuff (that depends on gcc-libs) and also kernel and modules need to be compiled w/ the same compiler.
There's a gcc15 patch that you'd in doubt have to manually apply.

Offline

#8 2025-05-13 12:05:40

BS86
Member
Registered: 2022-11-03
Posts: 58

Re: [solved] nvidia-535xx-dkms fails to build

he is still using Kernel 6.7.2 - it's a miracle his system is still booting anyway.

Offline

#9 2025-05-13 12:09:37

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,661

Re: [solved] nvidia-535xx-dkms fails to build

https://wiki.archlinux.org/title/System … nsupported

Congratulations, your system is now in an unsupported and unsupportable state. Be sure to mention this when asking for any kind of help with anything.

Last edited by Scimmia (2025-05-13 12:11:59)

Online

#10 2025-05-13 12:11:11

seth
Member
Registered: 2012-09-03
Posts: 63,551

Re: [solved] nvidia-535xx-dkms fails to build

Edit, was reply to

BS86 wrote:

he is still using Kernel 6.7.2 - it's a miracle his system is still booting anyway.

I have tried a bunch of different kernels, none of the ones i tried are working

Though using 6.7.x  is actually fine-ish to the point where you now actually have to use gcc14 to compile the module, but downgrading gcc-libs will run you into other problems.
=> https://archlinux.org/packages/extra/x86_64/gcc14/

Except it doesn't explain why he was rebuilding nvidia tbw:

and then after the next reboot my nvidia drivers just broke.
The dkms module fails to build using this command:

Last edited by seth (2025-05-13 12:12:24)

Offline

Board footer

Powered by FluxBB