cannot compile 2.4.19 with kgdb/xmon

Omanakuttan omanakuttan at
Thu Nov 21 17:49:20 EST 2002

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 at 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'
Reading specs from
gcc version 2.95.3 20010315 (release/MontaVista)

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

** Sent via the linuxppc-embedded mail list. See

More information about the Linuxppc-embedded mailing list