Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 706774 - x11-drivers/nvidia-drivers-440.44-r1 with kernel 5.5 - .../work/kernel/nvidia-drm/nvidia-drm-fb.h:30:10: fatal error: drm/drmP.h: No such file or directory
Summary: x11-drivers/nvidia-drivers-440.44-r1 with kernel 5.5 - .../work/kernel/nvidia...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
: 708208 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-01-27 20:42 UTC by Jeroen Roovers (RETIRED)
Modified: 2020-02-04 12:07 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch file (kernel-5.5.patch,12.39 KB, patch)
2020-02-04 08:04 UTC, Silvio
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2020-01-27 20:42:40 UTC
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
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2020-01-27 20:43:19 UTC
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
Comment 2 Micke Eriksson 2020-01-28 11:51:45 UTC
No solution??
Comment 3 milan hodoscek 2020-01-28 16:55:41 UTC
(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
Comment 4 O. William McClung 2020-01-28 17:04:55 UTC
I can confirm that this patch compiles nvidia-drivers on my box.
Comment 5 Silvio 2020-02-04 08:04:04 UTC
Created attachment 611550 [details, diff]
Patch file

I confirm the patch works for me.
Comment 6 Silvio 2020-02-04 08:06:37 UTC
(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
Comment 7 Larry the Git Cow gentoo-dev 2020-02-04 10:11:47 UTC
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(+)
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2020-02-04 12:07:05 UTC
*** Bug 708208 has been marked as a duplicate of this bug. ***