Bug 6850

Summary: Kernel module fails to build with GCC 14 - incompatible pointer types
Product: Fedora Reporter: Sopy <contact>
Component: nvidia-kmodAssignee: Nicolas Chauvet <kwizart>
Status: RESOLVED FIXED    
Severity: minor CC: contact, leigh123linux, leigh123linux
Priority: P5    
Version: f40   
Hardware: x86_64   
OS: GNU/Linux   
namespace:
Attachments: Build fail log

Description Sopy 2024-01-24 11:14:10 CET
Created attachment 2538 [details]
Build fail log

Found someone having the same issue on nvidia forums they have also made a patch.
https://forums.developer.nvidia.com/t/nvidia-modules-build-failure-with-upcoming-gcc-14-and-recent-kernels-due-to-misfiring-conftest-sh-test-heads-up/279072

To my understanding builds of NVIDIA kernel module version 545.29.06 fail with gcc-14 due to an incompatible pointer types error in kernel/nvidia-drm/nvidia-drm-gem.c. The issue is linked to the renaming of 'dma_buf_map' to 'iosys_map' in recent Linux kernels.

I have attached my module build log, if that may prove useful.
Comment 1 leigh scott 2024-01-24 14:07:54 CET
I wont address this before F40 beta release (12/03/2024).