Trouble installing legacy 470.xx Drivers | RPMFusion | kernel 6.10.3.200 | NVidia GPU

Hello, I can’t install drivers on my Fedora40, I have a Geforce gtx650 graphics card

2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h:629:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
2024/08/15 05:51:30 akmodsbuild:   629 |             NV_MEMDBG_ADD(ptr, size); \
2024/08/15 05:51:30 akmodsbuild:       |                                     ^
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/nvidia/os-interface.c:491:13: note: in expansion of macro ‘NV_KMALLOC_NO_OOM’
2024/08/15 05:51:30 akmodsbuild:   491 |             NV_KMALLOC_NO_OOM(*address, alloc_size);
2024/08/15 05:51:30 akmodsbuild:       |             ^~~~~~~~~~~~~~~~~
2024/08/15 05:51:30 akmodsbuild: In file included from /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/nvidia/os-mlock.c:14:
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h:521:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
2024/08/15 05:51:30 akmodsbuild:   521 |         NV_MEMDBG_ADD(ptr, size);
2024/08/15 05:51:30 akmodsbuild:       |                                 ^
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h: In function ‘nv_ioremap’:
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h:535:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
2024/08/15 05:51:30 akmodsbuild:   535 |         NV_MEMDBG_ADD(ptr, size);
2024/08/15 05:51:30 akmodsbuild:       |                                 ^
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/nvidia/os-interface.c: In function ‘os_queue_work_item’:
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h:549:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
2024/08/15 05:51:30 akmodsbuild:   549 |         NV_MEMDBG_ADD(ptr, size);
2024/08/15 05:51:30 akmodsbuild:       |                                 ^
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h:579:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
2024/08/15 05:51:30 akmodsbuild:   579 |         NV_MEMDBG_ADD(ptr, size);
2024/08/15 05:51:30 akmodsbuild:       |                                 ^
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h:614:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
2024/08/15 05:51:30 akmodsbuild:   614 |             NV_MEMDBG_ADD(ptr, size); \
2024/08/15 05:51:30 akmodsbuild:       |                                     ^
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/nvidia/os-interface.c:1022:5: note: in expansion of macro ‘NV_KMALLOC_ATOMIC’
2024/08/15 05:51:30 akmodsbuild:  1022 |     NV_KMALLOC_ATOMIC(oqd, sizeof(os_queue_data_t));
2024/08/15 05:51:30 akmodsbuild:       |     ^~~~~~~~~~~~~~~~~
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h: In function ‘nv_vmap’:
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h:666:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
2024/08/15 05:51:30 akmodsbuild:   666 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
2024/08/15 05:51:30 akmodsbuild:       |                                                   ^
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/nvidia/os-interface.c: In function ‘os_alloc_wait_queue’:
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h:607:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
2024/08/15 05:51:30 akmodsbuild:   607 |             NV_MEMDBG_ADD(ptr, size); \
2024/08/15 05:51:30 akmodsbuild:       |                                     ^
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/nvidia/os-interface.c:1869:5: note: in expansion of macro ‘NV_KMALLOC’
2024/08/15 05:51:30 akmodsbuild:  1869 |     NV_KMALLOC(*wq, sizeof(os_wait_queue));
2024/08/15 05:51:30 akmodsbuild:       |     ^~~~~~~~~~
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/nvidia/os-mlock.c: In function ‘nv_follow_pfn’:
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/nvidia/os-mlock.c:23:12: error: implicit declaration of function ‘follow_pfn’; did you mean ‘follow_pte’? [-Wimplicit-function-declaration]
2024/08/15 05:51:30 akmodsbuild:    23 |     return follow_pfn(vma, address, pfn);
2024/08/15 05:51:30 akmodsbuild:       |            ^~~~~~~~~~
2024/08/15 05:51:30 akmodsbuild:       |            follow_pte
2024/08/15 05:51:30 akmodsbuild: make[3]: *** [scripts/Makefile.build:244: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/nvidia/os-mlock.o] Error 1
2024/08/15 05:51:30 akmodsbuild: make[3]: *** Waiting for unfinished jobs....
2024/08/15 05:51:30 akmodsbuild: In file included from /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/nvidia/os-pci.c:14:
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h:521:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
2024/08/15 05:51:30 akmodsbuild:   521 |         NV_MEMDBG_ADD(ptr, size);
2024/08/15 05:51:30 akmodsbuild:       |                                 ^
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h: In function ‘nv_ioremap’:
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h:535:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
2024/08/15 05:51:30 akmodsbuild:   535 |         NV_MEMDBG_ADD(ptr, size);
2024/08/15 05:51:30 akmodsbuild:       |                                 ^
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h:549:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
2024/08/15 05:51:30 akmodsbuild:   549 |         NV_MEMDBG_ADD(ptr, size);
2024/08/15 05:51:30 akmodsbuild:       |                                 ^
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h:579:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
2024/08/15 05:51:30 akmodsbuild:   579 |         NV_MEMDBG_ADD(ptr, size);
2024/08/15 05:51:30 akmodsbuild:       |                                 ^
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h: In function ‘nv_vmap’:
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h:666:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
2024/08/15 05:51:30 akmodsbuild:   666 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
2024/08/15 05:51:30 akmodsbuild:       |                                                   ^
2024/08/15 05:51:30 akmodsbuild: In file included from /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/nvidia/os-registry.c:14:
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h:521:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
2024/08/15 05:51:30 akmodsbuild:   521 |         NV_MEMDBG_ADD(ptr, size);
2024/08/15 05:51:30 akmodsbuild:       |                                 ^
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h: In function ‘nv_ioremap’:
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h:535:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
2024/08/15 05:51:30 akmodsbuild:   535 |         NV_MEMDBG_ADD(ptr, size);
2024/08/15 05:51:30 akmodsbuild:       |                                 ^
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h:549:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
2024/08/15 05:51:30 akmodsbuild:   549 |         NV_MEMDBG_ADD(ptr, size);
2024/08/15 05:51:30 akmodsbuild:       |                                 ^
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h:579:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
2024/08/15 05:51:30 akmodsbuild:   579 |         NV_MEMDBG_ADD(ptr, size);
2024/08/15 05:51:30 akmodsbuild:       |                                 ^
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h: In function ‘nv_vmap’:
2024/08/15 05:51:30 akmodsbuild: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64/common/inc/nv-linux.h:666:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
2024/08/15 05:51:30 akmodsbuild:   666 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
2024/08/15 05:51:30 akmodsbuild:       |                                                   ^
2024/08/15 05:51:30 akmodsbuild: make[2]: *** [/usr/src/kernels/6.10.3-200.fc40.x86_64/Makefile:1946: /tmp/akmodsbuild.SCmodDg8/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.3-200.fc40.x86_64] Error 2
2024/08/15 05:51:30 akmodsbuild: make[1]: *** [Makefile:252: __sub-make] Error 2
2024/08/15 05:51:30 akmodsbuild: make[1]: Leaving directory '/usr/src/kernels/6.10.3-200.fc40.x86_64'
2024/08/15 05:51:30 akmodsbuild: make: *** [Makefile:80: modules] Error 2
2024/08/15 05:51:30 akmodsbuild: ошибка: Неверный код возврата из /var/tmp/rpm-tmp.a3waYF (%build)
2024/08/15 05:51:30 akmodsbuild: 
2024/08/15 05:51:30 akmodsbuild: RPM build errors:
2024/08/15 05:51:30 akmodsbuild:     Неверный код возврата из /var/tmp/rpm-tmp.a3waYF (%build)
2024/08/15 05:51:30 akmodsbuild: 
2024/08/15 05:51:30 akmods: Building rpms failed; see /var/cache/akmods/nvidia-470xx/470.256.02-1-for-6.10.3-200.fc40.x86_64.failed.log for details

