Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

535, 545, 550 fail to build with GCC14 #597

Closed
1 task done
flukejones opened this issue Jan 31, 2024 · 6 comments
Closed
1 task done

535, 545, 550 fail to build with GCC14 #597

flukejones opened this issue Jan 31, 2024 · 6 comments
Labels
build-problem NV-Triaged An NVBug has been created for dev to investigate

Comments

@flukejones
Copy link

NVIDIA Open GPU Kernel Modules Version

535, 545, 550

Operating System and Version

Fedora rawhide (fedora 40 testing)

Kernel Release

6.6, 6.7

Please confirm you are running a stable release kernel (e.g. not a -rc). We do not accept bug reports for unreleased kernels.

  • I am running on a stable kernel release.

Build Command

NVIDIA<version>.run

Terminal output/Build Log

conftest4394.c: In function 'conftest_drm_gem_object_vmap_has_map_arg':
conftest4394.c:24:46: error: passing argument 2 of 'obj->funcs->vmap' from incompatible pointer type [-Wincompatible-pointer-types]
   24 |                 return obj->funcs->vmap(obj, map);
      |                                              ^~~
      |                                              |
      |                                              struct dma_buf_map *
conftest4394.c:24:46: note: expected 'struct iosys_map *' but argument is of type 'struct dma_buf_map *'

More Info

The bug is in the conftest.sh

See 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 for more info as it affect open plus closed driver

@aritger
Copy link
Collaborator

aritger commented Jan 31, 2024

Thanks for the pointer to that forum post. I've filed NVIDIA internal bug 4478534 to track it. Hopefully we can resolve this soon.

@mtijanic mtijanic added the NV-Triaged An NVBug has been created for dev to investigate label Mar 14, 2024
@scaronni
Copy link

550.76 and 550.78 build fine on my Fedora systems with GCC 14.

@flukejones
Copy link
Author

flukejones commented May 18, 2024

550.78 is failing with:

   /home/luke/Downloads/NVIDIA-Linux-x86_64-550.78/kernel-open/nvidia/os-mlock.c: In function 'nv_follow_pfn':
   /home/luke/Downloads/NVIDIA-Linux-x86_64-550.78/kernel-open/nvidia/os-mlock.c:42:12: error: implicit declaration of function 'follow_pfn'; did you mean 'follow_pte'? [-Wimplicit-function-declaration]
      42 |     return follow_pfn(vma, address, pfn);
         |            ^~~~~~~~~~
         |            follow_pte

kernel 6.9.0

@flukejones
Copy link
Author

@aritger
Copy link
Collaborator

aritger commented May 20, 2024

Thanks for the pointer on follow_pfn. We're aware of that and it will be fixed in a future release.

I also think that is unrelated to the originally reported problem here (interaction with -Werror=incompatible-pointer-types).

@flukejones
Copy link
Author

Closing as fixed recently

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-problem NV-Triaged An NVBug has been created for dev to investigate
Projects
None yet
Development

No branches or pull requests

4 participants