Re: problem s kompilaci jadra


To Debian CZ/SK project discussion list <czdebian-l zavinac debian bod cz>
From Jiří Červenka <cervenka zavinac sps-pi bod cz>
Date Tue, 13 Sep 2005 12:36:44 +0200
User-agent Mozilla Thunderbird 1.0.6 (Windows/20050716)

Ondra Kudlik napsal(a):

Tue, Sep 13, 2005 ve 12:20:16PM +0200, Jiří Červenka napsal:
Ondra Kudlik napsal(a):

Tue, Sep 13, 2005 ve 11:22:55AM +0200, Jiří Červenka napsal:


Ahoj,
pokousim se prave kompilovat jadro, ale kdyz se pokusim spustit make menuconfig tak se objevi takovahle chyba:

gate:/usr/src/linux-2.4.31# make menuconfig
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
make -C scripts/lxdialog all
make[1]: Entering directory `/usr/src/linux-2.4.31/scripts/lxdialog'
/bin/sh: gcc: command not found
rekl bych ze tady. Nemate gcc

gcc mam:

gate:/var/www/live.sps-pi.cz/www/stanice# dpkg -l |grep gcc
ii  gcc-2.95                    2.95.4-22                The GNU C compiler
ii gcc-3.0-base 3.0.4-16 The GNU Compiler Collection (base package)
ii  gcc-3.2                     3.2.3-9                  The GNU C compiler
ii gcc-3.2-base 3.2.3-9 The GNU Compiler Collection (base package)
ii  gcc-3.3                     3.3.6-9                  The GNU C compiler
ii gcc-3.3-base 3.3.6-9 The GNU Compiler Collection (base package) ii gcc-4.0-base 4.0.1-6 The GNU Compiler Collection (base package)
ii  libgcc1                     4.0.1-4                  GCC support library

A je i na /usr/bin/gcc ? Jako ta chyba mi prijde dost jasna, takze
bych hledal jestli neni nekde spatny symlink nebo neco podobneho.

Pripadne apt-get install --reinstall gcc

Po provedeni apt-get install --reinstall gcc mi sice make menuconfig funguje, ale kompilace se po make-kpkg
zasekne :

/usr/src/linux-2.4.31/include/linux/byteorder/swab.h:160: warning: type qualifiers ignored on function return type /usr/src/linux-2.4.31/include/linux/byteorder/swab.h:173: warning: type qualifiers ignored on function return type /usr/src/linux-2.4.31/include/linux/byteorder/swab.h:186: warning: type qualifiers ignored on function return type /usr/src/linux-2.4.31/include/linux/byteorder/swab.h:200: warning: type qualifiers ignored on function return type
In file included from /usr/src/linux-2.4.31/include/linux/prefetch.h:13,
                from /usr/src/linux-2.4.31/include/linux/list.h:6,
                from /usr/src/linux-2.4.31/include/linux/wait.h:14,
                from /usr/src/linux-2.4.31/include/linux/fs.h:12,
                from /usr/src/linux-2.4.31/include/linux/capability.h:17,
                from /usr/src/linux-2.4.31/include/linux/binfmts.h:5,
                from /usr/src/linux-2.4.31/include/linux/sched.h:9,
                from /usr/src/linux-2.4.31/include/linux/mm.h:4,
                from /usr/src/linux-2.4.31/include/linux/slab.h:14,
                from /usr/src/linux-2.4.31/include/linux/proc_fs.h:5,
                from init/main.c:15:
/usr/src/linux-2.4.31/include/asm/processor.h:75: error: array type has incomplete element type
make[1]: *** [init/main.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.31'
make: *** [stamp-build] Error 2

Na googlu sem nasel, ze by mohl pomoct downgrade na gcc 3.3.6 .
Existuje nakej zpusob jak vynutit pouziti gcc 3.3.6 ?




Partial thread listing: