Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2005-11-13 15:40:52

  gbudny - Użytkownik

gbudny
Użytkownik
Zarejestrowany: 2005-06-03

gcc nvidia i programy ze źródeł

Witam

MAm taki problem mam debian w wersji testing i problem z gcc
Próbowałem skompilować sobie sterownik niestety nie udało się prze gcc.
Podobnie było z mplayer

debian:/usr/src/modules/nvidia-kernel# debian/rules binary_modules
cat: /include/linux/version.h: Nie ma takiego pliku ani katalogu
/bin/sh: line 0: test: -ge: unary operator expected
# select which makefile to use.
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true
if [ 4 = 6  ]; then
     cd /usr/src/modules/nvidia-kernel/nv ;
     ln -s Makefile.kbuild Makefile ;
     cd .. ;
     if [ 0  = 1 ] ; then
        dpatch apply 04_minion ;
     fi ;
     if [ 0 = 1 ]; then
        dpatch apply 01_sysfs ;
        dpatch status 01_sysfs >patch-stamp ;
        dpatch apply 02_pcialias ;
                dpatch status 02_pcialias >>patch-stamp ;
     fi ;
fi
if [  4 = 4  ]; then
     cd /usr/src/modules/nvidia-kernel/nv ;
     ln -s Makefile.nvidia Makefile ;
     cd .. ;
fi
#nothing here anymore
touch configure-stamp
if [ -f /usr/src/modules/nvidia-kernel/debian/control.template ]; then
        cp  /usr/src/modules/nvidia-kernel/debian/control.template /usr/src/modules/nvidia-kernel/debian/control;
fi
dh_testdir
dh_testroot
PATCHLEVEL = 4
Kernel compiler version : 3.3.6
Detected compiler version : 4.0.2

You appear to be compiling the NVIDIA kernel module with
a compiler different from the one that was used to compile
the running kernel. This may be perfectly alright and you
may be building this module for another kernel in which case
you may ignore this message.

The compiler that will be used to compile this module has been
determined from:
1) the CC environment variable
2) that specified in
    /include/linux/compile.h
