PDA

Visualizza versione completa : linux- depmod segmentation fault



luigione
23-07-11, 10: 35
ciao
a seguito di una ricompilazione di un timesys kernel linux 2.6.29 trovo il seguente errore:
bin/sh: line 1: 16077 Segmentation fault /sbin/depmod -ae -F System.map -b /<directory>
qualche idea?

grazie
Luigi

pierino_89
23-07-11, 14: 54
spiega di preciso cosa hai fatto e che comando hai dato. tra l'altro, perché il 29? Siamo al 39.

luigione
25-07-11, 09: 12
la sequenza e` la seguente (dopo profilatura del kernel)
make OK arriva in fondo senza problemi genera l'immagine vmlinux
provo a ricompilare
make clean
make
termina con segmentation fault come descritto
grazie
luigi

cydonia
26-07-11, 06: 05
1) che kernel stai cercando di compilare?
2) posta tutto l'output del make
3) se hai seguito qualche guida,link
:bai

luigione
26-07-11, 09: 15
This program built for i686-pc-linux-gnu
Reading makefiles...
Reading makefile `/vobs/Timesys/factory-20110221/build_mipsisa32r2-timesys-linux-uclibc/linux-2.6.29/scripts/Makefile.fwinst'...
Reading makefile `/vobs/Timesys/factory-20110221/build_mipsisa32r2-timesys-linux-uclibc/linux-2.6.29/.config' (search path) (don't care) (no ~ expansion)...
Reading makefile `scripts/Kbuild.include' (search path) (no ~ expansion)...
Reading makefile `/vobs/Timesys/factory-20110221/build_mipsisa32r2-timesys-linux-uclibc/linux-2.6.29/firmware/Makefile' (search path) (no ~ expansion)...
Reading makefile `scripts/Makefile.host' (search path) (no ~ expansion)...
Updating makefiles....
Considering target file `scripts/Makefile.host'.
Looking for an implicit rule for `scripts/Makefile.host'.
No implicit rule found for `scripts/Makefile.host'.
Finished prerequisites of target file `scripts/Makefile.host'.
No need to remake target `scripts/Makefile.host'.
Considering target file `/vobs/Timesys/factory-20110221/build_mipsisa32r2-timesys-linux-uclibc/linux-2.6.29/firmware/Makefile'.
Looking for an implicit rule for `/vobs/Timesys/factory-20110221/build_mipsisa32r2-timesys-linux-uclibc/linux-2.6.29/firmware/Makefile'.
No implicit rule found for `/vobs/Timesys/factory-20110221/build_mipsisa32r2-timesys-linux-uclibc/linux-2.6.29/firmware/Makefile'.
Finished prerequisites of target file `/vobs/Timesys/factory-20110221/build_mipsisa32r2-timesys-linux-uclibc/linux-2.6.29/firmware/Makefile'.
No need to remake target `/vobs/Timesys/factory-20110221/build_mipsisa32r2-timesys-linux-uclibc/linux-2.6.29/firmware/Makefile'.
Considering target file `scripts/Kbuild.include'.
Looking for an implicit rule for `scripts/Kbuild.include'.
No implicit rule found for `scripts/Kbuild.include'.
Finished prerequisites of target file `scripts/Kbuild.include'.
No need to remake target `scripts/Kbuild.include'.
Considering target file `/vobs/Timesys/factory-20110221/build_mipsisa32r2-timesys-linux-uclibc/linux-2.6.29/.config'.
Looking for an implicit rule for `/vobs/Timesys/factory-20110221/build_mipsisa32r2-timesys-linux-uclibc/linux-2.6.29/.config'.
No implicit rule found for `/vobs/Timesys/factory-20110221/build_mipsisa32r2-timesys-linux-uclibc/linux-2.6.29/.config'.
Finished prerequisites of target file `/vobs/Timesys/factory-20110221/build_mipsisa32r2-timesys-linux-uclibc/linux-2.6.29/.config'.
No need to remake target `/vobs/Timesys/factory-20110221/build_mipsisa32r2-timesys-linux-uclibc/linux-2.6.29/.config'.
Considering target file `/vobs/Timesys/factory-20110221/build_mipsisa32r2-timesys-linux-uclibc/linux-2.6.29/scripts/Makefile.fwinst'.
Looking for an implicit rule for `/vobs/Timesys/factory-20110221/build_mipsisa32r2-timesys-linux-uclibc/linux-2.6.29/scripts/Makefile.fwinst'.
No implicit rule found for `/vobs/Timesys/factory-20110221/build_mipsisa32r2-timesys-linux-uclibc/linux-2.6.29/scripts/Makefile.fwinst'.
Finished prerequisites of target file `/vobs/Timesys/factory-20110221/build_mipsisa32r2-timesys-linux-uclibc/linux-2.6.29/scripts/Makefile.fwinst'.
No need to remake target `/vobs/Timesys/factory-20110221/build_mipsisa32r2-timesys-linux-uclibc/linux-2.6.29/scripts/Makefile.fwinst'.
Updating goal targets....
Considering target file `__fw_modinst'.
File `__fw_modinst' does not exist.
Finished prerequisites of target file `__fw_modinst'.
Must remake target `__fw_modinst'.
Successfully remade target file `__fw_modinst'.
Reaping winning child 0x092c1a58 PID 16073
Live child 0x092c1a58 (_modinst_post) PID 16076
DEPMOD 2.6.29-ts-mipsisa32r2
/bin/sh: line 1: 16077 Segmentation fault /sbin/depmod -ae -F System.map -b /vobs/Timesys/factory-20110221/build_mipsisa32r2-timesys-linux-uclibc/rfs 2.6.29-ts-mipsisa32r2
Reaping losing child 0x092c1a58 PID 16076
make[1]: *** [_modinst_post] Error 139
Removing child 0x092c1a58 PID 16076 from chain.
make[1]: Leaving directory `/vobs/Timesys/factory-20110221/build_mipsisa32r2-timesys-linux-uclibc/linux-2.6.29'
Reaping losing child 0x0a47cf20 PID 15890
make: *** [/vobs/Timesys/factory-20110221/build_mipsisa32r2-timesys-linux-uclibc/linux-2.6.29/.stamp_modules_rfs_installed] Error 2
Removing child 0x0a47cf20 PID 15890 from chain.

Pare il fault sia dovuto all’esecuzione di questo comando:

/sbin/depmod -ae -F System.map -b /vobs/Timesys/factory-20110221/build_mipsisa32r2-timesys-linux-uclibc/rfs 2.6.29-ts-mipsisa32r2


ciao e grazie
quello che non capisco e` per quale motivo una prima compilazione arriva in fondo ed una successiva ricompilazione dopo un clean fallisce.ho provato anche a cancellare il sytem.map e l'immagine vmlinux ma il risultato e` lo stesso.