LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   NVIDIA GeForce 650 Driver Fails Install Stock Kernel (https://www.linuxquestions.org/questions/slackware-14/nvidia-geforce-650-driver-fails-install-stock-kernel-4175493107/)

devnod 01-30-2014 04:01 AM

NVIDIA GeForce 650 Driver Fails Install Stock Kernel
 
Recently installed Slackware 14.1 and am trying to get my Nvidia GeForce 650 drivers installed.

Nouveau is blacklisted and not an issue, installer does not see it or report it after blacklist.

Have attempted using 331.38 and 319.17 installers from nvidia's site. Both return with the same error. Have also extracted both of them and attempted to apply patches mentioned in this forum, patches ran, reattempted install, still fails. Installer gets to 100% of building the module then fails.

Code:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Thu Jan 30 01:24:33 2014
installer version: 331.38

PATH: /usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin

nvidia-installer command line:
    ./nvidia-installer

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 331.38.
-> Performing CC sanity check with CC="cc".
-> Kernel source path: '/lib/modules/3.10.17/source'
-> Kernel output path: '/lib/modules/3.10.17/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Performing PREEMPT_RT check.
-> Cleaning kernel module build directory.
  executing: 'cd ./kernel; make clean'...
-> Building NVIDIA kernel module:
  executing: 'cd ./kernel; make module SYSSRC=/lib/modules/3.10.17/source SYSOUT=/lib/modules/3.10.17/build NV_BUILD_MODULE_INSTANCES='...
  NVIDIA: calling KBUILD...
  make[1]: Entering directory `/usr/src/linux-3.10.17'
  make -C /lib/modules/3.10.17/build \
  KBUILD_SRC=/usr/src/linux-3.10.17 \
  KBUILD_EXTMOD="/tmp/selfgz1918/NVIDIA-Linux-x86-331.38-custom/kernel" -f /usr/src/linux-3.10.17/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 /tmp/selfgz1918/NVIDIA-Linux-x86-331.38-custom/kernel/.tmp_versions ; rm -f /tmp/selfgz1918/NVIDIA-Linux-x86-331.38-custom/kernel/.tmp_versions/*
 
    WARNING: Symbol version dump /usr/src/linux-3.10.17/Module.symvers
              is missing; modules will have no dependencies and modversions.
 
  make -f /usr/src/linux-3.10.17/scripts/Makefile.build obj=/tmp/selfgz1918/NVIDIA-Linux-x86-331.38-custom/kernel
    cc -Wp,-MD,/tmp/selfgz1918/NVIDIA-Linux-x86-331.38-custom/kernel/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/i486-slackware-linux/4.8.2/include -I/usr/src/linux-3.10.17/arch/x86/include -Iarch/x86/include/generated  -I/usr/src/linux-3.10.17/include -Iinclude -I/usr/src/linux-3.10.17/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.10.17/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.10.17/include/linux/kconfig.h  -I/tmp/selfgz1918/NVIDIA-Linux-x86-331.38-custom/kernel -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 -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -fno-pic -mpreferred-stack-boundary=2 -march=i486 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_A
  VX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG  -I/tmp/selfgz1918/NVIDIA-Linux-x86-331.38-custom/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"331.38\" -Wno-unused-function -Wuninitialized -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\"  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz1918/NVIDIA-Linux-x86-331.38-custom/kernel/nv.o /tmp/selfgz1918/NVIDIA-Linux-x86-331.38-custom/kernel/nv.c
  In file included from /usr/src/linux-3.10.17/arch/x86/include/asm/bitops.h:514:0,
                    from /usr/src/linux-3.10.17/include/linux/bitops.h:22,
                    from /usr/src/linux-3.10.17/include/linux/kernel.h:10,
                    from /usr/src/linux-3.10.17/include/linux/sched.h:15,
                    from /usr/src/linux-3.10.17/include/linux/utsname.h:5,
                    from /tmp/selfgz1918/NVIDIA-Linux-x86-331.38-custom/kernel/nv-linux.h:44,
                    from /tmp/selfgz1918/NVIDIA-Linux-x86-331.38-custom/kernel/nv.c:13:
  /usr/src/linux-3.10.17/include/linux/bitops.h: In function 'hweight_long':
  /usr/src/linux-3.10.17/include/asm-generic/bitops/const_hweight.h:26:70: warning: signed and unsigned type in conditional expression [-Wsign-compare]
    #define hweight32(w) (__builtin_constant_p(w) ? __const_hweight32(w) : __arch_hweight32(w))
                                                                        ^
  /usr/src/linux-3.10.17/include/linux/bitops.h:66:26: note: in expansion of macro 'hweight32'
    return sizeof(w) == 4 ? hweight32(w) : hweight64(w);
                            ^
  In file included from /usr/src/linux-3.10.17/arch/x86/include/asm/cpumask.h:4:0,
                    from /usr/src/linux-3.10.17/arch/x86/include/asm/msr.h:10,
                    from /usr/src/linux-3.10.17/arch/x86/include/asm/processor.h:20,
                    from /usr/src/linux-3.10.17/arch/x86/include/asm/thread_info.h:22,
                    from /usr/src/linux-3.10.17/include/linux/thread_info.h:54,
                    from /usr/src/linux-3.10.17/include/linux/preempt.h:9,
                    from /usr/src/linux-3.10.17/include/linux/spinlock.h:50,
                    from /usr/src/linux-3.10.17/include/linux/seqlock.h:29,
                    from /usr/src/linux-3.10.17/include/linux/time.h:5,
                    from /usr/src/linux-3.10.17/include/uapi/linux/timex.h:56,
                    from /usr/src/linux-3.10.17/include/linux/timex.h:56,
                    from /usr/src/linux-3.10.17/include/linux/sched.h:17,
                    from /usr/src/linux-3.10.17/include/linux/utsname.h:5,
                    from /tmp/selfgz1918/NVIDIA-Linux-x86-331.38-custom/kernel/nv-linux.h:44,
                    from /tmp/selfgz1918/NVIDIA-Linux-x86-331.38-custom/kernel/nv.c:13:
  /usr/src/linux-3.10.17/include/linux/cpumask.h: In function 'cpumask_parse':
  /usr/src/linux-3.10.17/include/linux/cpumask.h:603:26: warning: signed and unsigned type in conditional expression [-Wsign-compare]
    int len = nl ? nl - buf : strlen(buf);
                            ^
  In file included from /usr/src/linux-3.10.17/include/uapi/linux/stddef.h:1:0,
                    from /usr/src/linux-3.10.17/include/linux/stddef.h:4,
                    from /usr/src/linux-3.10.17/include/uapi/linux/posix_types.h:4,
                    from /usr/src/linux-3.10.17/include/uapi/linux/types.h:13,
                    from /usr/src/linux-3.10.17/include/linux/types.h:5,
                    from /usr/src/linux-3.10.17/include/uapi/linux/capability.h:16,
                    from /usr/src/linux-3.10.17/include/linux/capability.h:15,
                    from /usr/src/linux-3.10.17/include/linux/sched.h:13,
                    from /usr/src/linux-3.10.17/include/linux/utsname.h:5,
                    from /tmp/selfgz1918/NVIDIA-Linux-x86-331.38-custom/kernel/nv-linux.h:44,
                    from /tmp/selfgz1918/NVIDIA-Linux-x86-331.38-custom/kernel/nv.c:13:
  /usr/src/linux-3.10.17/arch/x86/include/asm/uaccess_32.h: In function 'copy_from_user':
  /usr/src/linux-3.10.17/arch/x86/include/asm/uaccess_32.h:208:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (likely(sz == -1 || sz >= n))
                              ^
  /usr/src/linux-3.10.17/include/linux/compiler.h:152:40: note: in definition of macro 'likely'
    # define likely(x) __builtin_expect(!!(x), 1)
                                          ^
    if [ "-pg" = "-pg" ]; then if [ /tmp/selfgz1918/NVIDIA-Linux-x86-331.38-custom/kernel/nv.o != "scripts/mod/empty.o" ]; then /usr/src/linux-3.10.17/scripts/recordmcount  "/tmp/selfgz1918/NVIDIA-Linux-x86-331.38-custom/kernel/nv.o"; fi; fi;
  /bin/sh: /usr/src/linux-3.10.17/scripts/recordmcount: No such file or directory
  make[3]: *** [/tmp/selfgz1918/NVIDIA-Linux-x86-331.38-custom/kernel/nv.o] Error 1
  make[2]: *** [_module_/tmp/selfgz1918/NVIDIA-Linux-x86-331.38-custom/kernel] Error 2
  make[1]: *** [sub-make] Error 2
  make[1]: Leaving directory `/usr/src/linux-3.10.17'
  NVIDIA: left KBUILD.
    nvidia.ko failed to build!
  make: *** [nvidia.ko] Error 1
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
-> done.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

I have attempted to go into the source tree and run the command given, reboot, and reattempt the install. The kernel module still fails to load.

Hair is about to be pulled out, help very appreciated.

Drakeo 01-30-2014 06:45 AM

I use the 319.49 builds right out of the box hope this helps you.

http://us.download.nvidia.com/XFree8..._64-319.49.run

http://us.download.nvidia.com/XFree8...x86-319.49.run

phenixia2003 01-30-2014 07:14 AM

Hello,

Quote:

Originally Posted by devnod (Post 5107956)
Recently installed Slackware 14.1 and am trying to get my Nvidia GeForce 650 drivers installed.

Nouveau is blacklisted and not an issue, installer does not see it or report it after blacklist.

Have attempted using 331.38 and 319.17 installers from nvidia's site. Both return with the same error. Have also extracted both of them and attempted to apply patches mentioned in this forum, patches ran, reattempted install, still fails. Installer gets to 100% of building the module then fails.

Code:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Thu Jan 30 01:24:33 2014
installer version: 331.38

[...]

 
    WARNING: Symbol version dump /usr/src/linux-3.10.17/Module.symvers
              is missing
; modules will have no dependencies and modversions.

[...]
 

  /bin/sh: /usr/src/linux-3.10.17/scripts/recordmcount: No such file or directory
[...]


Here, I have these files :

Code:

$ ls /usr/src/linux-3.10.17/{Module.symvers,scripts/recordmcount}
/usr/src/linux-3.10.17/Module.symvers
/usr/src/linux-3.10.17/scripts/recordmcount

$ grep -ER "Module.symvers$|scripts/recordmcount$" /var/log/packages/
/var/log/packages/kernel-source-3.10.17-noarch-3:usr/src/linux-3.10.17/Module.symvers
/var/log/packages/kernel-source-3.10.17-noarch-3:usr/src/linux-3.10.17/scripts/recordmcount

I don't know why, but your kernel-source has been damaged. Reinstall the package kernel-source (in serie K), then try to install the nvidia driver to see if that fixes your issue.


Hope this helps.

Cheers.


--
SeB

devnod 01-30-2014 01:53 PM

I uninstalled kernel-source, the installer reported new unique files in the directory, removed it entirely after the uninstall. Reinstalled from the Slackware installation media, rebooted. I ran the same checks you did and came back with the files in place as well. "New" log posted below.

Code:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Thu Jan 30 11:44:15 2014
installer version: 331.38

PATH: /usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin

nvidia-installer command line:
    ./nvidia-installer

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 331.38.
-> Performing CC sanity check with CC="cc".
-> Kernel source path: '/lib/modules/3.10.17/source'
-> Kernel output path: '/lib/modules/3.10.17/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Performing PREEMPT_RT check.
-> Cleaning kernel module build directory.
  executing: 'cd ./kernel; make clean'...
-> Building NVIDIA kernel module:
  executing: 'cd ./kernel; make module SYSSRC=/lib/modules/3.10.17/source SYSOUT=/lib/modules/3.10.17/build NV_BUILD_MODULE_INSTANCES='...
  NVIDIA: calling KBUILD...
  make[1]: Entering directory `/usr/src/linux-3.10.17'
  make -C /lib/modules/3.10.17/build \
  KBUILD_SRC=/usr/src/linux-3.10.17 \
  KBUILD_EXTMOD="/tmp/selfgz2657/NVIDIA-Linux-x86-331.38/kernel" -f /usr/src/linux-3.10.17/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 /tmp/selfgz2657/NVIDIA-Linux-x86-331.38/kernel/.tmp_versions ; rm -f /tmp/selfgz2657/NVIDIA-Linux-x86-331.38/kernel/.tmp_versions/*
  make -f /usr/src/linux-3.10.17/scripts/Makefile.build obj=/tmp/selfgz2657/NVIDIA-Linux-x86-331.38/kernel
    cc -Wp,-MD,/tmp/selfgz2657/NVIDIA-Linux-x86-331.38/kernel/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/i486-slackware-linux/4.8.2/include -I/usr/src/linux-3.10.17/arch/x86/include -Iarch/x86/include/generated  -I/usr/src/linux-3.10.17/include -Iinclude -I/usr/src/linux-3.10.17/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.10.17/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.10.17/include/linux/kconfig.h  -I/tmp/selfgz2657/NVIDIA-Linux-x86-331.38/kernel -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 -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -fno-pic -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium3 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -fstack-protector -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 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-opt
  imize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG  -I/tmp/selfgz2657/NVIDIA-Linux-x86-331.38/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"331.38\" -Wno-unused-function -Wuninitialized -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\"  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz2657/NVIDIA-Linux-x86-331.38/kernel/nv.o /tmp/selfgz2657/NVIDIA-Linux-x86-331.38/kernel/nv.c
  In file included from /usr/src/linux-3.10.17/arch/x86/include/asm/bitops.h:514:0,
                    from /usr/src/linux-3.10.17/include/linux/bitops.h:22,
                    from /usr/src/linux-3.10.17/include/linux/kernel.h:10,
                    from /usr/src/linux-3.10.17/include/linux/sched.h:15,
                    from /usr/src/linux-3.10.17/include/linux/utsname.h:5,
                    from /tmp/selfgz2657/NVIDIA-Linux-x86-331.38/kernel/nv-linux.h:44,
                    from /tmp/selfgz2657/NVIDIA-Linux-x86-331.38/kernel/nv.c:13:
  /usr/src/linux-3.10.17/include/linux/bitops.h: In function 'hweight_long':
  /usr/src/linux-3.10.17/include/asm-generic/bitops/const_hweight.h:26:70: warning: signed and unsigned type in conditional expression [-Wsign-compare]
    #define hweight32(w) (__builtin_constant_p(w) ? __const_hweight32(w) : __arch_hweight32(w))
                                                                        ^
  /usr/src/linux-3.10.17/include/linux/bitops.h:66:26: note: in expansion of macro 'hweight32'
    return sizeof(w) == 4 ? hweight32(w) : hweight64(w);
 
######### Removed to save room #########
                            ^
 
  /usr/src/linux-3.10.17/include/linux/compiler.h:152:40: note: in definition of macro 'likely'
    # define likely(x) __builtin_expect(!!(x), 1)
                                          ^
    if [ "-pg" = "-pg" ]; then if [ /tmp/selfgz2657/NVIDIA-Linux-x86-331.38/kernel/nv-procfs.o != "scripts/mod/empty.o" ]; then /usr/src/linux-3.10.17/scripts/recordmcount  "/tmp/selfgz2657/NVIDIA-Linux-x86-331.38/kernel/nv-procfs.o"; fi; fi;
    cc -Wp,-MD,/tmp/selfgz2657/NVIDIA-Linux-x86-331.38/kernel/.nv-usermap.o.d  -nostdinc -isystem /usr/lib/gcc/i486-slackware-linux/4.8.2/include -I/usr/src/linux-3.10.17/arch/x86/include -Iarch/x86/include/generated  -I/usr/src/linux-3.10.17/include -Iinclude -I/usr/src/linux-3.10.17/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.10.17/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.10.17/include/linux/kconfig.h  -I/tmp/selfgz2657/NVIDIA-Linux-x86-331.38/kernel -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 -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -fno-pic -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium3 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -fstack-protector -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 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG  -I/tmp/selfgz2657/NVIDIA-Linux-x86-331.38/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"331.38\" -Wno-unused-function -Wuninitialized -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\"  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_usermap)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz2657/NVIDIA-Linux-x86-331.38/kernel/nv-usermap.o /tmp/selfgz2657/NVIDIA-Linux-x86-331.38/kernel/nv-usermap.c
  In file included from /usr/src/linux-3.10.17/arch/x86/include/asm/bitops.h:514:0,
                    from /usr/src/linux-3.10.17/include/linux/bitops.h:22,
                    from /usr/src/linux-3.10.17/include/linux/kernel.h:10,
                    from /usr/src/linux-3.10.17/include/linux/sched.h:15,
                    from /usr/src/linux-3.10.17/include/linux/utsname.h:5,
                    from /tmp/selfgz2657/NVIDIA-Linux-x86-331.38/kernel/nv-linux.h:44,
                    from /tmp/selfgz2657/NVIDIA-Linux-x86-331.38/kernel/nv-usermap.c:15:
  /usr/src/linux-3.10.17/include/linux/bitops.h: In function 'hweight_long':
  /usr/src/linux-3.10.17/include/asm-generic/bitops/const_hweight.h:26:70: warning: signed and unsigned type in conditional expression [-Wsign-compare]
    #define hweight32(w) (__builtin_constant_p(w) ? __const_hweight32(w) : __arch_hweight32(w))
                                                                        ^
 
    ld -r -m elf_i386 -T /usr/src/linux-3.10.17/scripts/module-common.lds --build-id  -o /tmp/selfgz2657/NVIDIA-Linux-x86-331.38/kernel/uvm/nvidia-uvm.ko /tmp/selfgz2657/NVIDIA-Linux-x86-331.38/kernel/uvm/nvidia-uvm.o /tmp/selfgz2657/NVIDIA-Linux-x86-331.38/kernel/uvm/nvidia-uvm.mod.o
  make[1]: Leaving directory `/usr/src/linux-3.10.17'
  NVIDIA: left KBUILD.
-> done.
-> Kernel module compilation complete.
-> Unable to determine if Secure Boot is enabled: No such file or directory
ERROR: Unable to load the kernel module 'nvidia.ko'.  This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if a driver such as rivafb, nvidiafb, or nouveau is present and prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA graphics device(s), or no NVIDIA GPU installed in this system is supported by this NVIDIA Linux graphics driver release.

Please see the log entries 'Kernel module load error' and 'Kernel messages' at the end of the file '/var/log/nvidia-installer.log' for more information.
-> Kernel module load error: Exec format error
-> Kernel messages:
[    8.725548] usb 2-8: Product: USB Receiver
[    8.725677] usb 2-8: Manufacturer: Logitech
[    8.747637] Linux video capture interface: v2.00
[    8.748913] gspca_main: v2.14.0 registered
[    8.749439] hidraw: raw HID events driver (C) Jiri Kosina
[    8.753113] gspca_main: gspca_zc3xx-2.14.0 probing 046d:08da
[    8.759231] input: Razer Razer Naga as /devices/pci0000:00/0000:00:0b.0/usb2/2-1/2-1:1.0/input/input7
[    8.759644] hid-generic 0003:1532:002E.0001: input,hidraw0: USB HID v1.11 Mouse [Razer Razer Naga] on usb-0000:00:0b.0-1/input0
[    8.763583] input: Razer Razer Naga as /devices/pci0000:00/0000:00:0b.0/usb2/2-1/2-1:1.1/input/input8
[    8.763947] hid-generic 0003:1532:002E.0002: input,hidraw1: USB HID v1.11 Keyboard [Razer Razer Naga] on usb-0000:00:0b.0-1/input1
[    8.783296] usbcore: registered new interface driver usbhid
[    8.783425] usbhid: USB HID core driver
[    8.789829] logitech-djreceiver 0003:046D:C52B.0005: hiddev0,hidraw2: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:0b.0-8/input2
[    8.795437] input: Logitech Unifying Device. Wireless PID:101b as /devices/pci0000:00/0000:00:0b.0/usb2/2-8/2-8:1.2/0003:046D:C52B.0005/input/input9
[    8.795721] logitech-djdevice 0003:046D:C52B.0006: input,hidraw3: USB HID v1.11 Mouse [Logitech Unifying Device. Wireless PID:101b] on usb-0000:00:0b.0-8:1
[    8.798423] input: Logitech Unifying Device. Wireless PID:2008 as /devices/pci0000:00/0000:00:0b.0/usb2/2-8/2-8:1.2/0003:046D:C52B.0005/input/input10
[    8.798701] logitech-djdevice 0003:046D:C52B.0007: input,hidraw4: USB HID v1.11 Keyboard [Logitech Unifying Device. Wireless PID:2008] on usb-0000:00:0b.0-8:2
[  10.072928] input: gspca_zc3xx as /devices/pci0000:00/0000:00:0b.0/usb2/2-2/input/input11
[  10.073391] usbcore: registered new interface driver gspca_zc3xx
[  10.142027] usbcore: registered new interface driver snd-usb-audio
[  19.604757] NET: Registered protocol family 10
[  104.082505] nvidia: version magic '3.10.17-smp SMP mod_unload PENTIUMIII ' should be '3.10.17 mod_unload 486 '
[  264.232873] Linux agpgart interface v0.103
[  264.237630] [drm] Initialized drm 1.1.0 20060810
[  264.247029] nvidia: version magic '3.10.17-smp SMP mod_unload PENTIUMIII ' should be '3.10.17 mod_unload 486 '
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

The full log could not be pasted in here. If the full log is needed, http://pastebin.ca/2604307



Quote:

Originally Posted by Drakeo (Post 5108019)

The driver returns with the same error. Thanks though.

devnod 01-30-2014 04:39 PM

Still not finding anything new, does anyone have an idea? Been attempting to get this fixed for days.

55020 01-30-2014 04:58 PM

Quote:

Originally Posted by devnod (Post 5108238)
Code:

[  104.082505] nvidia: version magic '3.10.17-smp SMP mod_unload PENTIUMIII ' should be '3.10.17 mod_unload 486 '

The tingling in my spidey-sense tells me that you are not running an SMP kernel.

I think your answer is in CHANGES_AND_HINTS.TXT

Quote:

For most systems, you
should use the generic SMP kernel if it will run, even if your system is
not SMP-capable. Some newer hardware needs the local APIC enabled in the
SMP kernel, and theoretically there should not be a performance penalty
with using the SMP-capable kernel on a uniprocessor machine, as the SMP
kernel tests for this and makes necessary adjustments. Furthermore, the
kernel sources shipped with Slackware are configured for SMP usage, so you
won't have to modify those to build external modules (such as NVidia or
ATI proprietary drivers) if you use the SMP kernel.

