kernel build problems with KDB patch
Hello I want to use KDB to debug the module. I have done this: 1. make mrproper 2. download the patch from the site (ftp://oss.sgi.com/www/projects/kdb/download/). Include kdb-v4.4-2.6.32-common-6.bz2 and kdb-v4.4-2.6.32-x86-6.bz2 3. patch -p1 < kdb-v4.4-2.6.32-common-6 patch -p1 < kdb-v4.4-2.6.32-x86-6 4. make menuconfig Kernel hacking ---> Compile the kernel with frame pointers(set Y) Built-in Kernel Debugger support (set Y) KDB off by default(set Y) 5. make ERROR LOG: arch/x86/kernel/traps.c:418 error:expected identifier or '(' before 'if' arch/x86/kernel/traps.c:437 error:expected identifier or '(' before 'if' arch/x86/kernel/traps.c:441 error:expected identifier or '(' before 'if' ... conflicting types for 'reassert_nmi' ...note:previous definition of 'reassert_nmi' was here ... What should I do ? Thanks, HeChuan
Hi, Are you also getting same issue with other Version also ? Regards Sanjeev Sharma On Thu, Mar 13, 2014 at 7:39 AM, RS <tinyshrimp@163.com> wrote:
Hello
I want to use KDB to debug the module. I have done this: 1. make mrproper 2. download the patch from the site (ftp://oss.sgi.com/www/projects/kdb/download/). Include kdb-v4.4-2.6.32-common-6.bz2 and kdb-v4.4-2.6.32-x86-6.bz2 3. patch -p1 < kdb-v4.4-2.6.32-common-6 patch -p1 < kdb-v4.4-2.6.32-x86-6 4. make menuconfig Kernel hacking ---> Compile the kernel with frame pointers(set Y) Built-in Kernel Debugger support (set Y) KDB off by default(set Y) 5. make
ERROR LOG: arch/x86/kernel/traps.c:418 error:expected identifier or '(' before 'if' arch/x86/kernel/traps.c:437 error:expected identifier or '(' before 'if' arch/x86/kernel/traps.c:441 error:expected identifier or '(' before 'if' ... conflicting types for 'reassert_nmi' ...note:previous definition of 'reassert_nmi' was here ...
What should I do ?
Thanks, HeChuan
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
participants (2)
-
RS -
sanjeev sharma