You are not logged in.

#1 2025-02-07 00:22:42

eli173
Member
Registered: 2025-02-03
Posts: 3

[SOLVED] dkms build issue after normal update: gcc seg faults

Hi Folks,

For the first time in nearly 6 years I'm staring down an issue that I can't seem to resolve. I recently updated about a week ago and found myself with dkms builds failing, exiting with status 10:

:: Synchronizing package databases...
 core downloading...
 extra downloading...
 community downloading...
 multilib downloading...
 archzfs downloading...
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (1) nvidia-open-dkms-570.86.16-2

Total Installed Size:  100.19 MiB

checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
installing nvidia-open-dkms...
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Install DKMS modules
==> dkms install --no-depmod nvidia/570.86.16 -k 6.13.1-arch1-1

Error! Bad return status for module build on kernel: 6.13.1-arch1-1 (x86_64)
Consult /var/lib/dkms/nvidia/570.86.16/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/570.86.16 -k 6.13.1-arch1-1' exited 10

checking the make.log, I see this:

... 
 [ nvidia            ]  CC           generated/g_objsweng_nvoc.c
during RTL pass: combine
kapi/src/nvkms-kapi.c: In function ‘AllocateDevice’:
kapi/src/nvkms-kapi.c:892:1: internal compiler error: Segmentation fault
  892 | }
      | ^
 [ nvidia            ]  CC           generated/g_os_desc_mem_nvoc.c
 [ nvidia            ]  CC           generated/g_objtmr_nvoc.c
 [ nvidia            ]  CC           generated/g_os_nvoc.c
 [ nvidia            ]  CC           generated/g_p2p_api_nvoc.c
0x1f95016 internal_error(char const*, ...)
	???:0
0xd2be09 reg_used_between_p(rtx_def const*, rtx_insn const*, rtx_insn const*)
	???: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[1]: *** [Makefile:220: _out/Linux_x86_64/nvkms-kapi.o] Error 1
make[1]: *** Waiting for unfinished jobs....

... more compiling ...

[ nvidia            ]  CC           ../common/nvswitch/kernel/ls10/smbpbi_ls10.c
during GIMPLE pass: pre
../common/nvswitch/kernel/ls10/discovery_ls10.c: In function ‘nvswitch_process_discovery_ls10’:
../common/nvswitch/kernel/ls10/discovery_ls10.c:1294:1: internal compiler error: Segmentation fault
 1294 | nvswitch_process_discovery_ls10
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 [ nvidia            ]  CC           ../common/nvswitch/kernel/ls10/soe_ls10.c
0x1f95016 internal_error(char const*, ...)
	???:0
0xe0a005 get_ref_base_and_extent(tree_node*, poly_int<1u, long>*, poly_int<1u, long>*, poly_int<1u, long>*, bool*)
	???:0
0xebf86d stmt_may_clobber_ref_p_1(gimple*, ao_ref*, bool)
	???: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[1]: *** [Makefile:203: _out/Linux_x86_64/discovery_ls10.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/var/lib/dkms/nvidia/570.86.16/build/src/nvidia'
make: *** [Makefile:34: src/nvidia/_out/Linux_x86_64/nv-kernel.o] Error 2

# exit code: 2
# elapsed time: 00:00:11

I attempted to fix this by booting the most recent arch live image, deleting all non-core packages and starting fresh, but that did not fix dkms. I am currently running the vanilla kernel with nvidia-open, which works, but I usually run zen (and lts, as needed), with zfs supported compiled in from the archzfs repository for a drive I share between FreeBSD and Arch. Any thoughts or ideas? I'd like to try to resolve this without a full reinstall. Maybe some config file somewhere is crufty, but I don't see any unaddressed .pacnew's.

edit: I should mention this happens for every dkms module I try, which makes me think it's a gcc issue. I noticed the glibc issue with Discord (which I am also encountering) on the front page. Not sure if it's related.

Thanks!

Last edited by eli173 (2025-02-08 18:12:29)

Offline

#2 2025-02-07 09:12:08

gromit
Administrator
From: Germany
Registered: 2024-02-10
Posts: 1,523
Website

Re: [SOLVED] dkms build issue after normal update: gcc seg faults

Does the issue happen reproducibly?

Offline

#3 2025-02-07 16:17:45

hans_kruse
Member
Registered: 2025-02-07
Posts: 1

Re: [SOLVED] dkms build issue after normal update: gcc seg faults

Yes this is reproduceable. I have the same issue when installing linux-headers

Offline

#4 2025-02-07 16:58:20

eli173
Member
Registered: 2025-02-03
Posts: 3

Re: [SOLVED] dkms build issue after normal update: gcc seg faults

Gave it a go this morning after running pacman -Syu and it happened again for me with nvidia-open-dkms. I don't have any other systems to try this on.

Offline

#5 2025-02-08 15:10:48

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,086

Re: [SOLVED] dkms build issue after normal update: gcc seg faults

kapi/src/nvkms-kapi.c:892:1: internal compiler error: Segmentation fault

https://bbs.archlinux.org/viewtopic.php … 5#p2222725
Also Ryzen?

Offline

#6 2025-02-08 18:11:10

eli173
Member
Registered: 2025-02-03
Posts: 3

Re: [SOLVED] dkms build issue after normal update: gcc seg faults

Welp, yep that was it.

I had just updated my bios and I guess I accidentally enabled game boost (MSI X570 Gamin Plus motherboard). Disabled that and now the dkms modules are compiling fine. THANK YOU FOR THE HINT!

Offline

Board footer

Powered by FluxBB