Newsgroup: it.comp.os.linux.sys
Titolo: Compilazione Kernel 2.4.0

Sto cercando di compilare il Kernel 2.4.0 ma guardate un po' cosa
ottengo dopo aver eseguito senza problemi make menuconfig e make dep :
[root@thunder linux-2.4.0]# make -w bzImage
make: Entering directory `/usr/src/linux-2.4.0'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.0/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -pipe
-mpreferred-stack-boundary=2 -march=a
thlon  -fno-strict-aliasing  -DUTS_MACHINE='"i386"' -c -o init/version.o
init/version.c
make CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.0/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -pipe
-mpreferred-stack-boundary=2
 -march=athlon  -fno-strict-aliasing " -C  kernel
make[1]: Entering directory `/usr/src/linux-2.4.0/kernel'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.4.0/kernel'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.0/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -pipe
-mpreferred-stack-boundary=2 -march=a
thlon  -fno-strict-aliasing    -DEXPORT_SYMTAB -c signal.c
In file included from
/usr/src/linux-2.4.0/include/linux/modversions.h:70,
                 from /usr/src/linux-2.4.0/include/linux/module.h:20,
                 from signal.c:11:
/usr/src/linux-2.4.0/include/linux/modules/i386_ksyms.ver:6:18: warning:
"cpu_data" redefined
/usr/src/linux-2.4.0/include/asm/processor.h:110:1: warning: this is the
location of the previous definition
/usr/src/linux-2.4.0/include/linux/modules/i386_ksyms.ver:26:22:
warning: "smp_num_cpus" redefined
/usr/src/linux-2.4.0/include/linux/smp.h:79:1: warning: this is the
location of the previous definition
/usr/src/linux-2.4.0/include/linux/modules/i386_ksyms.ver:120:27:
warning: "smp_call_function" redefined
/usr/src/linux-2.4.0/include/linux/smp.h:86:1: warning: this is the
location of the previous definition
/usr/src/linux-2.4.0/include/linux/modules/i386_ksyms.ver:134:24:
warning: "cpu_online_map" redefined
/usr/src/linux-2.4.0/include/linux/smp.h:87:1: warning: this is the
location of the previous definition
/usr/src/linux-2.4.0/include/linux/modules/i386_ksyms.ver:138:25:
warning: "synchronize_irq" redefined
/usr/src/linux-2.4.0/include/asm/hardirq.h:37:1: warning: this is the
location of the previous definition
In file included from
/usr/src/linux-2.4.0/include/linux/modversions.h:92,
                 from /usr/src/linux-2.4.0/include/linux/module.h:20,
                 from signal.c:11:
/usr/src/linux-2.4.0/include/linux/modules/ksyms.ver:1716:24: warning:
"del_timer_sync" redefined
/usr/src/linux-2.4.0/include/linux/timer.h:34:1: warning: this is the
location of the previous definition
gcc -D__KERNEL__ -I/usr/src/linux-2.4.0/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -pipe
-mpreferred-stack-boundary=2 -march=a
thlon  -fno-strict-aliasing    -DEXPORT_SYMTAB -c sys.c
In file included from /usr/src/linux-2.4.0/include/linux/wait.h:18,
                 from /usr/src/linux-2.4.0/include/linux/fs.h:12,
                 from
/usr/src/linux-2.4.0/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.0/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.0/include/linux/sched.h:9,
                 from /usr/src/linux-2.4.0/include/linux/mm.h:4,
                 from sys.c:8:
/usr/src/linux-2.4.0/include/asm/processor.h:110:18: warning: "cpu_data"
redefined
/usr/src/linux-2.4.0/include/linux/modules/i386_ksyms.ver:6:1: warning:
this is the location of the previous definition
In file included from /usr/src/linux-2.4.0/include/asm/string.h:294,
                 from /usr/src/linux-2.4.0/include/linux/string.h:23,
                 from /usr/src/linux-2.4.0/include/linux/fs.h:23,
                 from
/usr/src/linux-2.4.0/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.0/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.0/include/linux/sched.h:9,
                 from /usr/src/linux-2.4.0/include/linux/mm.h:4,
                 from sys.c:8:
/usr/src/linux-2.4.0/include/linux/smp.h:79:49: warning: "smp_num_cpus"
redefined
/usr/src/linux-2.4.0/include/linux/modules/i386_ksyms.ver:26:1: warning:
this is the location of the previous definition
/usr/src/linux-2.4.0/include/linux/smp.h:86:26: warning:
"smp_call_function" redefined
                 from /usr/src/linux-2.4.0/include/asm/string.h:296,
                 from /usr/src/linux-2.4.0/include/linux/string.h:23,
                 from /usr/src/linux-2.4.0/include/linux/fs.h:23,
                 from
/usr/src/linux-2.4.0/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.0/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.0/include/linux/sched.h:9,
                 from /usr/src/linux-2.4.0/include/linux/mm.h:4,
                 from sys.c:8:
/usr/src/linux-2.4.0/include/asm/hardirq.h:37:24: warning:
"synchronize_irq" redefined
/usr/src/linux-2.4.0/include/linux/modules/i386_ksyms.ver:138:1:
warning: this is the location of the previous definition
In file included from /usr/src/linux-2.4.0/include/linux/sched.h:76,
                 from /usr/src/linux-2.4.0/include/linux/mm.h:4,
                 from sys.c:8:
