linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* cannot compile 2.4.19 with kgdb/xmon
@ 2002-11-21  6:49 Omanakuttan
  2002-11-21 14:38 ` Matt Porter
  0 siblings, 1 reply; 2+ messages in thread
From: Omanakuttan @ 2002-11-21  6:49 UTC (permalink / raw)
  To: linuxppc-embedded


Hi,
I am a new member in this list.
I am trying to build kernel 2.4.19 for ppc (mpc 8260) on i386 using
ppc_82xx-gcc cross compiler.

The configuration compiles fine when I exclude kernel hacking options.
Once kgdb or xmon options (any of them)  of the kernel hacking options
is included, kernel compilation fails with the following

[root@cosine-ipnos /opt/hardhat/previewkit/ppc/82xx/bin]$ ./ppc_82xx-gcc -v
./ppc_82xx-gcc: Actual path = '/opt/hardhat/previewkit/ppc/82xx/bin/'
         Actual name = 'ppc_82xx-gcc'
         Invoking
/opt/hardhat/previewkit/ppc/82xx/bin/../lib/gcc-lib/powerpc-hardhat-linux/2.95.3/ppc_82xx-gcc
Reading specs from
/opt/hardhat/previewkit/ppc/82xx/bin/../lib/gcc-lib/powerpc-hardhat-linux/2.95.3/specs
gcc version 2.95.3 20010315 (release/MontaVista)


[root@cosine-ipnos /usr/src/linux-2.4.19]# make menuconfig dep bzImage
<snip>
arch/ppc/kernel/kernel.o: In function `getpacket':
arch/ppc/kernel/kernel.o(.text+0x8f58): undefined reference to
`getDebugChar'
arch/ppc/kernel/kernel.o(.text+0x8f58): relocation truncated to fit:
R_PPC_REL24 getDebugChar
<snip>
arch/ppc/kernel/kernel.o: In function `putpacket':
arch/ppc/kernel/kernel.o(.text+0x9078): undefined reference to
`putDebugChar'
arch/ppc/kernel/kernel.o(.text+0x9078): relocation truncated to fit:
R_PPC_REL24 putDebugChar
<snip>
arch/ppc/kernel/kernel.o: In function `handle_exception':
arch/ppc/kernel/kernel.o(.text+0x9340): undefined reference to
`kgdb_interruptible'
arch/ppc/kernel/kernel.o(.text+0x9340): relocation truncated to fit:
R_PPC_REL24 kgdb_interruptible
<snip>
arch/ppc/kernel/kernel.o: In function `pmac_setup_arch':
arch/ppc/kernel/kernel.o(.text.init+0x1e50): undefined reference to
`zs_kgdb_hook'
arch/ppc/kernel/kernel.o(.text.init+0x1e50): relocation truncated to fit:
R_PPC_REL24 zs_kgdb_hookmake: *** [vmlinux] Error 1
[root@cosine-ipnos /usr/src/linux-2.4.19]#

I examined the source code and found out the function is in
/usr/src/linux-2.4.19/arch/ppc/8xx_io/uart.c but not getting compiled.
(no .o files in that dir)

Any suggestions?

Thanks and regards,
Om.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: cannot compile 2.4.19 with kgdb/xmon
  2002-11-21  6:49 cannot compile 2.4.19 with kgdb/xmon Omanakuttan
@ 2002-11-21 14:38 ` Matt Porter
  0 siblings, 0 replies; 2+ messages in thread
From: Matt Porter @ 2002-11-21 14:38 UTC (permalink / raw)
  To: Omanakuttan; +Cc: linuxppc-embedded


On Thu, Nov 21, 2002 at 12:19:20PM +0530, Omanakuttan wrote:
> The configuration compiles fine when I exclude kernel hacking options.
> Once kgdb or xmon options (any of them)  of the kernel hacking options
> is included, kernel compilation fails with the following

<snip>

> arch/ppc/kernel/kernel.o(.text+0x8f58): undefined reference to
> `getDebugChar'

Most classic PPC based embedded boards don't have the glue code
enabled to use kgdb.  I suggest you link in the standard gen550_*.c
library of polled access functions and enable access by following
the example in ebony.c.

Regards,
--
Matt Porter
porter@cox.net
This is Linux Country. On a quiet night, you can hear Windows reboot.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-21 14:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-21  6:49 cannot compile 2.4.19 with kgdb/xmon Omanakuttan
2002-11-21 14:38 ` Matt Porter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).