nV News Forums


nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Problem building 169.04 on Debian AMD64 (http://www.nvnews.net/vbulletin/showthread.php?t=103206)

Jason1974 11-27-07 03:28 AM

Problem building 169.04 on Debian AMD64
1 Attachment(s)
Hi all, I hope someone out there can shed some light on this problem or can point out another approach.

I'm trying to install the 169.04 Nvidia driver for Debian (AMD64) using their script, it seems to be failing at the linking stage.

Unfortunatly I'm unable to drop back to an earlier driver as I have an 8800GT.

I'm also forcing the gcc version as that is what was used to build the installed kernel and modules.

export CC=/usr/bin/gcc-4.1

> uname -a
Linux baal 2.6.23-1-amd64 #1 SMP Fri Oct 12 23:45:48 UTC 2007 x86_64 GNU/Linux

condensed nvidia-installer.log (full log attached)

Using: nvidia-installer ncurses user interface
WARNING: Skipping the runlevel check (the utility `runlevel` failed to run).
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
  ke the installer to attempt to download a kernel interface for your kernel f
  rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
  this means that the installer will need to compile a kernel interface for
  your kernel.
-> Performing CC sanity check with CC="/usr/bin/gcc-4.1".
-> Performing CC version check with CC="/usr/bin/gcc-4.1".
-> Kernel source path: '/lib/modules/2.6.23-1-amd64/build'
-> Kernel output path: '/lib/modules/2.6.23-1-amd64/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
  executing: 'cd ./usr/src/nv; make clean'...
-> Building kernel module:

--------- SNIP ----------
Many lines of things going ok skipped
--------- SNIP ----------

    ld -m elf_x86_64  --build-id -o /tmp/selfgz3955/NVIDIA-Linux-x86_64-169.0
  4-pkg1/usr/src/nv/nvidia.o /tmp/selfgz3955/NVIDIA-Linux-x86_64-169.04-pkg1/u
  sr/src/nv/nv-kernel.o /tmp/selfgz3955/NVIDIA-Linux-x86_64-169.04-pkg1/usr/sr
  c/nv/nv.o /tmp/selfgz3955/NVIDIA-Linux-x86_64-169.04-pkg1/usr/src/nv/nv-vm.o
  /tmp/selfgz3955/NVIDIA-Linux-x86_64-169.04-pkg1/usr/src/nv/os-agp.o /tmp/sel
  fgz3955/NVIDIA-Linux-x86_64-169.04-pkg1/usr/src/nv/os-interface.o /tmp/selfg
  z3955/NVIDIA-Linux-x86_64-169.04-pkg1/usr/src/nv/os-registry.o /tmp/selfgz39
  55/NVIDIA-Linux-x86_64-169.04-pkg1/usr/src/nv/nv-i2c.o /tmp/selfgz3955/NVIDI
  ld: warning: cannot find entry symbol _start; defaulting to 0000000000400150
  /tmp/selfgz3955/NVIDIA-Linux-x86_64-169.04-pkg1/usr/src/nv/nv.o: In function
  (.text+0x1dd): undefined reference to `boot_cpu_data'
  /tmp/selfgz3955/NVIDIA-Linux-x86_64-169.04-pkg1/usr/src/nv/nv.o: In function
  (.text+0x200): undefined reference to `boot_cpu_data'
  /tmp/selfgz3955/NVIDIA-Linux-x86_64-169.04-pkg1/usr/src/nv/nv.o: In function
  (.text+0x26f): undefined reference to `init_level4_pgt'

--------- SNIP ----------
Many lines of things going to hell skipped
(undefined references for all functions)
--------- SNIP ----------

  nv-i2c.c:(.text+0x367): undefined reference to `snprintf'
  nv-i2c.c:(.text+0x37a): undefined reference to `i2c_add_adapter'  /tmp/selfgz3955/NVIDIA-Linux-x86_64-169.04-pkg1/usr/src/nv/nv-i2c.o:(.data+0
  x0): undefined reference to `__this_module'
  make[3]: *** [/tmp/selfgz3955/NVIDIA-Linux-x86_64-169.04-pkg1/usr/src/nv/nvi
  dia.o] Error 1
  make[2]: *** [_module_/tmp/selfgz3955/NVIDIA-Linux-x86_64-169.04-pkg1/usr/sr
  c/nv] Error 2
  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.

Edit: Ahh, it would help if I actually attach the log >.<

zander 11-27-07 10:41 AM

Re: Problem building 169.04 on Debian AMD64
It looks like the kernel development files you built against do not match the running kernel (e.g. module versioning vs. none, etc.).

Jason1974 11-27-07 11:20 AM

Re: Problem building 169.04 on Debian AMD64
Thanks Zander, 2.6.23 kernel image, headers, kbuild... and 2.6.22 libc-dev files. No idea how that slipped through.

linux-headers-2.6.23-1-amd64 (2.6.23-1~mtu1)
linux-headers-2.6.23-1-common (2.6.23-1~mtu1)
linux-image-2.6.23-1-amd64 (2.6.23-1~mtu1)
linux-kbuild-2.6.23 (2.6.23-1~mtu1)
linux-libc-dev (2.6.22-4)

Looks like I'll have to wait just a bit longer to use the nvidia driver. There's no 'real' 2.6.23 kernels in Debian yet, and 2.6.22 doesn't work with my computer. (Had to use that a backported install disk just to install Linux on this machine)

But at least I know what went wrong, thanks :)

All times are GMT -5. The time now is 01:59 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.