nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   General Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=27)
-   -   SuSE 9.1 x86, 2.6.6-mm kernels and driver 5336 won't build (http://www.nvnews.net/vbulletin/showthread.php?t=28783)

siddly 05-15-04 04:07 AM

SuSE 9.1 x86, 2.6.6-mm kernels and driver 5336 won't build
 
I haven't used the official SuSE kernel. When building the driver for the 2.6.6-mm kernels, I get the following errors using either gcc-3.3.3 or gcc-3.4.1. Kernels built with the make-4k-stacks-permanent.patch reversed.
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.6-mm2/build
'...
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz9601/NVI
DIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv_compiler.h
CC [M] /tmp/selfgz9601/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/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src
/nv/nv-linux.h:52,
from /tmp/selfgz9601/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/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function
`nvos_malloc_pages':
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:385: warning:
use of cast expressions as lvalues is deprecated
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function
`nvos_create_alloc':
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:513: warning:
use of cast expressions as lvalues is deprecated
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:523: warning:
use of cast expressions as lvalues is deprecated
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: At top level
:
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:1185: warning
: initialization from incompatible pointer type
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function
`nv_alloc_file_private':
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:1193: warning
: use of cast expressions as lvalues is deprecated
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:1204: warning
: use of cast expressions as lvalues is deprecated
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function
`nv_kern_open':
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:1265: warning
: use of cast expressions as lvalues is deprecated
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function
`nv_kern_ctl_open':
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:1914: warning
: use of cast expressions as lvalues is deprecated
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: At top level
:
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2010: error:
conflicting types for `nv_set_hotkey_occurred_flag'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:350: error: p
revious declaration of `nv_set_hotkey_occurred_flag'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2197: error:
conflicting types for `nv_find_nv_mapping'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:339: error: p
revious declaration of `nv_find_nv_mapping'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2269: error:
conflicting types for `nv_find_agp_kernel_mapping'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:341: error: p
revious declaration of `nv_find_agp_kernel_mapping'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2345: error:
conflicting types for `nv_get_kern_phys_address'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:342: error: p
revious declaration of `nv_get_kern_phys_address'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2375: error:
conflicting types for `nv_get_user_phys_address'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:343: error: p
revious declaration of `nv_get_user_phys_address'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2406: error:
conflicting types for `nv_alloc_pages'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:353: error: p
revious declaration of `nv_alloc_pages'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2594: error:
conflicting types for `nv_free_pages'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:354: error: p
revious declaration of `nv_free_pages'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2692: error:
conflicting types for `nv_lock_rm'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:345: error: p
revious declaration of `nv_lock_rm'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2712: error:
conflicting types for `nv_unlock_rm'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:346: error: p
revious declaration of `nv_unlock_rm'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2726: error:
conflicting types for `nv_lock_heap'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:347: error: p
revious declaration of `nv_lock_heap'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2736: error:
conflicting types for `nv_unlock_heap'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:348: error: p
revious declaration of `nv_unlock_heap'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2752: error:
conflicting types for `nv_post_event'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:363: error: p
revious declaration of `nv_post_event'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2790: error:
conflicting types for `nv_get_event'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:364: error: p
revious declaration of `nv_get_event'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2833: error:
conflicting types for `nv_agp_init'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:356: error: p
revious declaration of `nv_agp_init'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2895: error:
conflicting types for `nv_agp_teardown'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:357: error: p
revious declaration of `nv_agp_teardown'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2936: error:
conflicting types for `nv_agp_translate_address'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:358: error: p
revious declaration of `nv_agp_translate_address'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2968: error:
conflicting types for `nv_int10h_call'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:351: error: p
revious declaration of `nv_int10h_call'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2977: error:
conflicting types for `nv_start_rc_timer'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:360: error: p
revious declaration of `nv_start_rc_timer'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2998: error:
conflicting types for `nv_stop_rc_timer'
/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:361: error: p
revious declaration of `nv_stop_rc_timer'
make[3]: *** [/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.o
] Error 1
make[2]: *** [/tmp/selfgz9601/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv] Err
or 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.
Regards
Sid.

siddly 05-15-04 08:34 PM

Re: SuSE 9.1 x86, 2.6.6-mm kernels and driver 5336 won't build
 
With the patch from www.minion.de, I now have 5336 working on kernel 2.6.6-mm2. The docs suggested I needed to have a kernel with CONFIG_REGPARM not set, however, such a kernel caused a segfault in hotplug.usb and the machine to freeze. With CONFIG_REGPARM=y, it's AOK.
***********BEWARE************* the 2.6.6-mm make-4k-stacks-permanent.patch can criple your hard drive, before I knew about the patch and nvidia, I ended up with a hard drive that would hang somewhere in init, but nearly all the data is accessible with it as hdc1/swap. On the second drive I installed SuSE 9.0 on, I checked my .config but forgot to reverse the patch and that time I had to do a fresh install with reformat of my root partition. init 5 was all it needed to do the damage.


All times are GMT -5. The time now is 04:56 PM.

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