LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-08-2007, 11:39 AM   #1
dansirbu101
LQ Newbie
 
Registered: Jan 2007
Posts: 1

Rep: Reputation: 0
Question linux 2.6.10 - compile kgdb fails


Hi,

I am trying to build a 2.6.10 kernel with kgdb (Montavista for ppc). I am getting the following error:

ppc_7xx-gcc -m32 -Wp,-MD,arch/ppc/kernel/.kgdb.o.d -nostdinc -iwithprefix incl
ude -D__KERNEL__ -Iinclude -Iarch/ppc -Wall -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-common -O2 -fomit-frame-pointer -g -Iarch/ppc -mso
ft-float -pipe -ffixed-r2 -mmultiple -mstring -Wa,-maltivec -Wdeclaration-after-
statement -g -gdwarf-2 -DKBUILD_BASENAME=kgdb -DKBUILD_MODNAME=kgdb -c -o arch
/ppc/kernel/kgdb.o arch/ppc/kernel/kgdb.c
arch/ppc/kernel/kgdb.c: In function `kgdb_debugger':
arch/ppc/kernel/kgdb.c:90: warning: implicit declaration of function `kgdb_handl
e_exception'
arch/ppc/kernel/kgdb.c: In function `kgdb_breakpoint':
arch/ppc/kernel/kgdb.c:100: error: `kgdb_setting_breakpoint' undeclared (first u
se in this function)
arch/ppc/kernel/kgdb.c:100: error: (Each undeclared identifier is reported only
once
arch/ppc/kernel/kgdb.c:100: error: for each function it appears in.)
arch/ppc/kernel/kgdb.c: In function `kgdb_arch_handle_exception':
arch/ppc/kernel/kgdb.c:244: warning: implicit declaration of function `kgdb_hex2
long'
arch/ppc/kernel/kgdb.c:256: error: `debugger_step' undeclared (first use in this
function)
arch/ppc/kernel/kgdb.c:257: error: `kgdb_contthread' undeclared (first use in th
is function)
arch/ppc/kernel/kgdb.c: At top level:
arch/ppc/kernel/kgdb.c:270: error: variable `arch_kgdb_ops' has initializer but
incomplete type
arch/ppc/kernel/kgdb.c:272: error: unknown field `gdb_bpt_instr' specified in in
itializer
arch/ppc/kernel/kgdb.c:272: error: extra brace group at end of initializer
arch/ppc/kernel/kgdb.c:272: error: (near initialization for `arch_kgdb_ops')
arch/ppc/kernel/kgdb.c:272: warning: excess elements in struct initializer
arch/ppc/kernel/kgdb.c:272: warning: (near initialization for `arch_kgdb_ops')
arch/ppc/kernel/kgdb.c:270: error: storage size of `arch_kgdb_ops' isn't known
make[1]: *** [arch/ppc/kernel/kgdb.o] Error 1
make: *** [arch/ppc/kernel] Error 2

Any idea on a possible solution ?

Thanks,
Dan Sirbu
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kgdb patch to linux-2.6.18 priya001 Linux - Kernel 2 01-27-2010 11:00 PM
kgdb for Linux 2.6.15? bhuvanmital Linux - Software 1 02-13-2006 03:05 AM
KGDB for Linux Kernel 2.6.10 sanjay_ach Programming 3 01-16-2006 08:51 PM
Linux 2.6.10 kgdb sanjay_ach Linux - Newbie 1 01-16-2006 08:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 01:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration