Posts: 99
spaceman
Joined: 07 Feb 2013
#1
I used the fantastic smxi script to install xorg, gdm and xfce on a x86_64 M13 Core install again. Now I approached it exactly as I did with antiX 12. Everthing went as I'd expect until I got to the Nvidia drivers (I'm feeling a bit like Linus at the moment:"F@#k you, Nvidia!").

The installation failed with Error (245): Nvidia driver failed to install Error: 1. So I tried again, failed, reinstalled antix (twice) and then tried to install the drivers manually.

What I've learnt: the smxi script times out downloading the drivers from Nvidia and tacks forever. A manual wget or browse to downloads.nvidia.com delivers the drivers in a couple of seconds...I popped the manually downloaded 319.23 drivers in the /usr/src/sgfxi-downloads folder (removing the half downloaded driver in there) and ran the script again...so I don't think the issue is the script...so it could be the driver, antiX or more likely me...

Code: Select all

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Jun 16 11:59:51 2013
installer version: 319.23

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

nvidia-installer command line:
    ./nvidia-installer
    -s
    -N
    --x-module-path=/usr/lib/xorg/modules
    --x-library-path=/usr/lib
    -k
    3.7.10-gnu-antix.3-amd64-smp

Using built-in stream user interface
-> License accepted by command line option.
-> Installing NVIDIA driver version 319.23.
-> Not probing for precompiled kernel interfaces.
-> Performing CC sanity check with CC="/usr/bin/gcc-4.7".
-> Kernel source path: '/lib/modules/3.7.10-gnu-antix.3-amd64-smp/build'
-> Kernel output path: '/lib/modules/3.7.10-gnu-antix.3-amd64-smp/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
   executing: 'cd ./kernel; make clean'...
-> Building kernel module:
   executing: 'cd ./kernel; make module SYSSRC=/lib/modules/3.7.10-gnu-antix.3-amd64-smp/build SYSOUT=/lib/modules/3.7.10-gnu-antix.3-amd64-smp/build'...
   NVIDIA: calling KBUILD...
   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 /usr/src/sgfxi-downloads/NVIDIA-Linux-x86_64-319.23/kernel/.tmp_versions ; rm -f /usr/src/sgfxi-downloads/NVIDIA-Linux-x86_64-319.23/kernel/.tmp_versions/*
   make -f scripts/Makefile.build obj=/usr/src/sgfxi-downloads/NVIDIA-Linux-x86_64-319.23/kernel
     /usr/bin/gcc-4.7 -Wp,-MD,/usr/src/sgfxi-downloads/NVIDIA-Linux-x86_64-319.23/kernel/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.7/include -I/usr/src/linux-headers-3.7.10-gnu-antix.3-amd64-smp/arch/x86/include -Iarch/x86/include/generated  -Iinclude -I/usr/src/linux-headers-3.7.10-gnu-antix.3-amd64-smp/arch/x86/include/uapi -Iarch/x86/include/generated/u
   api -I/usr/src/linux-headers-3.7.10-gnu-antix.3-amd64-smp/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-headers-3.7.10-gnu-antix.3-amd64-smp/include/linux/kconfig.h -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 -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/usr/src/sgfxi-downloads/NVIDIA-Linux-x86_64-319.23/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM 
   -DNV_VERSION_STRING=\"319.23\" -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG -D__linux__  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /usr/src/sgfxi-downloads/NVIDIA-Linux-x86_64-319.23/kernel/.tmp_nv.o /usr/src/sgfxi-downloads/NVIDIA-Linux-x86_64-319.23/kernel/nv.c
   In file included from include/linux/kernel.h:10:0,
                    from include/linux/sched.h:15,
                    from include/linux/utsname.h:5,
                    from /usr/src/sgfxi-downloads/NVIDIA-Linux-x86_64-319.23/kernel/nv-linux.h:44,
                    from /usr/src/sgfxi-downloads/NVIDIA-Linux-x86_64-319.23/kernel/nv.c:13:
   include/linux/bitops.h: In function 'hweight_long':
   include/linux/bitops.h:66:41: warning: signed and unsigned type in conditional expression [-Wsign-compare]
   In file included from /usr/src/linux-headers-3.7.10-gnu-antix.3-amd64-smp/arch/x86/include/asm/uaccess.h:594:0,
                    from include/linux/poll.h:11,
                    from /usr/src/sgfxi-downloads/NVIDIA-Linux-x86_64-319.23/kernel/nv-linux.h:115,
                    from /usr/src/sgfxi-downloads/NVIDIA-Linux-x86_64-319.23/kernel/nv.c:13:
   /usr/src/linux-headers-3.7.10-gnu-antix.3-amd64-smp/arch/x86/include/asm/uaccess_64.h: In function 'copy_from_user':
   /usr/src/linux-headers-3.7.10-gnu-antix.3-amd64-smp/arch/x86/include/asm/uaccess_64.h:62:6: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by scripts/basic/fixdep)
   make[3]: *** [/usr/src/sgfxi-downloads/NVIDIA-Linux-x86_64-319.23/kernel/nv.o] Error 1
   make[2]: *** [_module_/usr/src/sgfxi-downloads/NVIDIA-Linux-x86_64-319.23/kernel] Error 2
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   make[1]: *** [module] Error 1
   make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
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.
Last edited by spaceman on 19 Jun 2013, 11:38, edited 2 times in total.
Alanarchy
Posts 0
Alanarchy
#2
Have you got linux-libc-dev installed? That's Linux support headers for userspace development.


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.nvnews.net/vbulletin/showthread.php?s=e027a246f056e2e7e6f278ed8396b371&t=72490"
linktext was:"http://www.nvnews.net/vbulletin/showthr ... 71&t=72490"
====================================


If you wish to install the NVIDIA Linux graphics driver on a Debian GNU/Linux or Ubuntu system that ships with Xorg 7.x, please ensure that your system meets the following requirements:

* development tools like make and gcc are installed
* the linux-headers package matching the installed Linux kernel is installed
* the pkg-config and xserver-xorg-dev packages are installed
* the nvidia-glx package has been uninstalled with the --purge option and the files /etc/init.d/nvidia-glx and /etc/init.d/nvidia-kernel do not exist
Posts: 99
spaceman
Joined: 07 Feb 2013
#3
Thanks for the swift response!

linux-libc-dev - check!
make and gcc - check!
linux-headers package matching the installed Linux kernel is installed? - Aha, the edge of my knowledge. How do I confirm whether the linux-headers package matches the installed kernel?

Code: Select all

$ uname -a
Linux hostname 3.7.10-gnu-antix.3-amd64-smp #1 SMP Sat Jun 1 01:37:44 EEST 2013 x86_64 GNU/Linux
pkg-config - check!
xserver-xorg-dev - no, this wasn't installed. It is not however!
nvidia-glx package uninstalled with --purge option - check!
/etc/init.d/nvidia-glx and /etc/init.d/nvidia-kernel do not exist - check!

So my continuing problem could be the linux-headers...
Last edited by spaceman on 17 Jun 2013, 14:51, edited 1 time in total.
Alanarchy
Posts 0
Alanarchy
#4
anticapitalista said something to somebody about using sgfxi -f to install his own nvidia drivers but I can't now find it.

Found it now __{{emoticon}}__


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"antix.freeforu ms.org/post28136.html?hilit=sgfxi%20f#p28136"
linktext was:"antix.freeforu ms.org/post28136.h ... 20f#p28136"
====================================
Posts: 99
spaceman
Joined: 07 Feb 2013
#5
Yeah, I'd already tried this but it never hurts to have another go.

Exactly the same result... __{{emoticon}}__
Posts: 850
fatmac
Joined: 26 Jul 2012
#6
If you are still trying to find what headers you need :-
sudo apt-cache search linux-headers

Edit: I'm on Crunchbang just now, but you should be looking for something like -
linux-headers-3.2.0-4-amd64 - Header files for Linux 3.2.0-4-amd64
anticapitalista
Posts: 5,956
Site Admin
Joined: 11 Sep 2007
#7
spaceman

I have just been testing this and I get the same when using antiX-13-core 64 bit. (antiX-13-core 32 bit does build nvidia driver though).

OK, until I get this fixed with probably a new kernel build for the antiX-13-core 64 bit kernel, you have these options.

1. Use testing repos, do apt-get update && apt-get dist-upgrade and then run sgfxi again.
This worked for me.

2. Keep the repos at Wheezy and install another kernel. Try the non-gnu antiX 3.7.10 kernel or a Debian/siduction/aptosid/liquorix one.

Congratulations on finding this bug in antiX-13-core 64 bit __{{emoticon}}__
Posts: 99
spaceman
Joined: 07 Feb 2013
#8
YAY! A bug means it effects more than me and it's valuable to point it out! I contributed, excellent. __{{emoticon}}__

Thanks for the interim suggestions, Anti! I'll get right on it. __{{emoticon}}__ Thanks Alanarchy and Fatmac for your advice, I learned stuff - is always good.
anticapitalista
Posts: 5,956
Site Admin
Joined: 11 Sep 2007
#9
spaceman

There is a new antiX 3.7-10-gnu-antix.4 kernel in the repo that should work.
Posts: 99
spaceman
Joined: 07 Feb 2013
#10
Thanks man, I always use a liquorix kernel, they're described as 'high performance' and they've always worked fine, so I slapped 3.8 in then the Nvidia drivers worked as normal. Now, just the eternal struggle to build Wine 1.5.x from source on an AMD64 system... /sigh

Thanks all.