Strona 2 z 3

: 26 maja 2008, 23:27
autor: Latorion
¯eby rozwiązać ten problem z gcc zamiast sh nvidia wpisz

Kod: Zaznacz cały

CC=/usr/bin/gcc-4.1 ./NVIDIA*/
I powinno przez ten moment przejść ;-)
Pozdrawiam
Artur

: 11 czerwca 2008, 23:41
autor: giaur
A co powiecie na to?

Kod: Zaznacz cały

Building kernel module:
   executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.25-2-amd64/
   build SYSOUT=/lib/modules/2.6.25-2-amd64/build'...
   NVIDIA: calling KBUILD...
   make CC=cc  KBUILD_VERBOSE=1 -C /lib/modules/2.6.25-2-amd64/build SUBDIRS=/t
   mp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/src/nv modules
   /bin/sh: /usr/src/linux-headers-2.6.25-2-amd64/scripts/gcc-x86_64-has-stack-
   protector.sh: No such file or directory
   /bin/sh: /usr/src/linux-headers-2.6.25-2-amd64/scripts/gcc-x86_64-has-stack-
   protector.sh: No such file or directory
   test -e include/linux/autoconf.h -a -e include/config/auto.conf || (		\
   	echo;								\
   	echo "  ERROR: Kernel configuration is invalid.";		\
   	echo "         include/linux/autoconf.h or include/config/auto.conf are mis
   sing.";	\
   	echo "         Run 'make oldconfig && make prepare' on kernel src to fix it
   .";	\
   	echo;								\
   	/bin/false)
   mkdir -p /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/src/nv/.tmp_ver
   sions ; rm -f /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/src/nv/.tm
   p_versions/*
   make -f scripts/Makefile.build obj=/tmp/selfgz2658/NVIDIA-Linux-x86_64-171.0
   6-pkg2/usr/src/nv
     cc -Wp,-MD,/tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/src/nv/.nv.
   o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.3.1/include -D__KERN
   EL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-pro
   totypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-fun
   ction-declaration -Os  -fno-stack-protector -m64 -mtune=generic -mno-red-zon
   e -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args  -DCONFIG_AS_C
   FI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronou
   s-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow  -fomit-frame-pointer
   -Wdeclaration-after-statement -Wno-pointer-sign   -I/tmp/selfgz2658/NVIDIA-L
   inux-x86_64-171.06-pkg2/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -
   Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werr
   or -mcmodel=kernel -mno-red-zone -MD   -Wsign-compare -Wno-cast-qual -Wno-er
   ror -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"171.06\" -UDEBUG -U_D
   EBUG -DNDEBUG  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENA
   ME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz2
   658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/src/nv/.tmp_nv.o /tmp/selfgz2658/NVI
   DIA-Linux-x86_64-171.06-pkg2/usr/src/nv/nv.c
   In file included from include/asm/dma-mapping_64.h:9,
                    from include/asm/dma-mapping.h:4,
                    from include/linux/dma-mapping.h:52,
                    from include/asm-generic/pci-dma-compat.h:7,
                    from include/asm/pci.h:90,
                    from include/linux/pci.h:945,
                    from /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/sr
   c/nv/nv-linux.h:86,
                    from /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/sr
   c/nv/nv.c:14:
   include/linux/scatterlist.h: In function 'sg_virt':
   include/linux/scatterlist.h:199: warning: pointer of type 'void *' used in a
   rithmetic
   In file included from include/asm/pci.h:90,
                    from include/linux/pci.h:945,
                    from /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/sr
   c/nv/nv-linux.h:86,
                    from /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/sr
   c/nv/nv.c:14:
   include/asm-generic/pci-dma-compat.h: In function 'pci_map_page':
   include/asm-generic/pci-dma-compat.h:49: warning: pointer of type 'void *' u
   sed in arithmetic
   In file included from /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/sr
   c/nv/nv-linux.h:109,
                    from /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/sr
   c/nv/nv.c:14:
   include/linux/highmem.h: In function 'zero_user_segments':
   include/linux/highmem.h:134: warning: pointer of type 'void *' used in arith
   metic
   include/linux/highmem.h:137: warning: pointer of type 'void *' used in arith
   metic
   In file included from include/linux/compat.h:14,
                    from include/asm/mtrr.h:135,
                    from /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/sr
   c/nv/nv-linux.h:121,
                    from /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/sr
   c/nv/nv.c:14:
   include/asm/compat.h: In function 'compat_alloc_user_space':
   include/asm/compat.h:210: warning: pointer of type 'void *' used in arithmet
   ic
   /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/src/nv/nv.c: In function
   '__nv_setup_pat_entries':
   /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/src/nv/nv.c:944: warning
   : comparison between signed and unsigned
   /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/src/nv/nv.c: In function
   '__nv_restore_pat_entries':
   /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/src/nv/nv.c:970: warning
   : comparison between signed and unsigned
   /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/src/nv/nv.c: In function
   'nv_kern_cpu_callback':
   /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/src/nv/nv.c:1283: warnin
   g: comparison between signed and unsigned
   /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/src/nv/nv.c:1290: warnin
   g: comparison between signed and unsigned
     cc -Wp,-MD,/tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/src/nv/.nv-
   vm.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.3.1/include -D__K
   ERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-
   prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-
   function-declaration -Os  -fno-stack-protector -m64 -mtune=generic -mno-red-
   zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args  -DCONFIG_A
   S_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchro
   nous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow  -fomit-frame-poin
   ter -Wdeclaration-after-statement -Wno-pointer-sign   -I/tmp/selfgz2658/NVID
   IA-Linux-x86_64-171.06-pkg2/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswit
   ch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -
   Werror -mcmodel=kernel -mno-red-zone -MD   -Wsign-compare -Wno-cast-qual -Wn
   o-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"171.06\" -UDEBUG 
   -U_DEBUG -DNDEBUG  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_S
   TR(nv_vm)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz2658/NVID
   IA-Linux-x86_64-171.06-pkg2/usr/src/nv/.tmp_nv-vm.o /tmp/selfgz2658/NVIDIA-
   Linux-x86_64-171.06-pkg2/usr/src/nv/nv-vm.c
   In file included from include/asm/dma-mapping_64.h:9,
                    from include/asm/dma-mapping.h:4,
                    from include/linux/dma-mapping.h:52,
                    from include/asm-generic/pci-dma-compat.h:7,
                    from include/asm/pci.h:90,
                    from include/linux/pci.h:945,
                    from /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/sr
   c/nv/nv-linux.h:86,
                    from /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/sr
   c/nv/nv-vm.c:14:
   include/linux/scatterlist.h: In function 'sg_virt':
   include/linux/scatterlist.h:199: warning: pointer of type 'void *' used in a
   rithmetic
   In file included from include/asm/pci.h:90,
                    from include/linux/pci.h:945,
                    from /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/sr
   c/nv/nv-linux.h:86,
                    from /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/sr
   c/nv/nv-vm.c:14:
   include/asm-generic/pci-dma-compat.h: In function 'pci_map_page':
   include/asm-generic/pci-dma-compat.h:49: warning: pointer of type 'void *' u
   sed in arithmetic
   In file included from /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/sr
   c/nv/nv-linux.h:109,
                    from /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/sr
   c/nv/nv-vm.c:14:
   include/linux/highmem.h: In function 'zero_user_segments':
   include/linux/highmem.h:134: warning: pointer of type 'void *' used in arith
   metic
   include/linux/highmem.h:137: warning: pointer of type 'void *' used in arith
   metic
   In file included from include/linux/compat.h:14,
                    from include/asm/mtrr.h:135,
                    from /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/sr
   c/nv/nv-linux.h:121,
                    from /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/sr
   c/nv/nv-vm.c:14:
   include/asm/compat.h: In function 'compat_alloc_user_space':
   include/asm/compat.h:210: warning: pointer of type 'void *' used in arithmet
   ic
   /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/src/nv/nv-vm.c: In funct
   ion 'nv_set_page_attrib_uncached':
   /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/src/nv/nv-vm.c:64: warni
   ng: 'change_page_attr' is deprecated (declared at include/asm/cacheflush.h:2
   7)
   /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/src/nv/nv-vm.c: In funct
   ion 'nv_set_page_attrib_cached':
   /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/src/nv/nv-vm.c:79: warni
   ng: 'change_page_attr' is deprecated (declared at include/asm/cacheflush.h:2
   7)
   /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/src/nv/nv-vm.c: In funct
   ion 'nv_flush_caches':
   /tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/src/nv/nv-vm.c:364: erro
   r: implicit declaration of function 'global_flush_tlb'
   make[3]: *** [/tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/src/nv/nv-
   vm.o] Error 1
   make[2]: *** [_module_/tmp/selfgz2658/NVIDIA-Linux-x86_64-171.06-pkg2/usr/sr
   c/nv] 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 [url]www.nvidia.com[/url].

Jak sie zdaje, rzecz w tym:

Kod: Zaznacz cały

test -e include/linux/autoconf.h -a -e include/config/auto.conf || (		\
   	echo;								\
   	echo "  ERROR: Kernel configuration is invalid.";		\
   	echo "         include/linux/autoconf.h or include/config/auto.conf are mis
   sing.";	\
   	echo "         Run 'make oldconfig && make prepare' on kernel src to fix it
   .";	\
   	echo;								\
   	/bin/false)

Tylko czemu nie widzi tego autoconf.h? W katalogu zrodel kernal jest ten plik... W ogole wszystkie pliki i katalogi w linux headers sa analogiczne jak bylo w 2.4.24

Wiec o co kaman :shock: Wie ktos?

: 15 czerwca 2008, 12:14
autor: _dexter
Widzę że dużo osób miało problem ze sterownikami na nowym kernelu.
Zapytam się więc czy wszystko działa już jak należy (czyt. można zainstalować sterowniki ze strony nvidi)
czy nadal jedynym sposobem jest własna kompilacja jajka.
Z góry dziękuję za odpowiedź i pozdrawiam.

: 15 czerwca 2008, 12:39
autor: PhockouS
Niestety, ale dalej nici z akceleracji na tym jajeczku.

Pozostaje Ci albo kompilacja kernela lub (co zrobiłem ja) instalacja kernela z repo lenny'ego - 2.6.24-1.

: 15 czerwca 2008, 12:45
autor: _dexter
Ok dzięki.
Zaciekawił mnie po prostu wpis na blogu:
http://404.g-net.pl/?p=576
w którym to autor zainstalował sterowniki na nowym jajku.
Trzeba będzie i tego spróbować, chyba że ktoś już to testował. Jeśli tak niech podzieli się opinią czy wszystko działa

: 15 czerwca 2008, 12:49
autor: PhockouS
No, faktycznie, może podziałać - ale po co tak mieszać ;-) Nie lepiej zainstalowałać starsze jajko i cieszyć się bezproblemową pracą systemu? ;-)
giaur pisze:Bez obaw panowie, najnowsze sterowniki instaluja sie na kernelu 2.6.25 bez problemu.

Ja zainstalowalem wersje 173.14 i jest ok - błąd kompilacji, ktory pokazalem powyzej wynikał z tego, ze tamta wersja sterów była niekompatybilna z najnowszym kernelem.

Mam 2.6.25 z repo (amd64) i dziala, ale cos slyszalem, ze w wersji 32-bitowej kernel w repo byl zle skompilowany (jako XEN, co takze uniemozliwialo instalacje sterów nvidia) - nie wiem czy juz poprawili czy nie

[edit]
Widze ze w cytowanym powyzej poscie jest o tym mowa - od siebie moge powiedziec ze w wersji amd64 z repo tego błędu nie ma i nie było, a stery instalują się bez zadnych problemów i kombinacji
No właśnie na AMD64 nie ma tego błędu, wiem od Pakosa. Tymczasem na *-686 błąd jest w dalszym ciągu..

: 15 czerwca 2008, 12:51
autor: _dexter
Lubię nowinki stąd moje kombinowanie. Jak nic nie wyjdzie skompiluje sobie nowe jajko. Sic!

: 15 czerwca 2008, 13:03
autor: giaur
Bez obaw panowie, najnowsze sterowniki instaluja sie na kernelu 2.6.25 bez problemu.

Ja zainstalowalem wersje 173.14 i jest ok - błąd kompilacji, ktory pokazalem powyzej wynikał z tego, ze tamta wersja sterów była niekompatybilna z najnowszym kernelem.

Mam 2.6.25 z repo (amd64) i dziala, ale cos slyszalem, ze w wersji 32-bitowej kernel w repo byl zle skompilowany (jako XEN, co takze uniemozliwialo instalacje sterów nvidia) - nie wiem czy juz poprawili czy nie

[edit]
Widze ze w cytowanym powyzej poscie jest o tym mowa - od siebie moge powiedziec ze w wersji amd64 z repo tego błędu nie ma i nie było, a stery instalują się bez zadnych problemów i kombinacji

: 15 czerwca 2008, 17:08
autor: _dexter
No właśnie głównie chodzi mi o kernel w wersji 32-b, trochę w nim namieszano i nie wiem czy błąd jest już poprawiony czy występuje nadal.

: 15 czerwca 2008, 18:03
autor: giaur
Hmm coraz czesciej widze debianowe wpadki, najpierw vlc to pal szesc bo to niby malo wazne, ale zeby wpuscic do repo kernel zle skompilowany.... to juz przesada