kernel compilation with kdb patches giving errors

Submitted by sriram.ec
on March 23, 2006 - 7:12am

hi,
I want to have a debugger for my kernel and
I am using kernel-2.6.11 and i am having patches
kdb-v4.4-2.6.11-common-1.bz2
kdb-v4.4-2.6.11-i386-1.bz2.
I applied both.
I did make menuconfig with options
CONFIG_KDB n CONFIG_FRAME_POINTER being set.

when i tried to compile kernel. I got an error regarding CONFIG_KPROBES
then i did make menuconfig to remove kprobes under kernel hacking section.
It got compiled for sometime n it is giving errors in include/linux/i2c.h
saying incomplete type in line no 58 and 197.
Are there any configurations to be enabled or disabled during make menuconfig in linux-2.6.11?

Any help is welcome

regards
sriram

Try make clean before building

on
March 23, 2006 - 12:59pm

Have you tried "make clean" before starting the kernel compilation. Lot of times failed/incomplete builds raises many issues in the following ones if not cleaned.

Regards,
Narendra Kiran Chinnam.

gcc 4.0 reports the error of incomplete type

on
March 26, 2006 - 6:16am

hi Narendra,
Error i got was basically because i tried to compile Kernel-2.6.11 using gcc-4.0.0 version.So it is recommended to not to compile 2.6.11 kernel under gcc-4.0.0. Kernel-2.6.16 can be compiled sucessfully using gcc-4.0.0 after applying kdb patches

regards
Sriram

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.