/usr/src/linux-2.4.0/include/linux/timer.h:34:23: warning:
"del_timer_sync" redefined
/usr/src/linux-2.4.0/include/linux/modules/ksyms.ver:1716:1: warning:
this is the location of the previous definition
gcc -D__KERNEL__ -I/usr/src/linux-2.4.0/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -pipe
-mpreferred-stack-boundary=2 -march=athlon  -fno-strict-aliasing
-DEXPORT_SYMTAB -c ksyms.c
In file included from
/usr/src/linux-2.4.0/include/linux/modversions.h:70,
                 from /usr/src/linux-2.4.0/include/linux/module.h:20,
                 from ksyms.c:14:
/usr/src/linux-2.4.0/include/linux/modules/i386_ksyms.ver:6:18: warning:
"cpu_data" redefined
/usr/src/linux-2.4.0/include/asm/processor.h:110:1: warning: this is the
location of the previous definition
/usr/src/linux-2.4.0/include/linux/modules/i386_ksyms.ver:26:22:
warning: "smp_num_cpus" redefined
/usr/src/linux-2.4.0/include/linux/smp.h:79:1: warning: this is the
location of the previous definition
/usr/src/linux-2.4.0/include/linux/modules/i386_ksyms.ver:120:27:
warning: "smp_call_function" redefined
/usr/src/linux-2.4.0/include/linux/smp.h:86:1: warning: this is the
location of the previous definition
/usr/src/linux-2.4.0/include/linux/modules/i386_ksyms.ver:134:24:
warning: "cpu_online_map" redefined
/usr/src/linux-2.4.0/include/linux/smp.h:87:1: warning: this is the
location of the previous definition
/usr/src/linux-2.4.0/include/linux/modules/i386_ksyms.ver:138:25:
warning: "synchronize_irq" redefined
/usr/src/linux-2.4.0/include/asm/hardirq.h:37:1: warning: this is the
location of the previous definition
In file included from
/usr/src/linux-2.4.0/include/linux/modversions.h:92,
                 from /usr/src/linux-2.4.0/include/linux/module.h:20,
                 from ksyms.c:14:
/usr/src/linux-2.4.0/include/linux/modules/ksyms.ver:1716:24: warning:
"del_timer_sync" redefined
/usr/src/linux-2.4.0/include/linux/timer.h:34:1: warning: this is the
location of the previous definition
In file included from ksyms.c:18:
/usr/src/linux-2.4.0/include/linux/kernel_stat.h: In function
`kstat_irqs':
/usr/src/linux-2.4.0/include/linux/kernel_stat.h:98: `smp_num_cpus'
undeclared (first use in this function)
/usr/src/linux-2.4.0/include/linux/kernel_stat.h:98: (Each undeclared
identifier is reported only once
/usr/src/linux-2.4.0/include/linux/kernel_stat.h:98: for each function
it appears in.)
make[2]: *** [ksyms.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.0/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.0/kernel'
make: *** [_dir_kernel] Error 2
make: Leaving directory `/usr/src/linux-2.4.0'
[root@thunder linux-2.4.0]#
Questa sfilza di errori a cosa potrebbe essere dovuta?
Grazie per la risposta!
Airex!!!

 [root@thunder linux-2.4.0]# make -w bzImage
[CUT]


ottengo dopo aver eseguito senza problemi make menuconfig e make dep :
A dire il vero non dovresti decomprimerla in /usr/src
Questo e' tratto dal file readme.
-------------------------------------
 Do NOT use the /usr/src/linux area! This area has a (usually
   incomplete) set of kernel headers that are used by the library
header
   files.  They should match the library, and not get messed up by
   whatever the kernel-du-jour happens to be.
________________________________________________________
Ciao
Fabio
Per rispondere scambiare lino con maggio

 ________________________________________________________
Ho provato anche a decomprimere i src del kernel da un'altra parte ma non
cambia nulla! Non so + cosa fare!
Airex

 ha scritto nel messaggio
news:3AE850BB...@tiscalinet.it...


Ho GCC 2.96 ( ho trovato delle info che dicono che è ottimizzato per il kernel
2.2.xx e per il kernel 2.4.0 ma ora non so + cosa pensare!Non mi compilava
nemmeno il kernel 2.2.16-22)
Sto scelrando....fatemi sapere!
Airex!

 compilava nemmeno il kernel 2.2.16-22)
E' normale prova l'egcs-1.1.2 ( o kgcc )




Salute. Visto che siamo sull'argomento, che differenza c'è tra gcc e egcs.
Io ho sempre avuto il secondo, non per scelta ma per caso, e non ho mai
avuto problemi.
[root@hope aggiornamenti]# rpm -qa|grep egcs
egcs-c++-1.1.2-30
egcs-1.1.2-30
Ciao & TIA
______________________________________________
!!!! attenzione: campo From alterato !!!!
----------------------------------------------
Antonio Madesani 
madesani(at)
versilia.toscana.it
amadesani(at)
galactica.it
----------------------------------------------

 Salute. Visto che siamo sull'argomento, che differenza c'è tra gcc e egcs.
l'egcs era une versione sprimentale ( o un branch vero e proprio non so 
bene ); poi e' stato riassorbito all'interno della serie normale
        gcc-2.7.2
        /       \
egcs-1.1.2      gcc-2.8.x
        \       /
        gcc-2.9x ( o beta 3 )