Bug 33063 - nVidia driver dkms does not build anymore
Summary: nVidia driver dkms does not build anymore
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Kernel and Drivers maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-08 17:42 CEST by Juan Magallón
Modified: 2024-04-10 21:39 CEST (History)
0 users

See Also:
Source RPM: nvidia-current-550.54.14-2.mga10.nonfree.src.rpm
CVE:
Status comment:


Attachments

Description Juan Magallón 2024-04-08 17:42:33 CEST
With current Caludron (kernel 6.6.22, gcc-14) nVidia driver fails to build:

  CC [M]  /usr/src/nvidia-current-550.54.14-2.mga10.nonfree/nvidia-drm/nvidia-drm-gem.o
/usr/src/nvidia-current-550.54.14-2.mga10.nonfree/nvidia-drm/nvidia-drm-gem.c:115:16: error: initialization of ‘int (*)(struct drm_gem_object *, struct iosys_map *)’ from incompatible pointer type ‘void * (*)(struct drm_gem_object *)’ [-Wincompatible-pointer-types]
  115 |     .vmap    = nv_drm_gem_prime_vmap,
      |                ^~~~~~~~~~~~~~~~~~~~~
/usr/src/nvidia-current-550.54.14-2.mga10.nonfree/nvidia-drm/nvidia-drm-gem.c:115:16: note: (near initialization for ‘nv_drm_gem_funcs.vmap’)
/usr/src/nvidia-current-550.54.14-2.mga10.nonfree/nvidia-drm/nvidia-drm-gem.c:116:16: error: initialization of ‘void (*)(struct drm_gem_object *, struct iosys_map *)’ from incompatible pointer type ‘void (*)(struct drm_gem_object *, void *)’ [-Wincompatible-pointer-types]
  116 |     .vunmap  = nv_drm_gem_prime_vunmap,
      |                ^~~~~~~~~~~~~~~~~~~~~~~
/usr/src/nvidia-current-550.54.14-2.mga10.nonfree/nvidia-drm/nvidia-drm-gem.c:116:16: note: (near initialization for ‘nv_drm_gem_funcs.vunmap’)
make[3]: *** [scripts/Makefile.build:243: /usr/src/nvidia-current-550.54.14-2.mga10.nonfree/nvidia-drm/nvidia-drm-gem.o] Error 1
make[2]: *** [/usr/src/kernel-6.6.22-desktop-1.mga10/Makefile:1892: /usr/src/nvidia-current-550.54.14-2.mga10.nonfree] Error 2
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/kernel-6.6.22-desktop-1.mga10'
make: *** [Makefile:85: modules] Error 2


There is a new stable nvidia driver version (550.67).
Don't know if it is worth trying to fix current or updating to new (supposing it builds...).

TIA
Comment 1 Juan Magallón 2024-04-08 18:21:37 CEST
FWIW, I have built 550.67 locally, and builds and works fine.
TIA.
Comment 2 Lewis Smith 2024-04-10 21:39:24 CEST
Thank you for this helpful report.

Assigning to kernel/drivers.

Assignee: bugsquad => kernel


Note You need to log in before you can comment on or make changes to this bug.