3) gcc
Using compiler gcc version 4.0.2
touch /usr/src/modules/nvidia-kernel/nv/gcc-check
touch /usr/src/modules/nvidia-kernel/nv/cc-sanity-check
## Main Make ##
IGNORE_CC_MISMATCH=1 CC="gcc"  /usr/bin/make -C /usr/src/modules/nvidia-kernel/nv -f Makefile SYSSRC=   KBUILD_PARAMS="-C  SUBDIRS=/usr/src/modules/nvidia-kernel/nv" module;
make[1]: Entering directory `/usr/src/modules/nvidia-kernel/nv'
gcc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith  -Wno-multichar  -Werror -O -fno-common -UDEBUG -U_DEBUG -DNDEBUG -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7174  -DNV_UNIX   -DNV_LINUX   -DNV_INT64_OK   -DNVCPU_X86       -I. -I/lib/modules/2.4.27-2-k7/build/include -Wsign-compare -Wno-cast-qual -Wno-error nv.c
In file included from /lib/modules/2.4.27-2-k7/build/include/linux/kernel.h:15,
                 from nv-linux.h:45,
                 from nv.c:14:
/lib/modules/2.4.27-2-k7/build/include/asm/byteorder.h:14: warning: type qualifiers ignored on function return type
/lib/modules/2.4.27-2-k7/build/include/asm/byteorder.h:30: warning: type qualifiers ignored on function return type
In file included from /lib/modules/2.4.27-2-k7/build/include/linux/byteorder/little_endian.h:11,
                 from /lib/modules/2.4.27-2-k7/build/include/asm/byteorder.h:65,                 from /lib/modules/2.4.27-2-k7/build/include/linux/kernel.h:15,
                 from nv-linux.h:45,
                 from nv.c:14:
/lib/modules/2.4.27-2-k7/build/include/linux/byteorder/swab.h:160: warning: type qualifiers ignored on function return type
/lib/modules/2.4.27-2-k7/build/include/linux/byteorder/swab.h:173: warning: type qualifiers ignored on function return type
/lib/modules/2.4.27-2-k7/build/include/linux/byteorder/swab.h:186: warning: type qualifiers ignored on function return type
/lib/modules/2.4.27-2-k7/build/include/linux/byteorder/swab.h:200: warning: type qualifiers ignored on function return type
In file included from /lib/modules/2.4.27-2-k7/build/include/linux/prefetch.h:13,
                 from /lib/modules/2.4.27-2-k7/build/include/linux/list.h:6,
                 from /lib/modules/2.4.27-2-k7/build/include/linux/module.h:13,
                 from nv-linux.h:46,
                 from nv.c:14:
/lib/modules/2.4.27-2-k7/build/include/asm/processor.h:75: error: array type has incomplete element type
In file included from /lib/modules/2.4.27-2-k7/build/include/linux/vmalloc.h:8,
                 from nv-linux.h:56,
                 from nv.c:14:
/lib/modules/2.4.27-2-k7/build/include/linux/highmem.h: In function 'bh_kmap':
/lib/modules/2.4.27-2-k7/build/include/linux/highmem.h:20: warning: pointer of type 'void *' used in arithmetic
In file included from nv.c:14:
nv-linux.h:691:2: warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
nv.c: In function 'nv_kern_read_cardinfo':
nv.c:2188: warning: pointer targets in passing argument 4 of 'rm_get_device_name' differ in signedness
nv.c: In function 'nv_kern_read_status':
nv.c:2350: warning: pointer targets in passing argument 2 of 'rm_read_registry_dword' differ in signedness
nv.c:2350: warning: pointer targets in passing argument 3 of 'rm_read_registry_dword' differ in signedness
nv.c:2350: warning: pointer targets in passing argument 4 of 'rm_read_registry_dword' differ in signedness
nv.c:2351: warning: pointer targets in passing argument 2 of 'rm_read_registry_dword' differ in signedness
nv.c:2351: warning: pointer targets in passing argument 3 of 'rm_read_registry_dword' differ in signedness
nv.c:2351: warning: pointer targets in passing argument 4 of 'rm_read_registry_dword' differ in signedness
nv.c: In function 'nv_alloc_pages':
nv.c:2702: warning: pointer targets in passing argument 5 of 'KernAllocAGPPages' differ in signedness
nv.c:2732: warning: pointer targets in passing argument 6 of 'rm_alloc_agp_pages' differ in signedness
make[1]: *** [nv.o] Błąd 1
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel/nv'
make: *** [build-stamp] Błąd 2
debian:/usr/src/modules/nvidia-kernell#

CZy ktoś miał już taki problem
Bardzo proszę o pomoc jeśli ktopś już miał problem z gcc

                                                                                       Pozdrawiam


BUY LINUX GAMES
Support Game Companies who Support Linux Gaming.

Offline

 

#2  2005-11-13 15:52:14

  czadman - Bicycle repairman

czadman
Bicycle repairman
Skąd: Wrocław
Zarejestrowany: 2005-07-08

Re: gcc nvidia i programy ze źródeł

Może prościej od razu binarkę do tego jądra zainstalować?
http://packages.debian.org/testing/x11/nvidia-kernel-2.4.27-2-k7
Moduł powinien być kompilowany tą samą wersją kompilatroa co jądro.

You appear to be compiling the NVIDIA kernel module with
a compiler different from the one that was used to compile
the running kernel. This may be perfectly alright and you
may be building this module for another kernel in which case
you may ignore this message.


http://www.debian.org/logos/openlogo-nd-50.png

Offline

 

#3  2005-11-14 14:53:11

  gbudny - Użytkownik

gbudny
Użytkownik
Zarejestrowany: 2005-06-03

Re: gcc nvidia i programy ze źródeł

dzięki akceleracja już działa. Mam  pytanie odnośnie sterów nvidia z apt. Kiedy pojawi się nowsza wersja tych sterowników? Co jaki czas one wychodzą?


BUY LINUX GAMES
Support Game Companies who Support Linux Gaming.

Offline

 

#4  2005-11-14 16:37:38

  czadman - Bicycle repairman

czadman
Bicycle repairman
Skąd: Wrocław
Zarejestrowany: 2005-07-08

Re: gcc nvidia i programy ze źródeł

dzięki akceleracja już działa. Mam  pytanie odnośnie sterów nvidia z apt. Kiedy pojawi się nowsza wersja tych sterowników? Co jaki czas one wychodzą?

W przypadku sarge to nowa wersja sterowników już raczej nie wyjdzie. Druga sprawa. Jeśli nie masz najnowszego modelu karty graficznej nvidii to raczej nie masz potrzeby aktualizacji sterowników. W nowszych sterwnikach zmiany dotyczą głównie nowych modeli nvidii. Najnowsza wersja sterowników jest w repozytorium experimental, ale wymagała by kompilacji. Zawsze możesz ściągnąć sterownik ze strony i zainstalować, lecz sądzę, że to się nie opłaca.


http://www.debian.org/logos/openlogo-nd-50.png

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Możesz wyłączyć AdBlock — tu nie ma reklam ;-)