If you decide to use one of the non-SMP kernels, you will need to follow the
instructions in /extra/linux-3.10.17-nosmp-sdk/README.TXT to modify your
kernel sources for non-SMP usage.
... and extra/linux-3.10.17-nosmp-sdk/README.TXT says ...

Quote:

By default, the kernel in Slackware supports SMP. With as common as
multicore CPUs and SMP boards have become, this seems like the
obvious choice. The kernels are probably better for single CPU
machines, too, if they will run them.

If you have to use one of the non SMP kernels (huge.s or generic.s),
then you will need to reconfigure your kernel sources to build any
additional kernel modules. In order to compile outside kernel
modules and such, you *may* need to install non-SMP kernel-headers
(we're not entirely sure about this), and either build the kernel once
without SMP (which might take a while), or apply a patch to freshly
installed kernel sources to convert them from smp to non-SMP
(this is fast).

To switch your unmodified Slackware kernel sources from SMP to non-SMP,
run the following script in this directory:

./patch-to-non-smp.sh

If you'd rather apply these patches by hand, feel free.

At this point if you are running huge.s or generic.s, you should have
no problems building kernel modules. This has been tested here with the
latest nVidia X.Org drivers.

Have fun! :-)

Pat
In other words, use the SMP kernel, if you can.

devnod 01-30-2014 05:05 PM

Right now, and with that error, I am using and booted into the default slack smp kernel. Any other ideas?

Correction: was running the default huge.s apparently. Changed bootloader to load the SMP, "linked" the initrd.gz, and rebooted. The smp kernel fails to load and says it is unable to find the SMP modules. Reinstalled modules from Slackware installation media. Copied smp config to .config, and ran make oldconfig && make prepare in /usr/src/linux, rebooted, same error, unable to find modules. I'm missing something.

55020 01-30-2014 05:24 PM

The log you posted clearly shows you built on a non-SMP kernel, or your own custom kernel.

Code:

-> Kernel source path: '/lib/modules/3.10.17/source'
-> Kernel output path: '/lib/modules/3.10.17/build'

That would be /lib/modules/3.10.17-smp if it was the Slackware SMP kernel. I don't know how you are mixing and matching building and booting the kernel sources and kernel modules -- only you know -- but, basically, *don't*. Be consistent from build to boot.

devnod 01-30-2014 05:36 PM

Quote:

Originally Posted by 55020 (Post 5108379)
The log you posted clearly shows you built on a non-SMP kernel, or your own custom kernel.

Code:

-> Kernel source path: '/lib/modules/3.10.17/source'
-> Kernel output path: '/lib/modules/3.10.17/build'

That would be /lib/modules/3.10.17-smp if it was the Slackware SMP kernel. I don't know how you are mixing and matching building and booting the kernel sources and kernel modules -- only you know -- but, basically, *don't*. Be consistent from build to boot.