Welcome to :fedora:

This looks to be an issue with the packaging of the 470.XX driver for the 6.10.x kernel.
You might want to reach out to the RPMFusion team

https://rpmfusion.org/ReportingBugs

Bugzilla for RPMFusion
https://bugzilla.rpmfusion.org/

You mention kernel 6.10.3, but show a build failure for 6.9.7.

I have the 470.xx module installed from rpmfusion on an old iMac with kernel 6.10.3, but have not yet checked that it actually works as nouveau handles most of my requirements:

% uname -r
6.10.3-200.fc40.x86_64
% dnf list installed | grep kernel-devel.\*6.10.3
kernel-devel.x86_64                                  6.10.3-200.fc40                     @updates                                  
kernel-devel-matched.x86_64                          6.10.3-200.fc40                     @updates
% dnf list installed | grep nvidia   
akmod-nvidia-470xx.x86_64                            3:470.256.02-1.fc40                 @rpmfusion-nonfree-updates                
kmod-nvidia-470xx.x86_64                             3:470.256.02-1.fc40                 @rpmfusion-nonfree-updates                
kmod-nvidia-470xx-6.9.11-200.fc40.x86_64.x86_64      3:470.256.02-1.fc40                 @@commandline                             
kmod-nvidia-470xx-6.9.12-200.fc40.x86_64.x86_64      3:470.256.02-1.fc40                 @@commandline                             
nvidia-gpu-firmware.noarch                           20240709-1.fc40                     @updates                                  
nvidia-settings-470xx.x86_64                         3:470.256.02-1.fc40                 @rpmfusion-nonfree-updates                
xorg-x11-drv-nvidia-470xx.x86_64                     3:470.256.02-1.fc40                 @rpmfusion-nonfree-updates                
xorg-x11-drv-nvidia-470xx-kmodsrc.x86_64             3:470.256.02-1.fc40                 @rpmfusion-nonfree-updates                
xorg-x11-drv-nvidia-470xx-libs.x86_64                3:470.256.02-1.fc40                 @rpmfusion-nonfree-updates

