Results 1 to 4 of 4
I download the kernel file of linux :linux-2.0.40.tar.bz2 and unzip it to the directory /usr/src/
Then:
1.make menuconfig ( just save the configuration)
2.make dep
3.make clean
4. make bzImage
...
- 07-16-2004 #1Just Joined!
- Join Date
- Jul 2004
- Posts
- 4
version: 2.0.40 ---> can't complied without any modif
I download the kernel file of linux :linux-2.0.40.tar.bz2 and unzip it to the directory /usr/src/
Then:
1.make menuconfig ( just save the configuration)
2.make dep
3.make clean
4. make bzImage
But when i do this ,it can't work and the error message is :
`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
cc1: warning: -malign-loops is obsolete, use -falign-loops
cc1: warning: -malign-jumps is obsolete, use -falign-jumps
cc1: warning: -malign-functions is obsolete, use -falign-functions
In file included from /usr/src/linux-2.0.40/include/asm/system.h:4,
from init/main.c:14:
/usr/src/linux-2.0.40/include/asm/segment.h:86:10: warning: multi-line string l
terals are deprecated
/usr/src/linux-2.0.40/include/asm/segment.h:175:10: warning: multi-line string
iterals are deprecated
In file included from /usr/src/linux-2.0.40/include/linux/string.h:39,
from /usr/src/linux-2.0.40/include/asm/termios.h:59,
from /usr/src/linux-2.0.40/include/linux/termios.h:5,
from /usr/src/linux-2.0.40/include/linux/tty.h:20,
from /usr/src/linux-2.0.40/include/linux/sched.h:26,
from init/main.c:20:
/usr/src/linux-2.0.40/include/asm/string.h:620:17: warning: multi-line string l
terals are deprecated
In file included from init/main.c:46:
/usr/src/linux-2.0.40/include/asm/bugs.h: In function `check_k6_bug':
/usr/src/linux-2.0.40/include/asm/string.h:106: can't find a register in class
SIREG' while reloading `asm'
init/main.c: In function `get_options':
init/main.c:269: warning: subscript has type `char'
make: *** [init/main.o] Error 1
what should i do ??
3X!!!
- 07-16-2004 #2Just Joined!
- Join Date
- Jul 2004
- Location
- Wherever the beautiful women are.
- Posts
- 99
`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
cc1: warning: -malign-loops is obsolete, use -falign-loops
cc1: warning: -malign-jumps is obsolete, use -falign-jumps
cc1: warning: -malign-functions is obsolete, use -falign-functions
The repeated mention of the word 'obsolete' grabbed my attention. I think the problem is because you're trying to compile a kernel on a system where the kernel is much more up to date. You were attempting to compile the 2.0.40 version while most new distros are equipped with 2.4,2.5 or 2.6 kernel.
- 07-17-2004 #3Just Joined!
- Join Date
- Jul 2004
- Posts
- 4
Thanks!!
My current kernul version is 2.4.20-8. Accroding to your words, the old kernel verison can't complie properly in a new kernel entironment ??
But I remember that linux have wonderful backward compatibility,......
BTW: If the version of gcc and the version of kernel is not consistent ,
such as :kernel-module version is mismatch
:./scull.o was compiled for kernel version 2.4.20
while this kernel is version 2.4.20-8
how could we deal with the version problem?
- 07-17-2004 #4Just Joined!
- Join Date
- Jul 2004
- Location
- Wherever the beautiful women are.
- Posts
- 99
Not sure. I was quite surprised at myself for being able to answer the first question. I haven't been using Linux for long.


Reply With Quote
