Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nvidia-drivers for latest kernel won't emerge. (Solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Featherfoot
l33t
l33t


Joined: 28 Dec 2002
Posts: 995
Location: Stuart, Florida

PostPosted: Thu Feb 21, 2019 12:43 am    Post subject: nvidia-drivers for latest kernel won't emerge. (Solved) Reply with quote

I have an Nvidia GeForce GTX 460 on my amd64 system. I just got a kernel update to linux-4.19.23-gentoo, updating in the usual way. l.e;

Code:
genkernel --oldconfig --dmraid all


This went fine. The next step is to recompile nvidia-drivers. This was version nvidia-drivers-390.87. It failed with the error message, " [-Werror=implicit-function-declaration]
ret = drm_mode_connector_attach_encoder(connector, encoder);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drm_connector_attach_encoder
"
I tried other versions of nvidia-drivers on my system (410.93 and 415.27) but they are masked. I assume that means there's a problem trying to use them.

Can you suggest how to proceed?

Code:

  x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/kernel/nvidia-drm/.nvidia-drm-fb.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -DCC_HAVE_ASM_GOTO -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=k8 -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -I/var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/kernel/common/inc -I/var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"390.87\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Wno-sign-compare -Wno-format-extra-args -Werror=undef -I/var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/kernel/nvidia-drm -UDEBUG -U_DEBUG -DNDEBUG -DNV_BUILD_MODULE_INSTANCES=0  -DMODULE  -DKBUILD_BASENAME='"nvidia_drm_fb"' -DKBUILD_MODNAME='"nvidia_drm"' -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/kernel/nvidia-drm/nvidia-drm-fb.o /var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/kernel/nvidia-drm/nvidia-drm-fb.c
   ./tools/objtool/objtool orc generate  --module --no-fp --retpoline "/var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/kernel/nvidia-drm/nvidia-drm-drv.o";
/var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/kernel/nvidia-drm/nvidia-drm-encoder.c: In function 'nv_drm_add_encoder':
/var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/kernel/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
  x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/kernel/nvidia-drm/.nvidia-drm-modeset.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -DCC_HAVE_ASM_GOTO -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=k8 -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -I/var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/kernel/common/inc -I/var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"390.87\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Wno-sign-compare -Wno-format-extra-args -Werror=undef -I/var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/kernel/nvidia-drm -UDEBUG -U_DEBUG -DNDEBUG -DNV_BUILD_MODULE_INSTANCES=0  -DMODULE  -DKBUILD_BASENAME='"nvidia_drm_modeset"' -DKBUILD_MODNAME='"nvidia_drm"' -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/kernel/nvidia-drm/nvidia-drm-modeset.o /var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/kernel/nvidia-drm/nvidia-drm-modeset.c
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:303: /var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/kernel/nvidia-drm/nvidia-drm-encoder.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/kernel/nvidia-drm/nvidia-drm-connector.c: In function 'nv_drm_connector_get_modes':
/var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/kernel/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[2]: *** [scripts/Makefile.build:303: /var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/kernel/nvidia-drm/nvidia-drm-connector.o] Error 1
   ./tools/objtool/objtool orc generate  --module --no-fp --retpoline "/var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/kernel/nvidia-drm/nvidia-drm-gem.o";
   ./tools/objtool/objtool orc generate  --module --no-fp --retpoline "/var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/kernel/nvidia-drm/nvidia-drm-fb.o";
   ./tools/objtool/objtool orc generate  --module --no-fp --retpoline "/var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/kernel/nvidia-drm/nvidia-drm-modeset.o";
make[1]: *** [Makefile:1520: _module_/var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/kernel] Error 2
make[1]: Leaving directory '/usr/src/linux-4.19.23-gentoo'
make: *** [Makefile:79: modules] Error 2
 * ERROR: x11-drivers/nvidia-drivers-390.87::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-390.87::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-390.87::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-390.87/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-390.87/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/kernel'
 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-390.87/work/'

>>> Failed to emerge x11-drivers/nvidia-drivers-390.87, Log file:

>>>  '/var/tmp/portage/x11-drivers/nvidia-drivers-390.87/temp/build.log'
bopper /usr/portage/x11-drivers
 #


Last edited by Featherfoot on Fri Feb 22, 2019 1:32 am; edited 1 time in total
Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1055
Location: Massachusetts USA

PostPosted: Thu Feb 21, 2019 1:09 am    Post subject: Reply with quote

From [SOLVED] nvidia-drivers-390.87 fails w/ kernel 4.19.
See
fedeliallalinea wrote:
I ported patch for gentoo try it
Back to top
View user's profile Send private message
Featherfoot
l33t
l33t


Joined: 28 Dec 2002
Posts: 995
Location: Stuart, Florida

PostPosted: Thu Feb 21, 2019 1:47 am    Post subject: Reply with quote

That's good to know.

Are there detailed instructions around somewhere where somebody who is avoiding keyworded software much less applying patches can make this happen?
Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1055
Location: Massachusetts USA

PostPosted: Thu Feb 21, 2019 6:19 pm    Post subject: Reply with quote

Put the patch into /etc/portage/patches/x11-drivers/nvidia-drivers-390.87
Back to top
View user's profile Send private message
Featherfoot
l33t
l33t


Joined: 28 Dec 2002
Posts: 995
Location: Stuart, Florida

PostPosted: Fri Feb 22, 2019 1:28 am    Post subject: Reply with quote

That fixed it!

Thank you.
I didn't know you could do that...
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 3695
Location: Germany

PostPosted: Sat Feb 23, 2019 3:21 pm    Post subject: Reply with quote

New compatible nvidia-drivers-390.116 Version is now in tree available.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum