Messages in this thread | | | Date | Fri, 23 Apr 1999 15:57:01 +0200 | From | homega@vlc ... | Subject | kernel compile errors |
| |
Hi there,
My apologies if this is not the appropriate forum for these questions (may be this list is for more advanced kernel related issues?).
I'm using Debian 2.0 (linux 2.0.34), and am trying to compile a 2.0.35 kernel (gcc 2.7.2.3 and gnu make 3.76.1). I'm following the normal steps: homega:/usr/src/linux# make config make dep make clean make zImage (or bzImage)
but I usually get errors about header files and exits:
make[2]: Entering directory `/usr/src/linux-2.0.35/fs/ext2' make all_targets make[3]: Entering directory `/usr/src/linux-2.0.35/fs/ext2' gcc -D__KERNEL__ -I/usr/src/linux-2.0.35/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o acl.o acl.c gcc -D__KERNEL__ -I/usr/src/linux-2.0.35/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o balloc.o balloc.c gcc -D__KERNEL__ -I/usr/src/linux-2.0.35/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o bitmap.o bitmap.c gcc -D__KERNEL__ -I/usr/src/linux-2.0.35/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o dir.o dir.c gcc -D__KERNEL__ -I/usr/src/linux-2.0.35/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o file.o file.c -D__KERNEL__ -I/usr/src/linux-2.0.35/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o fsync.o fsync.c In file included from /usr/src/linux-2.0.35/include/linux/tty.h:23, from /usr/src/linux-2.0.35/include/linux/sched.h:26, from fsync.c:22: /usr/src/linux-2.0.35/include/linux/tty_ldisc.h:28: parse error before `|' /usr/src/linux-2.0.35/include/linux/tty_ldisc.h:28: warning: function declaration isn't a prototype make[3]: *** [fsync.o] Error 1 make[3]: Leaving directory `/usr/src/linux-2.0.35/fs/ext2' make[2]: *** [first_rule] Error 2 make[2]: Leaving directory `/usr/src/linux-2.0.35/fs/ext2' make[1]: *** [sub_dirs] Error 2 make[1]: Leaving directory `/usr/src/linux-2.0.35/fs' make: *** [linuxsubdirs] Error 2 homega:/usr/src/linux#
Then try again: make mrproper make config make dep make zImage
but:
cpp: output pipe has been closed gcc: Internal compiler error: program cc1 got fatal signal 6 make[3]: *** [slip.o] Error 1 make[3]: Leaving directory `/usr/src/kernel-source-2.0.35/drivers/net' make[2]: *** [first_rule] Error 2 make[2]: Leaving directory `/usr/src/kernel-source-2.0.35/drivers/net' make[1]: *** [sub_dirs] Error 2 make[1]: Leaving directory `/usr/src/kernel-source-2.0.35/drivers' make: *** [linuxsubdirs] Error 2
Just yesterday, I upgraded gcc, cpp,... and finally got to compile a kernel (with wrong options due to tireness). Then, I tried to compile it yet again, but got those errors, so I removed everything and installed the kernel sources tarball again... went once more through the same procedure... failed!
I understand a kernel sources tarball may get corrupted during download due to line noise (and I've downloaded some in .gz or .bz2), but if I once succeeded to compile one... why does it fail a second time? could it get corrupted during the dearchiving/uncompressing process? (I do it through `tar zxvf foo.tar.gz' or `tar Ixvf foo.tar.bz2' commands). Could it also get corrupted an already installed kernel source directory after a failed/successful attempt to compile, or after renaming it? and, could the tarball get corrupted once in my system? or may be my problem is not related to any of these questions?
TIA
Horacio
P.S. Please, if replying send me a copy since I'm only in the linux-kernel-digest list.
P.P.S. `make kpkg' (debian) is not a solution since I *want* to do it the normal way. -- Claves - GnuPG/PGP - Keys : http://www.rediris.es/cert/keyserver o/or Envía un mensaje vacío a homega@vlc.servicom.es con la línea de asunto: Send a blank message to homega@vlc.servicom.es with the subject line: Tipo de Clave/Key Type Asunto:/Subject:
DSA/ElGamal fetch dsa/elgamal DSS/Diffie-Hellman fetch dh/dss RSA fetch rsa
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |