Re: problem s kompilaci jadra


To czdebian-l zavinac debian bod cz
From Ondra Kudlik <debian zavinac orthank bod net>
Date Tue, 13 Sep 2005 12:41:53 +0200
User-agent Mutt/1.5.9i

Tue, Sep 13, 2005 ve 12:36:44PM +0200, Jiří Červenka napsal:
> 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 ?

Ano, to bude rozhodne ono. na kernel 2.4 nelze s gcc 4

Jednoduse lze zmenit symbolicky link /usr/bin/gcc aby nevedl na gcc4
ale na nejakou starsi. Pripadne predat make-kpkg verzi kompileru v
promenne, ted netusim presne jake... mozna CC=... make-menuconfig

-- 
 .''`. Ondra 'Kepi' Kudlik
: :' : Debian GNU/Linux User
`. `'
  `-   http://www.nosoftwarepatents.com/cz/m/intro/index.html 



Partial thread listing: