View previous topic :: View next topic |
Author |
Message |
linux_matt Tux's lil' helper
Joined: 14 May 2012 Posts: 103
|
Posted: Fri Dec 27, 2013 11:10 am Post subject: [SOLVED] nvidia binary driver module cannot be loaded |
|
|
Tried to install the nvidia binary driver having followed the Gentool HOWTO. I have this successfully installed on another gentoo system using portage. The binary driver compiles against the correct kernel sources but appears to be removed from the kernel module database on installation. Directly downloading and installing the driver from the nvidia site works (the X server was not running at this point) but for maintainability I would rather install through portage.
These are the steps I took with the build log further down.
(1) loadable module support is compiled into the kernel
(2) ebuild successfully tests for MTRR
(3) uname -r returns: 3.12.6-gentoo and the kernel symlink is correct
[1] linux-3.2.12-gentoo
[2] linux-3.7.1-gentoo
[3] linux-3.11.0-gentoo
[4] linux-3.12.5-gentoo
[5] linux-3.12.6-gentoo *
(4) The video card is a legacy card and (through masking) the correct binary driver is emerged
(5) Possibly the issue is at the installation stage?
* Removing x11-drivers/nvidia-drivers-173.14.39 from moduledb.
(6) modprobe nvidia, modprobe -i nvidia return:
modprobe: FATAL: Module nvidia not found
insmod nvidia returns:
insmod: ERROR: could not load module nvidia: No such file or directory
Here is the build log:
>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-173.14.39
* NVIDIA-Linux-x86-173.14.39-pkg0.run SHA256 SHA512 WHIRLPOOL size ... [ ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/3.12.6-gentoo/build
* Found sources for kernel version:
* 3.12.6-gentoo-nvidia
* Checking for MTRR support ... [ ok ]
>>> Unpacking source...
mkdir: cannot create directory '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/': File exists
>>> Unpacking NVIDIA-Linux-x86-173.14.39-pkg0.run to /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work
>>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work
>>> Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work ...
* Applying NVIDIA_glx-defines.patch ... [ ok ]
* Applying NVIDIA_glx-glheader.patch ... [ ok ]
* Converting /usr/src/nv/Makefile.kbuild to use M= instead of SUBDIRS= [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work ...
* Preparing nvidia module
make -j1 HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= ARCH=i386 IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/3.12.6-gentoo/build CC=i686-pc-linux-gnu-gcc clean module
NVIDIA: calling KBUILD...
make -C /lib/modules/3.12.6-gentoo/build \
KBUILD_SRC=/usr/src/linux-3.12.6-gentoo \
KBUILD_EXTMOD="/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv" -f /usr/src/linux-3.12.6-gentoo/Makefile \
modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
mkdir -p /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/.tmp_versions ; rm -f /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/.tmp_versions/*
make -f /usr/src/linux-3.12.6-gentoo/scripts/Makefile.build obj=/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv
i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/.nv.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.8.2/include -I/usr/src/linux-3.12.6-gentoo/arch/x86/include -Iarch/x86/include/generated -I/usr/src/linux-3.12.6-gentoo/include -Iinclude -I/usr/src/linux-3.12.6-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.12.6-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.12.6-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized -m32 -msoft-float -mregparm=3 -freg-struct-return -mno-mmx -mno-sse -fno-pic -mpreferred-stack-boundary=2 -march=athlon -mtune=generic -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar -Werror -MD -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"173.14.39\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/.tmp_nv.o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/nv.c
i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/.nv-vm.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.8.2/include -I/usr/src/linux-3.12.6-gentoo/arch/x86/include -Iarch/x86/include/generated -I/usr/src/linux-3.12.6-gentoo/include -Iinclude -I/usr/src/linux-3.12.6-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.12.6-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.12.6-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized -m32 -msoft-float -mregparm=3 -freg-struct-return -mno-mmx -mno-sse -fno-pic -mpreferred-stack-boundary=2 -march=athlon -mtune=generic -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar -Werror -MD -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"173.14.39\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_vm)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/.tmp_nv-vm.o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/nv-vm.c
i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/.os-agp.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.8.2/include -I/usr/src/linux-3.12.6-gentoo/arch/x86/include -Iarch/x86/include/generated -I/usr/src/linux-3.12.6-gentoo/include -Iinclude -I/usr/src/linux-3.12.6-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.12.6-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.12.6-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized -m32 -msoft-float -mregparm=3 -freg-struct-return -mno-mmx -mno-sse -fno-pic -mpreferred-stack-boundary=2 -march=athlon -mtune=generic -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar -Werror -MD -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"173.14.39\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(os_agp)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/.tmp_os-agp.o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/os-agp.c
i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/.os-interface.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.8.2/include -I/usr/src/linux-3.12.6-gentoo/arch/x86/include -Iarch/x86/include/generated -I/usr/src/linux-3.12.6-gentoo/include -Iinclude -I/usr/src/linux-3.12.6-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.12.6-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.12.6-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized -m32 -msoft-float -mregparm=3 -freg-struct-return -mno-mmx -mno-sse -fno-pic -mpreferred-stack-boundary=2 -march=athlon -mtune=generic -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar -Werror -MD -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"173.14.39\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(os_interface)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/.tmp_os-interface.o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/os-interface.c
i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/.os-registry.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.8.2/include -I/usr/src/linux-3.12.6-gentoo/arch/x86/include -Iarch/x86/include/generated -I/usr/src/linux-3.12.6-gentoo/include -Iinclude -I/usr/src/linux-3.12.6-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.12.6-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.12.6-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized -m32 -msoft-float -mregparm=3 -freg-struct-return -mno-mmx -mno-sse -fno-pic -mpreferred-stack-boundary=2 -march=athlon -mtune=generic -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar -Werror -MD -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"173.14.39\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(os_registry)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/.tmp_os-registry.o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/os-registry.c
i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/.nv-i2c.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.8.2/include -I/usr/src/linux-3.12.6-gentoo/arch/x86/include -Iarch/x86/include/generated -I/usr/src/linux-3.12.6-gentoo/include -Iinclude -I/usr/src/linux-3.12.6-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.12.6-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.12.6-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized -m32 -msoft-float -mregparm=3 -freg-struct-return -mno-mmx -mno-sse -fno-pic -mpreferred-stack-boundary=2 -march=athlon -mtune=generic -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar -Werror -MD -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"173.14.39\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_i2c)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/.tmp_nv-i2c.o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/nv-i2c.c
i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/.nvacpi.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.8.2/include -I/usr/src/linux-3.12.6-gentoo/arch/x86/include -Iarch/x86/include/generated -I/usr/src/linux-3.12.6-gentoo/include -Iinclude -I/usr/src/linux-3.12.6-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.12.6-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.12.6-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized -m32 -msoft-float -mregparm=3 -freg-struct-return -mno-mmx -mno-sse -fno-pic -mpreferred-stack-boundary=2 -march=athlon -mtune=generic -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar -Werror -MD -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"173.14.39\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nvacpi)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/.tmp_nvacpi.o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/nvacpi.c
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/nvacpi.c:63:9: warning: initialization from incompatible pointer type [enabled by default]
.remove = nv_acpi_remove,
^
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/nvacpi.c:63:9: warning: (near initialization for 'nv_acpi_driver_template.ops.remove') [enabled by default]
i686-pc-linux-gnu-ld -r -o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/nvidia.o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/nv-kernel.o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/nv.o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/nv-vm.o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/os-agp.o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/os-interface.o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/os-registry.o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/nv-i2c.o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/nvacpi.o
(cat /dev/null; echo kernel//var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/nvidia.ko;) > /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/modules.order
make -f /usr/src/linux-3.12.6-gentoo/scripts/Makefile.modpost
find /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/.tmp_versions -name '*.mod' | xargs -r grep -h '\.ko$' | sort -u | sed 's/\.ko$/.o/' | scripts/mod/modpost -m -i /usr/src/linux-3.12.6-gentoo/Module.symvers -I /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/Module.symvers -o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/Module.symvers -S -w -s -T -
i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/.nvidia.mod.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.8.2/include -I/usr/src/linux-3.12.6-gentoo/arch/x86/include -Iarch/x86/include/generated -I/usr/src/linux-3.12.6-gentoo/include -Iinclude -I/usr/src/linux-3.12.6-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.12.6-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.12.6-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized -m32 -msoft-float -mregparm=3 -freg-struct-return -mno-mmx -mno-sse -fno-pic -mpreferred-stack-boundary=2 -march=athlon -mtune=generic -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar -Werror -MD -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"173.14.39\" -UDEBUG -U_DEBUG -DNDEBUG -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nvidia.mod)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -DMODULE -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/nvidia.mod.o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/nvidia.mod.c
i686-pc-linux-gnu-ld -r -T /usr/src/linux-3.12.6-gentoo/scripts/module-common.lds --build-id -o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/nvidia.ko /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/nvidia.o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/work/usr/src/nv/nvidia.mod.o
NVIDIA: left KBUILD.
>>> Source compiled.
>>> Test phase [not enabled]: x11-drivers/nvidia-drivers-173.14.39
>>> Install nvidia-drivers-173.14.39 into /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/image/ category x11-drivers
* Installing nvidia module
>>> Completed installing nvidia-drivers-173.14.39 into /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.39/image/
ecompressdir: bzip2 -9 /usr/share/doc
ecompressdir: bzip2 -9 /usr/share/man
>>> Installing (1 of 1) x11-drivers/nvidia-drivers-173.14.39
Switching to xorg-x11 OpenGL interface... done
* Removing x11-drivers/nvidia-drivers-173.14.39 from moduledb.
Switching to xorg-x11 OpenGL interface... done
* Updating module dependencies for 3.12.6-gentoo-nvidia ... [ ok ]
* Adding module to moduledb.
Switching to xorg-x11 OpenGL interface... done
>>> Auto-cleaning packages...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
!!! existing preserved libs:
>>> package: dev-libs/libcdio-0.90-r1
* - /usr/lib/libcdio.so.13
* - /usr/lib/libcdio.so.13.0.0
* used by /usr/lib/mythtv/plugins/libmythmusic.so (media-plugins/mythplugins-0.27_p20131124)
>>> package: dev-libs/libgcrypt-1.6.0
* - /usr/lib/libgcrypt.so.11
* - /usr/lib/libgcrypt.so.11.8.2
* used by /opt/google/chrome/chrome (www-client/google-chrome-32.0.1700.68_beta1)
* used by /usr/bin/gpg-agent (app-crypt/gnupg-2.0.22)
* used by /usr/bin/gpg2 (app-crypt/gnupg-2.0.22)
* used by 12 other files
>>> package: x11-libs/gtksourceview-3.8.2
* - /usr/lib/libgtksourceview-3.0.so.0
* - /usr/lib/libgtksourceview-3.0.so.0.0.0
* used by /usr/lib/sushi/libsushi-1.0.so (gnome-extra/sushi-3.8.1)
>>> package: media-gfx/imagemagick-6.8.7.5
* - /usr/lib/libMagickCore.so.5
* - /usr/lib/libMagickCore.so.5.0.0
* used by /usr/bin/spumux (media-video/dvdauthor-0.7.1)
>>> package: net-analyzer/net-snmp-5.7.2-r1
* - /usr/lib/libsnmp.so.15
* - /usr/lib/libsnmp.so.15.1.2
* used by /usr/bin/wmnd (x11-plugins/wmnd-0.4.17)
>>> package: kde-base/libkdcraw-4.12.0
* - /usr/lib/libkdcraw.so.22
* - /usr/lib/libkdcraw.so.22.1.1
* used by /usr/bin/dngconverter (media-plugins/kipi-plugins-3.5.0)
* used by /usr/bin/photolayoutseditor (media-plugins/kipi-plugins-3.5.0)
* used by /usr/lib/kde4/kipiplugin_debianscreenshots.so (media-plugins/kipi-plugins-3.5.0)
* used by 20 other files
>>> package: media-video/ffmpeg-0.10.6
* - /usr/lib/libavcodec.so.53
* - /usr/lib/libavcodec.so.53.61.100
* used by /usr/lib/libquicktime/lqt_ffmpeg.so (media-libs/libquicktime-1.2.4)
* - /usr/lib/libavutil.so.51
* - /usr/lib/libavutil.so.51.35.100
>>> package: kde-base/marble-4.12.0
* - /usr/lib/libmarblewidget.so.0.16.1
* - /usr/lib/libmarblewidget.so.16
* used by /usr/lib/libkgeomap.so.1.0.0 (media-libs/libkgeomap-3.5.0)
>>> package: media-libs/libraw-0.16.0_beta1-r1
* - /usr/lib/libraw.so.9
* - /usr/lib/libraw.so.9.0.0
* used by /usr/lib/libkdcraw.so.22 (preserved)
* used by /usr/lib/libkdcraw.so.22.1.1 (preserved)
>>> package: media-libs/jpeg-8d
* - /usr/lib/libjpeg.so.8
* - /usr/lib/libjpeg.so.8.4.0
* used by /opt/icedtea-bin-6.1.11.1/jre/lib/i386/libsplashscreen.so (dev-java/icedtea-bin-6.1.11.1)
* used by /usr/bin/greycstoration (media-gfx/greycstoration-2.9-r1)
* used by /usr/bin/jpegtopnm (media-libs/netpbm-10.61.00)
* used by 13 other files
>>> package: dev-libs/boost-1.53.0
* - /usr/lib/libboost_program_options.so.1.52.0
* used by /usr/bin/cmis-client-0.2 (dev-cpp/libcmis-0.2.3-r1)
* - /usr/lib/libboost_date_time.so.1.52.0
* used by /usr/lib/libcmis-0.2.so.2.0.3 (dev-cpp/libcmis-0.2.3-r1)
>>> package: media-libs/glew-1.10.0-r2
* - /usr/lib/libGLEW.so.1.9
* - /usr/lib/libGLEW.so.1.9.0
* used by /usr/lib/libprojectM.so.2.1.0 (media-libs/libprojectm-2.1.0)
>>> package: media-libs/x264-0.0.20130912
* - /usr/lib/libx264.so.125
* used by /usr/bin/mytharchivehelper (media-plugins/mythplugins-0.27_p20131124)
* used by /usr/lib/mythtv/plugins/libmytharchive.so (media-plugins/mythplugins-0.27_p20131124)
* used by /usr/lib/mythtv/plugins/libmythbrowser.so ()
* used by 4 other files
Use emerge @preserved-rebuild to rebuild packages using these libraries
Last edited by linux_matt on Thu Jan 02, 2014 4:46 pm; edited 1 time in total |
|
Back to top |
|
|
ulenrich Veteran
Joined: 10 Oct 2010 Posts: 1480
|
Posted: Fri Dec 27, 2013 11:43 am Post subject: |
|
|
/me helped to build xorg-server and mesa once more afterwards nvidia |
|
Back to top |
|
|
linux_matt Tux's lil' helper
Joined: 14 May 2012 Posts: 103
|
Posted: Sat Dec 28, 2013 1:05 am Post subject: |
|
|
ulenrich wrote: | /me helped to build xorg-server and mesa once more afterwards nvidia |
Thanks -- noted |
|
Back to top |
|
|
<3 Veteran
Joined: 21 Oct 2004 Posts: 1081
|
Posted: Sat Dec 28, 2013 9:04 am Post subject: |
|
|
can you post the location on your drive where the module is located? |
|
Back to top |
|
|
linux_matt Tux's lil' helper
Joined: 14 May 2012 Posts: 103
|
Posted: Mon Dec 30, 2013 11:47 pm Post subject: Locations of nvidia.ko |
|
|
<3 wrote: | can you post the location on your drive where the module is located? |
Not sure which of these was installed by portage and which by the Nvidia shell script from their Web site:
/lib/modules/3.12.6-gentoo/kernel/drivers/video/nvidia.ko
/lib/modules/3.12.6-gentoo-nvidia/video/nvidia.ko |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Tue Dec 31, 2013 12:18 am Post subject: |
|
|
The same nvidia version builds here fine against 3.12.6-hardened-* (with an additional patch for hardened), so in principle the ebuild should work.
Maybe it helps if you use my useflag settings: USE="acpi -multilib -tools".
According to your build log, the drivers seems to be compiled against the correct kernel version, but for some reason after the compilation there seems no file to exist which should be installed, not even the doc files, or did you delete the corresponding lines from the log? I would guess some symlink or permission problems are confusing the ebuild, but it is hard to guess what is the real cause. Do you have enough space on your build partition? |
|
Back to top |
|
|
creaker l33t
Joined: 14 Jul 2012 Posts: 651
|
Posted: Tue Dec 31, 2013 10:02 am Post subject: |
|
|
I had the same issue in past. System can't to find nvidia module that was built by emerge, because module was put in inappropriate place.
I just installed a driver in default NVidia way (by running 'sh NVidia-***.run').
Later I found where emerge put a module, but I don't remember where exactly nvidia.ko was placed.
I just leave the module that was built by NVidia script |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Tue Dec 31, 2013 11:19 am Post subject: |
|
|
Please, don't go advising to use the nvidia binary installer in Gentoo.
Then you will have leftovers that will make impossible the diagnose of problems related to the opengl stack.
First, there's a tool to find files, it's called "find". Use it to locate where the thing is putting the module.
Code: | $ find / -iname nvidia.ko |
You should also be able to use "equery f nvidia-drivers" to see the files belonging to that package, but I have no idea if it will list kernel modules as well. It's been long since the last time I bothered to use a binary blob from nvidia or from anyone else.
Usually, and unless you are hitting a bug in the ebuild, if your kernel can't find the module it will be because you have some error in your setup. Last time I checked, the nvidia ebuild used to take the current kernel as the one linked to /usr/src/linux, so check that symlink, see where it points to, then check "uname -r", and if the two things are not the same, there you have your problem.
If not, we will need the full output from the nvidia-drivers emerge process, there you should have not only the possible errors, but also the files that are being merged into your system. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Tue Dec 31, 2013 12:44 pm Post subject: |
|
|
linux_matt,
Code: | /lib/modules/3.12.6-gentoo/kernel/drivers/video/nvidia.ko
/lib/modules/3.12.6-gentoo-nvidia/video/nvidia.ko |
Those paths belong to two different kernels.
One called 3.12.6-gentoo-nvidia and one called 3.12.6-gentoo.
You will need to read the top co the Makefile to see which is which. As your uname -r shows 3.12.6-gentoo, thats the kernel you are running and modules will be fetched from /lib/modules/3.12.6-gentoo
However, it the Makefile in /usr/src/3.12.6-gentoo gives the kernel name as 3.12.6-gentoo-nvidia, the module will be installed in /lib/modules/3.12.6-gentoo-nvida.
Thats not the kernel you are running.
Makefile: | ]VERSION = 3
PATCHLEVEL = 12
SUBLEVEL = 5
EXTRAVERSION = -gentoo
NAME = One Giant Leap for Frogkind |
Check your EXTRAVERSION _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
linux_matt Tux's lil' helper
Joined: 14 May 2012 Posts: 103
|
Posted: Wed Jan 01, 2014 10:24 pm Post subject: |
|
|
NeddySeagoon wrote: | linux_matt,
Code: | /lib/modules/3.12.6-gentoo/kernel/drivers/video/nvidia.ko
/lib/modules/3.12.6-gentoo-nvidia/video/nvidia.ko |
Those paths belong to two different kernels.
One called 3.12.6-gentoo-nvidia and one called 3.12.6-gentoo.
You will need to read the top co the Makefile to see which is which. As your uname -r shows 3.12.6-gentoo, thats the kernel you are running and modules will be fetched from /lib/modules/3.12.6-gentoo
However, it the Makefile in /usr/src/3.12.6-gentoo gives the kernel name as 3.12.6-gentoo-nvidia, the module will be installed in /lib/modules/3.12.6-gentoo-nvida.
Thats not the kernel you are running.
Makefile: | ]VERSION = 3
PATCHLEVEL = 12
SUBLEVEL = 5
EXTRAVERSION = -gentoo
NAME = One Giant Leap for Frogkind |
Check your EXTRAVERSION |
Many thanks, changing the EXTRAVERSION variable to "-gentoo-nvidia" in /usr/src/linux/Makefile solved the issue. I didn't realise that when the LOCALVERSION name is changed in the kernel configuration, this must be matched in the Makefile (or alternatively that the Makefile EXTRAVERSION variable must match the output of uname -r) |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Wed Jan 01, 2014 11:13 pm Post subject: |
|
|
linux_matt,
Some external kernel modules do not respect LOCALVERSION in the kernel configuration.
Its safest not to use it. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|
|
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
|
|