Please post relevant portions of /var/cache/akmods/nvidia-470xx/470.256.02-1-for-6.10.3-200.fc40.x86_4.failed.log (as pre-formatted text that others can find with web searches).

I am bumping this post to mention that I, too, can confirm that akmods will not build on 6.10.3 or 6.10.4, but my 6.9 kernel version still on my machine works fine:

2024/08/15 11:26:26 akmodsbuild: /tmp/akmodsbuild.0cGhPg53/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.4-100.fc39.x86_64/common/inc/nv-linux.h:666:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
2024/08/15 11:26:26 akmodsbuild: 666 | NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
2024/08/15 11:26:26 akmodsbuild: | ^
2024/08/15 11:26:26 akmodsbuild: make[2]: *** [/usr/src/kernels/6.10.4-100.fc39.x86_64/Makefile:1946: /tmp/akmodsbuild.0cGhPg53/BUILD/nvidia-470xx-kmod-470.256.02/_kmod_build_6.10.4-100.fc39.x86_64] Error 2
2024/08/15 11:26:26 akmodsbuild: make[1]: *** [Makefile:252: __sub-make] Error 2
2024/08/15 11:26:26 akmodsbuild: make[1]: Leaving directory ‘/usr/src/kernels/6.10.4-100.fc39.x86_64’
2024/08/15 11:26:26 akmodsbuild: make: *** [Makefile:80: modules] Error 2
2024/08/15 11:26:26 akmodsbuild: error: Bad exit status from /var/tmp/rpm-tmp.LfUVjE (%build)
2024/08/15 11:26:26 akmodsbuild:
2024/08/15 11:26:26 akmodsbuild: RPM build errors:
2024/08/15 11:26:26 akmodsbuild: Bad exit status from /var/tmp/rpm-tmp.LfUVjE (%build)
2024/08/15 11:26:26 akmodsbuild:
2024/08/15 11:26:26 akmods: Building rpms failed; see /var/cache/akmods/nvidia-470xx/470.256.02-1-for-6.10.4-100.fc39.x86_64.failed.log for details

1 Like

in his screenshot, the actual failure log is related to 6.10.3-200 … the 6.9 text you see above is related to the previous kernel version (which may also have problems if I am reading that correctly?).

Should be directing this to RPMFusion, they are not a part of Fedora and should have a bug report filed for them to look at.