[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Kernel Compile Error



Hi all-

I was trying to compile the 2.0.36 kernel on my slink system to include
support for sound.

I went through the make xconfig deal and typed make dep and make clean
without incident. However when I tried to make zImage I got the
following output:

terra:/usr/src/linux# make zImage
gcc -D__KERNEL__ -I/usr/src/kernel-source-2.0.36/include -Wall
-Wstrict-prototyp
es -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -m486
-malign-loops=2 -ma
lign-jumps=2 -malign-functions=2 -DCPU=686  -c -o init/main.o
init/main.c
In file included from init/main.c:17:
/usr/src/kernel-source-2.0.36/include/linux/types.h:7: warning: #warning
"This c
ode is tested with gcc 2.7.2.x only. Using egcs/gcc 2.8.x needs"
/usr/src/kernel-source-2.0.36/include/linux/types.h:8: warning: #warning
"additi
onal patches that have not been sufficiently tested to include by"
/usr/src/kernel-source-2.0.36/include/linux/types.h:9: warning: #warning
"defaul
t."
/usr/src/kernel-source-2.0.36/include/linux/types.h:10: warning:
#warning "See h
ttp://www.suse.de/~florian/kernel+egcs.html for more information"
/usr/src/kernel-source-2.0.36/include/linux/types.h:11: #error "Remove
this if y
ou have applied the gcc 2.8/egcs patches and wish to use them"
/usr/src/kernel-source-2.0.36/include/asm/string.h: In function
`__constant_memc
py':
In file included from
/usr/src/kernel-source-2.0.36/include/linux/string.h:39,
                 from
/usr/src/kernel-source-2.0.36/include/asm/termios.h:59,
                 from
/usr/src/kernel-source-2.0.36/include/linux/termios.h:5,
                 from
/usr/src/kernel-source-2.0.36/include/linux/tty.h:20,
                 from
/usr/src/kernel-source-2.0.36/include/linux/sched.h:26,
                 from init/main.c:20:
/usr/src/kernel-source-2.0.36/include/asm/string.h:443: warning: control
reaches
end of non-void function
/usr/src/kernel-source-2.0.36/include/asm/string.h: In function
`__constant_c_an
d_count_memset':
/usr/src/kernel-source-2.0.36/include/asm/string.h:594: warning: control
reaches
end of non-void function
init/main.c: In function `get_options':
init/main.c:272: warning: subscript has type `char'
make: *** [init/main.o] Error 1                  


*** END OF ERROR MESSAGE ***

I don't know C/C++, but I took a look at the the main.c file in the init
directory, and yes get_options is indeed of type char, but it means
little to me (other than the fact that my kernel won't compile).

I've been playing all day, and I installed the comm. 408 packages via
apt-get and it installed new versions of libc6 and some other stuff. I
am currently d'l'ing the 2.2.1 source (from potato) and no other files
were apparently selected by apt-get. I figured that maybe there was
something wrong with the 2.0.36 source(?)

Does anyone have any pointers?

TIA
-- 
                                          __   _ 
Mark Wagnon              Debian GNU/ -o) / /  (_)__  __ ____  __    
Chula Vista, CA                      /\\/ /__/ / _ \/ // /\ \/ /   
mailto:mwagnon@ixpres.com           _\_v____/_/_//_/\_,_/ /_/\_\


Reply to: