You are not logged in.

#1 2004-06-08 06:02:56

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,615
Website

NVIDIA drivers were not compiling..

I managed to get the nvidia drivers to compile on my system. It seems that the nvidia installer was defaulting to /lib/modules/2.6.6/build, and was consistenly failing to compile.
I had to pass an arg to the NVIDIA installer as follows

./NVIDIA-Linux-x86-1.0-5336-pkg1.run --kernel-source-path=/usr/src/linux-2.6.6/

that fixed it..
weirdness..


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#2 2004-06-08 10:42:46

Namlook
Member
From: France / Montpellier
Registered: 2004-05-30
Posts: 74

Re: NVIDIA drivers were not compiling..

an another  solution would be to create a symlinks :

# ln -s linux-2.6.6 linux

But thanks for your tips !

Oh, another thing : if you got a 2.4.25 kernel and the nvidia driver  doesn't want to compile, try to downgrade your gcc-3.4 to gcc-3.3. I got problem with this version of gcc.

Namlook :-)

Offline

#3 2004-06-08 11:32:48

Greg
Member
From: Geneva, Switzerland
Registered: 2002-12-07
Posts: 22
Website

Re: NVIDIA drivers were not compiling..

ain't working for me... here's the log. someone help please... wink

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Tue Jun  8 13:19:19 2004

option status:
  license pre-accepted    : false
  update                  : false
  force update            : false
  expert                  : false
  uninstall               : false
  driver info             : false
  no precompiled interface: false
  no ncurses color        : false
  query latest driver ver : false
  OpenGL header files     : false
  no questions            : false
  silent                  : false
  XFree86 install prefix  : /usr/X11R6
  OpenGL install prefix   : /usr
  Installer install prefix: /usr
  kernel source path      : /usr/src/linux-2.6.6
  kernel install path     : (not specified)
  proc mount point        : /proc
  ui                      : (not specified)
  tmpdir                  : /tmp
  ftp site                : ftp://download.nvidia.com

Using: nvidia-installer ncurses user interface
-> 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.
-> Using the kernel source path '/usr/src/linux-2.6.6' as specified by the
   '--kernel-source-path' commandline option.
-> Kernel source path: '/usr/src/linux-2.6.6'
-> Performing cc_version_check with CC="cc".
-> Cleaning kernel module build directory.
   executing: 'cd ./usr/src/nv; make clean'...
   rm -f -f nv.o os-agp.o os-interface.o os-registry.o nv.o os-agp.o os-interfa
   ce.o os-registry.o nvidia.mod.o
   rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
   rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