/lib/modules/3.10.17-smp does exist now, although the SMP kernel fails to see its modules and will not boot.

devnod 01-30-2014 05:51 PM

OK I got the SMP kernel up and running finally, reran the Nvidia driver installer, getting new errors.

Quote:

WARNING: Unable to determine the architecture of the file
'/usr/X11R6/lib/libEGL.la', which has an architecture-specific
conflict.
Quote:

ERROR: Unable to open
'/usr/X11R6/lib/xorg/modules/extensions/libglx.so.331.20' for reading
(No such file or directory)
Quote:

ERROR: Unable to open '/usr/X11R6/lib/xorg/modules/extensions/libglx.so' for
reading (No such file or directory)

devnod 01-30-2014 06:57 PM

Ok doing more research and comparing to the errors I realized that basically the problem was:

First off, it won't build against the huge.s kernel, thanks for pointing out my problem with not using SMP. Getting the smp kernel working took recreating the initrd, by rerunning the script to generate the command and changing it from 3.10.17 to 3.10.17-smp and running it to generate the new config file.

I then went into the source, reran "make oldconfig && make prepare" and let it do its thing. Rebooted and the SMP kernel booted fine.

The errors in the post above pointed out that for some reason the first reinstall attempt of 331.38 driver was not cleaning up after the 331.20 attempt. Killing and rerunning the 338.38 installer again resulted in its removal of the old files and successfully installing, creating the new xorg files, etc.

X is now working, glx enabled, problem solved.

Thanks for the help guys:)


All times are GMT -5. The time now is 07:17 PM.