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. [/quote]


[url=http://www.debian.org/][img]http://www.debian.org/logos/openlogo-nd-50.png[/img][/url]

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ą?[/quote]
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.


[url=http://www.debian.org/][img]http://www.debian.org/logos/openlogo-nd-50.png[/img][/url]

Offline

 

Stopka forum

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

[ Generated in 0.010 seconds, 11 queries executed ]

Informacje debugowania

Time (s) Query
0.00008 SET CHARSET latin2
0.00004 SET NAMES latin2
0.00068 SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='18.227.0.57' WHERE u.id=1
0.00082 REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '18.227.0.57', 1732223809)
0.00040 SELECT * FROM punbb_online WHERE logged<1732223509
0.00064 DELETE FROM punbb_online WHERE ident='3.129.69.134'
0.00065 DELETE FROM punbb_online WHERE ident='3.144.21.206'
0.00034 SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=2222 AND t.moved_to IS NULL
0.00034 SELECT search_for, replace_with FROM punbb_censoring
0.00219 SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=2222 ORDER BY p.id LIMIT 0,25
0.00267 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=2222
Total query time: 0.00885 s