Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Failed to emerge nvidia-drivers with lastest git-sources
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Fulgurance
l33t
l33t


Joined: 15 Feb 2017
Posts: 604

PostPosted: Sun Dec 24, 2017 10:51 pm    Post subject: Failed to emerge nvidia-drivers with lastest git-sources Reply with quote

Hello, i have emerged lastest git-sources, but when i re-emerge modules for new kernel, i have this error:
Code:
fulgurance@MSI-GS73VR-6RF /usr/src/linux $ sudo eselect kernel list
Mot de passe : 
Available kernel symlink targets:
  [1]   linux-4.14.7-gentoo
  [2]   linux-4.14.8-gentoo-r1 *
  [3]   linux-4.15-rc5
fulgurance@MSI-GS73VR-6RF /usr/src/linux $ sudo eselect kernel set 3
fulgurance@MSI-GS73VR-6RF /usr/src/linux $ sudo make modules_prepare
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CHK     scripts/mod/devicetable-offsets.h
fulgurance@MSI-GS73VR-6RF /usr/src/linux $ sudo emerge --ask @module-rebuild

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] app-emulation/virtualbox-modules-5.2.4
[ebuild   R    ] sys-power/bbswitch-0.8-r1
[ebuild   R    ] x11-drivers/nvidia-drivers-387.34







  x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work/vboxdrv/common/log/.logrel.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include -I/usr/src/linux-4.15-rc5/arch/x86/include -I./arch/x86/include/generated  -I/usr/src/linux-4.15-rc5/include -I./include -I/usr/src/linux-4.15-rc5/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-4.15-rc5/include/uapi -I./include/generated/uapi -include /usr/src/linux-4.15-rc5/include/linux/kconfig.h  -I/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work/vboxdrv -I/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work/vboxdrv -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-PIE -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=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -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 -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 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=2048 -fno-stack-protector -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -include /var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work/vboxdrv/include/VBox/SUPDrvMangling.h -fno-omit-frame-pointer -fno-pie  -I/usr/src/linux/include  -I/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work/vboxdrv/  -I/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work/vboxdrv/include  -I/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work/vboxdrv/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DSUPDRV_WITH_RELEASE_LOGGER -Wno-declaration-after-statement -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS  -DMODULE  -DKBUILD_BASENAME='"logrel"'  -DKBUILD_MODNAME='"vboxdrv"' -c -o /var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work/vboxdrv/common/log/logrel.o /var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work/vboxdrv/common/log/logrel.c
/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work/vboxdrv/r0drv/linux/timer-r0drv-linux.c: In function ‘VBoxHost_RTTimerCreateEx’:
/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work/vboxdrv/r0drv/linux/timer-r0drv-linux.c:1588:13: error: implicit declaration of function ‘init_timer_pinned’; did you mean ‘init_timer_key’? [-Werror=implicit-function-declaration]
             init_timer_pinned(&pTimer->aSubTimers[iCpu].u.Std.LnxTimer);
             ^~~~~~~~~~~~~~~~~
             init_timer_key
/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work/vboxdrv/r0drv/linux/timer-r0drv-linux.c:1592:52: error: ‘struct timer_list’ has no member named ‘data’
             pTimer->aSubTimers[iCpu].u.Std.LnxTimer.data        = (unsigned long)&pTimer->aSubTimers[iCpu];
                                                    ^
/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work/vboxdrv/r0drv/linux/timer-r0drv-linux.c:1593:65: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
             pTimer->aSubTimers[iCpu].u.Std.LnxTimer.function    = rtTimerLinuxStdCallback;
                                                                 ^
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-4.15-rc5/scripts/Makefile.build:311: /var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work/vboxdrv/r0drv/linux/timer-r0drv-linux.o] Error 1
make[4]: *** Waiting for unfinished jobs....
   ./tools/objtool/objtool orc generate --no-fp  "/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work/vboxdrv/common/err/RTErrConvertFromErrno.o";
   ./tools/objtool/objtool orc generate --no-fp  "/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work/vboxdrv/common/err/errinfo.o";
   ./tools/objtool/objtool orc generate --no-fp  "/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work/vboxdrv/common/log/logellipsis.o";
   ./tools/objtool/objtool orc generate --no-fp  "/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work/vboxdrv/common/err/RTErrConvertToErrno.o";
   ./tools/objtool/objtool orc generate --no-fp  "/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work/vboxdrv/common/checksum/ipv4.o";
   ./tools/objtool/objtool orc generate --no-fp  "/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work/vboxdrv/common/log/logrel.o";
   ./tools/objtool/objtool orc generate --no-fp  "/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work/vboxdrv/common/log/log.o";
make[3]: *** [/usr/src/linux-4.15-rc5/Makefile:1502: _module_/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work/vboxdrv] Error 2
make[3]: Leaving directory '/usr/src/linux-4.15-rc5'
make[2]: *** [Makefile:146: sub-make] Error 2
make[2]: Leaving directory '/usr/src/linux-4.15-rc5'
make[1]: *** [/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work/vboxdrv/Makefile.include.footer:101: vboxdrv] Error 2
make[1]: Leaving directory '/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work/vboxdrv'
make: *** [Makefile:49: all] Error 2
 * ERROR: app-emulation/virtualbox-modules-5.2.4::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=app-emulation/virtualbox-modules-5.2.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/virtualbox-modules-5.2.4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work'
 * S: '/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work'

>>> Failed to emerge app-emulation/virtualbox-modules-5.2.4, Log file:

>>>  '/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/temp/build.log'

 * Messages for package x11-drivers/nvidia-drivers-387.34:

 * Gentoo supports kernels which are supported by NVIDIA
 * which are limited to the following kernels:
 * <sys-kernel/gentoo-sources-4.15
 * <sys-kernel/vanilla-sources-4.15
 *
 * You are free to utilize epatch_user to provide whatever
 * support you feel is appropriate, but will not receive
 * support as a result of those changes.
 *
 * Do not file a bug report about this.
 *

 * Messages for package app-emulation/virtualbox-modules-5.2.4:

 * ERROR: app-emulation/virtualbox-modules-5.2.4::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=app-emulation/virtualbox-modules-5.2.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/virtualbox-modules-5.2.4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work'
 * S: '/var/tmp/portage/app-emulation/virtualbox-modules-5.2.4/work'


You have just the end of the log.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7176
Location: Austria

PostPosted: Sun Dec 24, 2017 11:32 pm    Post subject: Reply with quote

git sources and nvidia-drivers is really just a bad match.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7328
Location: Saint Amant, Acadiana

PostPosted: Sun Dec 24, 2017 11:34 pm    Post subject: Reply with quote

... and this happens every time when kernel has a major upgrade, and fastest way to get it working is visiting nVidia forums, they may have a patch.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Fulgurance
l33t
l33t


Joined: 15 Feb 2017
Posts: 604

PostPosted: Mon Dec 25, 2017 9:39 am    Post subject: Reply with quote

Where you found this patch ? I don't found on Nvidia website topic talk about that
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5873

PostPosted: Mon Dec 25, 2017 10:13 am    Post subject: Reply with quote

This isn't even nvidia...

Code:
 * ERROR: app-emulation/virtualbox-modules-5.2.4::gentoo failed (compile phase):
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7176
Location: Austria

PostPosted: Mon Dec 25, 2017 10:48 am    Post subject: Reply with quote

bunder wrote:
This isn't even nvidia...

Well there's also
Code:
 * Messages for package x11-drivers/nvidia-drivers-387.34:

 * Gentoo supports kernels which are supported by NVIDIA
 * which are limited to the following kernels:
 * <sys-kernel/gentoo-sources-4.15
 * <sys-kernel/vanilla-sources-4.15
 *
 * You are free to utilize epatch_user to provide whatever
 * support you feel is appropriate, but will not receive
 * support as a result of those changes.
 *
 * Do not file a bug report about this.
 *

_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
Fulgurance
l33t
l33t


Joined: 15 Feb 2017
Posts: 604

PostPosted: Mon Dec 25, 2017 5:23 pm    Post subject: Reply with quote

Yes, i have see this message, but i don't know what is epatch_user....
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7176
Location: Austria

PostPosted: Mon Dec 25, 2017 6:10 pm    Post subject: Reply with quote

It doesn't help if you don't have a patch, anyway. So either write one or do some research in nvidia forums, as someone already told.

https://wiki.gentoo.org/wiki//etc/portage/patches
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7328
Location: Saint Amant, Acadiana

PostPosted: Mon Dec 25, 2017 6:36 pm    Post subject: Reply with quote

"Someone" gave you link to patching, here is the link to the patch: Linky
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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