You are not logged in.

#1 2025-11-03 09:12:43

nilpointer
Member
Registered: 2025-11-03
Posts: 8

[Resolved] nvidia-open-dkms-580.95.05 fails to build on kernel 6.17.6

kernel: 6.17.6arch1-1
gpu: RTX 5060 nvidia gpu
wm: Hyprland

i recently update my system with
```pacman -Syu```

the kernel updated to 6.17.6 and the nvidia-open-dkms update to 580.98.05(previously 580.82.09)

and it failed which led many unwanted behaviour in my system like:
constant screen freezing, kernel panics.
(for now i switched to linux-lts with no nvidia drivers)


output when dkms updated

dkms install --no-depmod nvidia/580.95.05 -k 6.17.6-arch1-1
Error! Bad return status for module build on kernel: 6.17.6-arch1-1 (x86_64)

i checked the build log and found out that gcc is failing to compile the open-dkms drivers for the kernel version 6.17.6

currently im on linux-lts. but i can utilize my gpu which older drivers doesnt support the gpu.(it doesnt detect the device)

so far i've ran:
hyprland nvidia setup (which worked before the update)
pacman -Syu
dkms autoinstall
i even rolled back to nvidia-dkms instead of open one but it doesnt detect my current gpu.

Last edited by nilpointer (2025-11-04 08:54:32)

Offline

#2 2025-11-03 10:07:12

nilpointer
Member
Registered: 2025-11-03
Posts: 8

Re: [Resolved] nvidia-open-dkms-580.95.05 fails to build on kernel 6.17.6

moderators my bad this is my first time posting can it be moved to kernel index

Offline

#3 2025-11-03 13:27:44

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,441
Website

Re: [Resolved] nvidia-open-dkms-580.95.05 fails to build on kernel 6.17.6

Mod note: Moving to Kernel Issues.


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#4 2025-11-03 14:06:37

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,171

Re: [Resolved] nvidia-open-dkms-580.95.05 fails to build on kernel 6.17.6

nilpointer wrote:

i checked the build log and found out that gcc is failing to compile the open-dkms drivers for the kernel version 6.17.6

https://bbs.archlinux.org/viewtopic.php?id=57855

Offline

#5 2025-11-03 14:09:18

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,052

Re: [Resolved] nvidia-open-dkms-580.95.05 fails to build on kernel 6.17.6

i checked the build log and found out that gcc is failing to compile the open-dkms drivers for the kernel version 6.17.6

Yeah, so much is kinda implied by the dkms error already.
Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855

Why are you not using https://archlinux.org/packages/extra/x8 … idia-open/ ?

Online

#6 2025-11-04 00:27:46

nilpointer
Member
Registered: 2025-11-03
Posts: 8

Re: [Resolved] nvidia-open-dkms-580.95.05 fails to build on kernel 6.17.6

Scimmia wrote:
nilpointer wrote:

i checked the build log and found out that gcc is failing to compile the open-dkms drivers for the kernel version 6.17.6

https://bbs.archlinux.org/viewtopic.php?id=57855


https://pastes.io/dkms-makelog-nvidia-5 … 1-1-x86_64

Offline

#7 2025-11-04 00:28:49

nilpointer
Member
Registered: 2025-11-03
Posts: 8

Re: [Resolved] nvidia-open-dkms-580.95.05 fails to build on kernel 6.17.6

seth wrote:

i checked the build log and found out that gcc is failing to compile the open-dkms drivers for the kernel version 6.17.6

Yeah, so much is kinda implied by the dkms error already.
Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855

Why are you not using https://archlinux.org/packages/extra/x8 … idia-open/ ?


im using nvidia-open which has nvidia-open-dkms (this is failing)

Offline

#8 2025-11-04 01:03:07

loqs
Member
Registered: 2014-03-06
Posts: 18,654

Re: [Resolved] nvidia-open-dkms-580.95.05 fails to build on kernel 6.17.6

nvidia/libspdm_hkdf.c:158:1: internal compiler error: in pop_scope, at c/c-decl.cc:1442
  158 | }
      | ^
0x24cc3b1 diagnostic_context::diagnostic_impl(rich_location*, diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag () [1], diagnostic_t)
	???:0
0x2520a98 internal_error(char const, ...)
	???:0
0x6e84f9 fancy_abort(char const*, int, char const*)
	???:0
0x6fc5c4 pop_file_scope()
	???:0
0x80e2da c_common_parse_file()
	???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See https://gitlab.archlinux.org/archlinux/packaging/packages/gcc/-/issues for instructions.
make[5]: *** [/usr/lib/modules/6.17.6-arch1-1/build/scripts/Makefile.build:287: nvidia/libspdm_hkdf.o] Error 1

Is the system in any way overclocked?

Offline

#9 2025-11-04 01:09:57

nilpointer
Member
Registered: 2025-11-03
Posts: 8

Re: [Resolved] nvidia-open-dkms-580.95.05 fails to build on kernel 6.17.6

loqs wrote:
nvidia/libspdm_hkdf.c:158:1: internal compiler error: in pop_scope, at c/c-decl.cc:1442
  158 | }
      | ^
0x24cc3b1 diagnostic_context::diagnostic_impl(rich_location*, diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag () [1], diagnostic_t)
	???:0
0x2520a98 internal_error(char const, ...)
	???:0
0x6e84f9 fancy_abort(char const*, int, char const*)
	???:0
0x6fc5c4 pop_file_scope()
	???:0
0x80e2da c_common_parse_file()
	???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See https://gitlab.archlinux.org/archlinux/packaging/packages/gcc/-/issues for instructions.
make[5]: *** [/usr/lib/modules/6.17.6-arch1-1/build/scripts/Makefile.build:287: nvidia/libspdm_hkdf.o] Error 1

Is the system in any way overclocked?


yes the ram has been overclocked but this was way before from the current update

Offline

#10 2025-11-04 07:34:08

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,052

Re: [Resolved] nvidia-open-dkms-580.95.05 fails to build on kernel 6.17.6

https://archlinux.org/packages/extra/x8 … idia-open/
Undo all overclocking, make sure you're not running OOM (do you have a swap partition or file) and try again - it's possible that you're hitting some gcc bug but extremely unilkely.
Alternatively

# command: 'make' -j12 IGNORE_PREEMPT_RT_PRESENCE=1 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=6.17.6-arch1-1 modules

cut back on the parallel jobs - try 8

Online

#11 2025-11-04 07:38:09

nilpointer
Member
Registered: 2025-11-03
Posts: 8

Re: [Resolved] nvidia-open-dkms-580.95.05 fails to build on kernel 6.17.6

seth wrote:

https://archlinux.org/packages/extra/x8 … idia-open/
Undo all overclocking, make sure you're not running OOM (do you have a swap partition or file) and try again - it's possible that you're hitting some gcc bug but extremely unilkely.
Alternatively

# command: 'make' -j12 IGNORE_PREEMPT_RT_PRESENCE=1 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=6.17.6-arch1-1 modules

cut back on the parallel jobs - try 8

thanks seth, i'll undo the overclocking and try again. as for swap partion yes i have a 4gb swap partition.

Last edited by nilpointer (2025-11-04 07:39:44)

Offline

#12 2025-11-04 08:34:31

nilpointer
Member
Registered: 2025-11-03
Posts: 8

Re: [Resolved] nvidia-open-dkms-580.95.05 fails to build on kernel 6.17.6

The overclocking was the issue. the drivers finally build and its working. weird that was the problem anyways we can close this issue. thanks everyone

Offline

#13 2025-11-04 08:43:18

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,052

Re: [Resolved] nvidia-open-dkms-580.95.05 fails to build on kernel 6.17.6

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

Board footer

Powered by FluxBB