Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 673602 - DKMS build of nvidia-drivers-390.87 with kernel 4.19 - /var/lib/dkms/nvidia/390.87/build/nvidia-drm/nvidia-drm-encoder.c:219:11: error: implicit declaration of function ‘drm_mode_connector_attach_encoder’; did you mean ‘drm_connector_attach_encoder’?
Summary: DKMS build of nvidia-drivers-390.87 with kernel 4.19 - /var/lib/dkms/nvidia/3...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-23 04:51 UTC by aesycos
Modified: 2019-02-21 16:31 UTC (History)
0 users

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


Attachments
patch for nvidia-driver-390.87 (nvidia-drivers-390.87-kernel-4.19.patch,1.59 KB, patch)
2018-12-23 04:51 UTC, aesycos
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description aesycos 2018-12-23 04:51:50 UTC
Created attachment 558390 [details, diff]
patch for nvidia-driver-390.87

/var/lib/dkms/nvidia/390.87/build/nvidia-drm/nvidia-drm-encoder.c:219:11: error: implicit declaration of function ‘drm_mode_connector_attach_encoder’; did you mean ‘drm_connector_attach_encoder’? [-Werror=implicit-function-declaration]
     ret = drm_mode_connector_attach_encoder(connector, encoder);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           drm_connector_attach_encoder
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/kernels/4.19.2-300.fc29.x86_64/scripts/Makefile.build:305: /var/lib/dkms/nvidia/390.87/build/nvidia-drm/nvidia-drm-encoder.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/var/lib/dkms/nvidia/390.87/build/nvidia-drm/nvidia-drm-connector.c: In function ‘nv_drm_connector_get_modes’:
/var/lib/dkms/nvidia/390.87/build/nvidia-drm/nvidia-drm-connector.c:229:9: error: implicit declaration of function ‘drm_mode_connector_update_edid_property’; did you mean ‘drm_connector_update_edid_property’? [-Werror=implicit-function-declaration]
         drm_mode_connector_update_edid_property(
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         drm_connector_update_edid_property
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/kernels/4.19.2-300.fc29.x86_64/scripts/Makefile.build:305: /var/lib/dkms/nvidia/390.87/build/nvidia-drm/nvidia-drm-connector.o] Error 1
make[2]: *** [/usr/src/kernels/4.19.2-300.fc29.x86_64/Makefile:1521: _module_/var/lib/dkms/nvidia/390.87/build] Error 2
make[2]: Leaving directory '/usr/src/kernels/4.19.2-300.fc29.x86_64'
make[1]: *** [Makefile:146: sub-make] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.19.2-300.fc29.x86_64'
make: *** [Makefile:79: modules] Error 2
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2018-12-23 23:20:26 UTC
/var/lib/dkms/nvidia/390.87/build/nvidia-drm/nvidia-drm-encoder.c

I am not sure Gentoo supports DKMS. Try x11-drivers/nvidia-drivers and it will tell you this:


    if use kernel_linux && kernel_is ge 4 19; then
        ewarn "Gentoo supports kernels which are supported by NVIDIA"
        ewarn "which are limited to the following kernels:"
        ewarn "<sys-kernel/gentoo-sources-4.19"
        ewarn "<sys-kernel/vanilla-sources-4.19"
Comment 2 aesycos 2018-12-23 23:47:50 UTC
I'm using Gentoo sources 4.19 and then Nvidia driver does not compile and needs a patch to compile successfully. I'm confused on your response
Comment 3 Grant Edwards 2019-02-21 16:31:29 UTC
I don't understand why this patch can't be included in the ebuild?

https://github.com/fedeliallalinea/gentoo-patches/blob/master/x11-drivers/nvidia-drivers-390.87/nvidia-drivers-390.87-kernel-4.19.patch