-> Building kernel module:
   executing: 'cd ./usr/src/nv; make module SYSSRC=/usr/src/linux-2.6.6'...
   echo #define NV_COMPILER "`cc -v 2>&1 | tail -n 1`" > /tmp/selfgz880/NVID
   IA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv_compiler.h
     CC [M]  /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.o
   In file included from include/linux/list.h:7,
                    from include/linux/wait.h:14,
                    from include/asm/semaphore.h:41,
                    from include/linux/sched.h:18,
                    from include/linux/module.h:10,
                    from /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/
   nv/nv-linux.h:52,
                    from /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/
   nv/nv.c:14:
   include/linux/prefetch.h: In function `prefetch_range':
   include/linux/prefetch.h:62: warning: pointer of type `void *' used in arith
   metic
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function `
   nvos_malloc_pages':
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:385: warning:
   use of cast expressions as lvalues is deprecated
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function `
   nvos_create_alloc':
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:513: warning:
   use of cast expressions as lvalues is deprecated
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:523: warning:
   use of cast expressions as lvalues is deprecated
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: At top level:
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:1185: warning:
   initialization from incompatible pointer type
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function `
   nv_alloc_file_private':
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:1193: warning:
   use of cast expressions as lvalues is deprecated
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:1204: warning:
   use of cast expressions as lvalues is deprecated
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function `
   nv_kern_open':
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:1265: warning:
   use of cast expressions as lvalues is deprecated
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function `
   nv_kern_ctl_open':
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:1914: warning:
   use of cast expressions as lvalues is deprecated
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: At top level:
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2010: error: c
   onflicting types for 'nv_set_hotkey_occurred_flag'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:350: error: pr
   evious declaration of 'nv_set_hotkey_occurred_flag' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2010: error: c
   onflicting types for 'nv_set_hotkey_occurred_flag'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:350: error: pr
   evious declaration of 'nv_set_hotkey_occurred_flag' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2197: error: c
   onflicting types for 'nv_find_nv_mapping'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:339: error: pr
   evious declaration of 'nv_find_nv_mapping' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2197: error: c
   onflicting types for 'nv_find_nv_mapping'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:339: error: pr
   evious declaration of 'nv_find_nv_mapping' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2269: error: c
   onflicting types for 'nv_find_agp_kernel_mapping'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:341: error: pr
   evious declaration of 'nv_find_agp_kernel_mapping' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2269: error: c
   onflicting types for 'nv_find_agp_kernel_mapping'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:341: error: pr
   evious declaration of 'nv_find_agp_kernel_mapping' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2345: error: c
   onflicting types for 'nv_get_kern_phys_address'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:342: error: pr
   evious declaration of 'nv_get_kern_phys_address' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2345: error: c
   onflicting types for 'nv_get_kern_phys_address'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:342: error: pr
   evious declaration of 'nv_get_kern_phys_address' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2375: error: c
   onflicting types for 'nv_get_user_phys_address'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:343: error: pr
   evious declaration of 'nv_get_user_phys_address' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2375: error: c
   onflicting types for 'nv_get_user_phys_address'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:343: error: pr
   evious declaration of 'nv_get_user_phys_address' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2406: error: c
   onflicting types for 'nv_alloc_pages'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:353: error: pr
   evious declaration of 'nv_alloc_pages' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2406: error: c
   onflicting types for 'nv_alloc_pages'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:353: error: pr
   evious declaration of 'nv_alloc_pages' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2594: error: c
   onflicting types for 'nv_free_pages'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:354: error: pr
   evious declaration of 'nv_free_pages' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2594: error: c
   onflicting types for 'nv_free_pages'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:354: error: pr
   evious declaration of 'nv_free_pages' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2692: error: c
   onflicting types for 'nv_lock_rm'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:345: error: pr
   evious declaration of 'nv_lock_rm' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2692: error: c
   onflicting types for 'nv_lock_rm'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:345: error: pr
   evious declaration of 'nv_lock_rm' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2712: error: c
   onflicting types for 'nv_unlock_rm'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:346: error: pr
   evious declaration of 'nv_unlock_rm' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2712: error: c
   onflicting types for 'nv_unlock_rm'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:346: error: pr
   evious declaration of 'nv_unlock_rm' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2726: error: c
   onflicting types for 'nv_lock_heap'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:347: error: pr
   evious declaration of 'nv_lock_heap' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2726: error: c
   onflicting types for 'nv_lock_heap'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:347: error: pr
   evious declaration of 'nv_lock_heap' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2736: error: c
   onflicting types for 'nv_unlock_heap'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:348: error: pr
   evious declaration of 'nv_unlock_heap' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2736: error: c
   onflicting types for 'nv_unlock_heap'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:348: error: pr
   evious declaration of 'nv_unlock_heap' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2752: error: c
   onflicting types for 'nv_post_event'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:363: error: pr
   evious declaration of 'nv_post_event' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2752: error: c
   onflicting types for 'nv_post_event'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:363: error: pr
   evious declaration of 'nv_post_event' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2790: error: c
   onflicting types for 'nv_get_event'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:364: error: pr
   evious declaration of 'nv_get_event' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2790: error: c
   onflicting types for 'nv_get_event'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:364: error: pr
   evious declaration of 'nv_get_event' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2833: error: c
   onflicting types for 'nv_agp_init'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:356: error: pr
   evious declaration of 'nv_agp_init' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2833: error: c
   onflicting types for 'nv_agp_init'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:356: error: pr
   evious declaration of 'nv_agp_init' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2895: error: c
   onflicting types for 'nv_agp_teardown'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:357: error: pr
   evious declaration of 'nv_agp_teardown' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2895: error: c
   onflicting types for 'nv_agp_teardown'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:357: error: pr
   evious declaration of 'nv_agp_teardown' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2936: error: c
   onflicting types for 'nv_agp_translate_address'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:358: error: pr
   evious declaration of 'nv_agp_translate_address' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2936: error: c
   onflicting types for 'nv_agp_translate_address'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:358: error: pr
   evious declaration of 'nv_agp_translate_address' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2968: error: c
   onflicting types for 'nv_int10h_call'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:351: error: pr
   evious declaration of 'nv_int10h_call' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2968: error: c
   onflicting types for 'nv_int10h_call'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:351: error: pr
   evious declaration of 'nv_int10h_call' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2977: error: c
   onflicting types for 'nv_start_rc_timer'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:360: error: pr
   evious declaration of 'nv_start_rc_timer' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2977: error: c
   onflicting types for 'nv_start_rc_timer'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:360: error: pr
   evious declaration of 'nv_start_rc_timer' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2998: error: c
   onflicting types for 'nv_stop_rc_timer'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:361: error: pr
   evious declaration of 'nv_stop_rc_timer' was here
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2998: error: c
   onflicting types for 'nv_stop_rc_timer'
   /tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:361: error: pr
   evious declaration of 'nv_stop_rc_timer' was here
   make[3]: *** [/tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.o]
   Error 1
   make[2]: *** [/tmp/selfgz880/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv] Erro
   r 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.

thanks
greg

Offline

#4 2004-06-08 15:38:10

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: NVIDIA drivers were not compiling..

you could try doing what i did last night when i returned to arch linux

run abs (as root)

cd /var/abs/kernels/kernel26

makepkg

cd src/

rm -rf /usr/src/linux-2.6.6 (please note that you are removing the existing linux-2.6.6 in /usr/src  don't remove the linux-2.6.6 directory in the working directory its the one you want)

mv linux-2.6.6 /usr/src/

then run the NVIDIA installer.

hth


AKA uknowme

I am not your friend

Offline

#5 2004-06-08 15:44:08

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: NVIDIA drivers were not compiling..

Did you actually have to do that?  From kernel 2.6.5 and later, all the files needed to compile any modules should be included with the package, so recompiling the kernel is no longer needed.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#6 2004-06-08 15:59:57

Greg
Member
From: Geneva, Switzerland
Registered: 2002-12-07
Posts: 22
Website

Re: NVIDIA drivers were not compiling..

sarah31,
i actually have already done this... with no luck hmm

any other ideas?
greg

Offline

#7 2004-06-08 16:18:03

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: NVIDIA drivers were not compiling..

sarah31 wrote:

you could try doing what i did last night when i returned to arch linux

Are you serious?  The great one has returned? I'm so proud of you.  8)

Offline

#8 2004-06-08 16:44:39

Neje
Member
From: Netherlands
Registered: 2004-05-03
Posts: 26

Re: NVIDIA drivers were not compiling..

Greg, I'm having this problem on a Slackware install I'm fooling around with.

I haven't yet been able to solve this, and now I'm monitoring this Gentoo bug http://bugs.gentoo.org/show_bug.cgi?id=50820.
Some say it has something to do with a certain kernel patch that has to be undone http://bugs.gentoo.org/show_bug.cgi?id=48030. I've not really investigated this. "move this module to modpost" (?) or something. Maybe worth another look.

People say it has something to do with gcc versions, but they don't matter here (3.3.3/3.4.0), driver versions 5336/5341 (leaked driver, was supposed to fix some stuff) give me the same results.

Googling around tells me there are many problems with nvidia and 2.6.6 when kernel options like 4k stacks (instead of 8k stacks) and something like regparm(s) are activated (people with Fedora Core are experiencing this). But in the Slack kernel I got from its "testing" dir, they aren't.

In short, if you fix this, I'd like to hear your solution as well ;-)

Offline

#9 2004-06-08 17:42:02

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,262

Re: NVIDIA drivers were not compiling..

have a look at:
http://wiki.archlinux.org/index.php/How to install NVIDIA Driver

and at my package at:
http://bbs.archlinux.org/viewtopic.php?t=4004

you have to compile the module with the compiler you compiled the kernel

Offline

#10 2004-06-08 18:36:20

Greg
Member
From: Geneva, Switzerland
Registered: 2002-12-07
Posts: 22
Website

Re: NVIDIA drivers were not compiling..

okay... it works flawless with the patch from that minion.de site.

do sh NVIDIA-Linux-x86-1.0-5336-pkg0.run --extract-only
then go to the extracted dir, inside that dir to usr/src/nv and apply that minion.de-patch.
do a make inside that dir.
do a make install inside that dir.
get to the main -dir (NVIDIA-Linux-x86-1.0-5336-pkg0) and run ./nvidia-installer

files needed for this stunt are:
http://www.sh.nu/download/nvidia/NVIDIA … 6-pkg0.run
http://www.minion.de/files/NVIDIA_kerne … 6-2.6.diff


ps.: any ideas how to test if the driver is fully working?

Offline

#11 2004-06-08 18:39:00

dpb
Member
From: Cyperspace?
Registered: 2004-04-11
Posts: 231

Re: NVIDIA drivers were not compiling..

Well, I got the nvidia module compiled ok (and I have the includes in /usr/src/linux-2.6.6/ like it should be). But I got a problem now. The module works, X boots ok (and the nvidia logo shows too). But when I try to go to console with Ctrl+Alt+#, I only get a black screen. When I quit X, the black screen still stays. I cannot see what I type, but it seems to type anyway. Atleast I can write 'reboot' and press enter and in a bit it reboots. Has anyone had a similar experience? How could I fix this?

Offline

#12 2004-06-08 19:32:17

Neje
Member
From: Netherlands
Registered: 2004-05-03
Posts: 26

Re: NVIDIA drivers were not compiling..

I have it working now too, and no idea what I did differently. I remember throwing include directories around, starting kernel and module compiles to let the system know where my kernel sources are (I remember having to do that before), and now it works. Weird.

any ideas how to test if the driver is fully working?

I recommend pacmanning tuxracer or foobillard ;-)

Has anyone had a similar experience? How could I fix this?

Are you using rivafb, by any chance? I heard it doesn't get along with the nvidia drivers. vesafb should be okay.

Offline

#13 2004-06-08 20:20:47

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: NVIDIA drivers were not compiling..

Xentac wrote:

Did you actually have to do that?  From kernel 2.6.5 and later, all the files needed to compile any modules should be included with the package, so recompiling the kernel is no longer needed.

yes i did actually. even following the wiki suggestions didn't work. not a big deal except it takes forever to compile those 2.6 kernels imo.


AKA uknowme

I am not your friend

Offline

#14 2004-06-08 20:53:51

dpb
Member
From: Cyperspace?
Registered: 2004-04-11
Posts: 231

Re: NVIDIA drivers were not compiling..

Neje wrote:

Has anyone had a similar experience? How could I fix this?

Are you using rivafb, by any chance? I heard it doesn't get along with the nvidia drivers. vesafb should be okay.

Hmm.. I'm not sure what rivafb is.  :?
But I got it fixed by adding vga=773 to my grub menu.lst. Thanks.

Offline

#15 2004-06-08 20:54:24

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: NVIDIA drivers were not compiling..

sarah31 wrote:

yes i did actually. even following the wiki suggestions didn't work. not a big deal except it takes forever to compile those 2.6 kernels imo.

Which wiki suggestions, specifically?  I never had any trouble with kernel 2.6 and nvidia since 2.6.5.  I used the stock 2.6.5 kernel and have used a custom 2.6.6 kernel and both work fine. What errors, etc did you get? I'll need to update the wiki to reflect either your painful solution, or a workaround for it.

Dusty

Offline

#16 2004-06-09 20:12:24

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: NVIDIA drivers were not compiling..

Dusty wrote:
sarah31 wrote:

you could try doing what i did last night when i returned to arch linux

Are you serious?  The great one has returned? I'm so proud of you.  8)

Wasn't this nr 1 on my arch 0.7 to do list? There was a nr 2 also but I don't remember what it was. big_smile


arch + gentoo + initng + python = enlisy

Offline

#17 2004-06-09 21:20:27

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: NVIDIA drivers were not compiling..

Dusty wrote:
sarah31 wrote:

yes i did actually. even following the wiki suggestions didn't work. not a big deal except it takes forever to compile those 2.6 kernels imo.

Which wiki suggestions, specifically?  I never had any trouble with kernel 2.6 and nvidia since 2.6.5.  I used the stock 2.6.5 kernel and have used a custom 2.6.6 kernel and both work fine. What errors, etc did you get? I'll need to update the wiki to reflect either your painful solution, or a workaround for it.

Dusty

hmmm...  well you certainly don't know the wiki very well ...

http://wiki.archlinux.org/index.php/How … A%20Driver


AKA uknowme

I am not your friend

Offline

Board footer

Powered by FluxBB