Driver 470.239.06 Build Fails on Fedora 40

Latest Legacy driver 470.239.06 fails to build on Fedora 40. Driver built, installed and operated with same hardware running Fedora 39. Hardware is GeForce GT730 Kepler GK208 graphics card (not notebook) an Intel i7-975. The log file /var/log/nvidia-installer.log contains complaints like:

  1. error: #error wait_on_bit_lock() conftest failed!
  2. error: implicit declaration of function ‘phys_to_dma’; did you mean ‘nv_phys_to_dma’?
  3. error: implicit declaration of function ‘dma_is_direct’; did you mean ‘d_is_dir’
  4. … implicit decl… ‘acpi_bus_get_device’; … ‘acpi_is_pnp_device’?
  5. …implicit decl… ‘drm_gem_object_put_unlocked’
  6. … implicit decl… ‘set_memory_array_uc’; … ‘set_pages_array_uc’?
  7. … implicit decl… ‘acquire_console_sem’
  8. … implicit decl… ‘unsafe_follow_pfn’; … ‘nv_follow_pfn’?
  9. error: storage size of ‘ts’ i$not known — struct timespec ts;
    … and many more

I will attach a compressed copy of the nvidia_installer.log
nvidia-installer-2024.05.13.log.gz (33.3 KB)

Bump! Is anyone able to provide insight toward correcting this build failure?

Are you using the runfile installer or any repo?

Currently using just the runfile installer. I have not yet tried unpacking the sources and then noodling about to investigate the complaints by individual failed compilation items.

I notice there is a newer version of the legacy driver 470.256.02, but I have NOT tried building this driver on the system because I got a new graphics card - GeForce RTX 4060 - and am now trying to get it working. (See separate bug report.)