Preklad jadra 2.0.36 - delsi
Mikulas Gangur
Mikulas.Gangur na fek.zcu.cz
Neděle Duben 4 12:51:49 CEST 1999
Dobry den,
muzete mi, prosim, nekdo poradit s prekladem jadra.
Prekladam jadro 2.0.36. Zdroj ftp.funet.fi. Na druhem pocitaci
probehl preklad z daneho zdroje a pri stejne konfiguraci pro preklad
bez problemu.
Na inkriminovanem stroji, ktery ma ovsem jinou konfiguraci hardware,
to po sekvenci
make mrproper
make menucofnig
make dep
make zImage
ci
make menuconfig
make dep; make clean
make zImage
vygeneruje pokazde jinou chybu. Po kazde takoveto chybe prelozim
danou cast "rucne" a spustim jiz pouze make zImage
Priklady chyb
=====================================================================
consolemap.c:39: initializer element for `translations[0][154]' is
not computable at load time
consolemap.c:81: initializer element for `translations[1][212]' is
not computable at load time
consolemap.c:114: initializer element for `translations[2][195]' is
not computable at load time
make[3]: *** [consolemap.o] Error 1
make[2]: *** [first_rule] Error 2
make[1]: *** [sub_dirs] Error 2
make: *** [linuxsubdirs] Error 2
Prelozil jsem "rucne" bez problemu consolemap.c v danem adresari char
=====================================================================
3c59x.c:507: warning: `full_duplex' defined but not used
3c59x.c:509: warning: `root_vortex_dev' defined but not used
{standard input}: Assembler messages:
{standard input}:5250: Error: Ignoring junk '($esp)' after expression
{standard input}:5252: Error: operands given don't match any known
386 instruction
{standard input}:5254: Error: operands given don't match any known
386 instruction
{standard input}:5276: Error: Ignoring junk '($esp)' after expression
{standard input}:5284: Error: operands given don't match any known
386 instruction
{standard input}:5289: Error: Ignoring junk '($esp)' after expression
make[3]: *** [pci.o] Error 1
make[2]: *** [first_rule] Error 2
make[1]: *** [sub_dirs] Error 2
make: *** [linuxsubdirs] Error 2
Prelozil jsem "rucne" pci.c. Stejne tak v dalsich pripadech.
=====================================================================
3c59x.c:507: warning: `full_duplex' defined but not used
3c59x.c:509: warning: `root_vortex_dev' defined but not used
gcc: Internal compiler error: program cpp got fatal signal 6
make[2]: *** [buffer.o] Error 1
make[1]: *** [first_rule] Error 2
make: *** [linuxsubdirs] Error 2
Preklad buffer.c
====================================================================
3c59x.c:507: warning: `full_duplex' defined but not used
3c59x.c:509: warning: `root_vortex_dev' defined but not used
{standard input}: Assembler messages:
{standard input}:13: Error: operands given don't match any known 386
instruction
{standard input}:32: Error: operands given don't match any known 386
instruction
{standard input}:36: Error: Ignoring junk '($esp)' after expression
{standard input}:36: Error: operands given don't match any known 386
instruction
{standard input}:37: Error: Ignoring junk '($edx)' after expression
{standard input}:39: Error: operands given don't match any known 386
instruction
{standard input}:41: Error: Ignoring junk '($edx)' after expression
{standard input}:41: Error: operands given don't match any known 386
instruction
{standard input}:42: Error: Ignoring junk '($esp)' after expression
{standard input}:43: Error: Ignoring junk '($edx)' after expression
{standard input}:44: Error: operands given don't match any known 386
instruction
{standard input}:46: Error: Ignoring junk '($esi)' after expression
make[3]: *** [tcp.o] Error 1
make[2]: *** [first_rule] Error 2
make[1]: *** [sub_dirs] Error 2
make: *** [linuxsubdirs] Error 2
Preklad tcp.c
===================================================================
3c59x.c:507: warning: `full_duplex' defined but not used
3c59x.c:509: warning: `root_vortex_dev' defined but not used
/usr/src/linux-2.0.36/Rules.make:182: *** missing separator. Stop.
make: *** [linuxsubdirs] Error 2
Spustil jsem znova make zImage
===================================================================
Jak videt, nektere z nich jsou opravdu zvlastni. Po prelozeni vsech
casti nakonec prislo linkovani timto prikazem
ld -m elf_i386 -Ttext 0x100000 -e stext arch/i386/kernel/head.o
init/main.o init/version.o \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o
mm/mm.o fs/fs.o ipc/ipc.o net/network.a \ fs/filesystems.a \
drivers/block/block.a drivers/char/char.a drivers/net/net.a
drivers/cdrom/cdrom.a drivers/pci/pci.a arch/i386/math-emu/math.a \
/usr/src/linux-2.0.36/arch/i386/lib/lib.a /usr/src/linux-
2.0.36/lib/lib.a /usr/src/linux-2.0.36/arch/i386/lib/lib.a -o vmlinux
A chybove hlaseni v reakci na nej.
3c59x.c:507: warning: `full_duplex' defined but not used
3c59x.c:509: warning: `root_vortex_dev' defined but not used
rarp.c:193: warning: `rarp_end_pkt' defined but not used
ip_masq.c: In function `ip_fw_demasquerade':
ip_masq.c:1363: warning: `timeout' might be used uninitialized in
this function
net/network.a(ipv4.o): In function `ip_build_xmit':
ipv4.o(.text+0x6754): undefined reference to `hp_statistics'
make: *** [vmlinux] Error 1
A to uz jsem v koncich. Muzete mi, prosim, nekdo poradit, kde hledat
chybu v nestandartnim chovani pri prekladu. Na obou zminenych
pocitacich mam nainstalovan system z jednoho CD.
Dekuji za jakekoliv nasmerovani
Mikulas Gangur
Další informace o konferenci Linux