In file included from /home/portage/x11-drivers/nvidia-drivers-440.44-r1/work/kernel/nvidia-drm/nvidia-drm-drv.c:27: /home/portage/x11-drivers/nvidia-drivers-440.44-r1/work/kernel/nvidia-drm/nvidia-drm-fb.h:30:10: fatal error: drm/drmP.h: No such file or directory 30 | #include <drm/drmP.h> | ^~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:266: /home/portage/x11-drivers/nvidia-drivers-440.44-r1/work/kernel/nvidia-drm/nvidia-drm-drv.o] Error 1 make[1]: *** [Makefile:1693: /home/portage/x11-drivers/nvidia-drivers-440.44-r1/work/kernel] Error 2 make[1]: Leaving directory '/usr/src/linux-5.5.0-gentoo' make: *** [Makefile:81: modules] Error 2 * ERROR: x11-drivers/nvidia-drivers-440.44-r1::gentoo failed (compile phase): * emake failed
commit 4e98f871bcffa322850c73d22c66bbd7af2a0374 Author: Sam Ravnborg <sam@ravnborg.org> Date: Mon Oct 7 19:12:24 2019 +0200 drm: delete drmP.h + drm_os_linux.h There is finally no more users left in the kernel of drmP.h and drm_os_linux.h (drmP.h was the only user left). Delete the header files and delete the corresponding todo entry. When we started this quest there was more than 700 users of drmP.h. And drmP.h was a huge cover-it-all header file. Daniel Vetter is the one that followed the work from start to the end and in between many people have contributed to the removal process - thanks to everyone! Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Sean Paul <sean@poorly.run> Reviewed-by: Lyude Paul <lyude@redhat.com> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Cc: Maxime Ripard <mripard@kernel.org> Cc: Sean Paul <sean@poorly.run> Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20191007171224.1581-3-sam@ravnborg.org
No solution??
(In reply to Micke Eriksson from comment #2) > No solution?? there is a working solution (at least for my 1050Ti with CUDA) from: https://devtalk.nvidia.com/default/topic/1068332/linux/nvidia-driver-does-not-build-on-linux-v5-5-release-candidate-kernel/ basically you can do the following and it works: 1. wget -O kernel-5.5.patch https://gitlab.com/snippets/1923197/raw 2, copy kernel-5.5.patch to /etc/portage/patches/x11-drivers/nvidia-drivers-440.44-r1 3. emerge -v nvidia-drivers no editing needed just create /etc/portage/patches/x11-drivers/nvidia-drivers-440.44-r1 folder
I can confirm that this patch compiles nvidia-drivers on my box.
Created attachment 611550 [details, diff] Patch file I confirm the patch works for me.
(In reply to milan hodoscek from comment #3) > (In reply to Micke Eriksson from comment #2) > > No solution?? > > there is a working solution (at least for my 1050Ti with CUDA) from: > > https://devtalk.nvidia.com/default/topic/1068332/linux/nvidia-driver-does- > not-build-on-linux-v5-5-release-candidate-kernel/ > > basically you can do the following and it works: > > 1. wget -O kernel-5.5.patch https://gitlab.com/snippets/1923197/raw > > 2, copy kernel-5.5.patch to > /etc/portage/patches/x11-drivers/nvidia-drivers-440.44-r1 > > 3. emerge -v nvidia-drivers > > no editing needed just create > /etc/portage/patches/x11-drivers/nvidia-drivers-440.44-r1 folder Easier: 1) mkdir -p /etc/portage/patches/x11-drivers/nvidia-drivers-440.44-r1 2) cd /etc/portage/patches/x11-drivers/nvidia-drivers-440.44-r1 3) wget -O kernel-5.5.patch https://gitlab.com/snippets/1923197/raw 4) emerge -1v nvidia-drivers
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74f07099be6bdd792785158faad4ca2bea783cc3 commit 74f07099be6bdd792785158faad4ca2bea783cc3 Author: Jeroen Roovers <jer@gentoo.org> AuthorDate: 2020-02-04 10:11:16 +0000 Commit: Jeroen Roovers <jer@gentoo.org> CommitDate: 2020-02-04 10:11:44 +0000 x11-drivers/nvidia-drivers: Version 440.59 Package-Manager: Portage-2.3.87, Repoman-2.3.20 Closes: https://bugs.gentoo.org/show_bug.cgi?id=706774 Signed-off-by: Jeroen Roovers <jer@gentoo.org> x11-drivers/nvidia-drivers/Manifest | 3 + .../nvidia-drivers/nvidia-drivers-440.59.ebuild | 577 +++++++++++++++++++++ 2 files changed, 580 insertions(+)
*** Bug 708208 has been marked as a duplicate of this bug. ***