This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Can't build m68k-linux gdb-5.2.1


I'm trying to build a gdb for m68k-linux, configured as:

#!/bin/sh
# This file was generated automatically by configure.  Do not edit.
# This directory was configured as follows:
/home/pbarada/work/cvs-wavemark/cross-linux-tools/gdb-5.2.1/configure --host=i686-pc-linux-gnu --target=m68k-linux --prefix=/tmp/cross-tools --norecursion 
#  using "mt-frag"

And it won't link:

gcc -g -O2         -o gdb \
main.o libgdb.a cli-decode.o cli-script.o cli-cmds.o cli-setshow.o cli-utils.o mi-out.o mi-console.o mi-cmds.o mi-cmd-var.o mi-cmd-break.o mi-cmd-stack.o mi-cmd-disas.o mi-main.o mi-parse.o mi-getopt.o    ../bfd/libbfd.a ../readline/libreadline.a ../opcodes/libopcodes.a  ../libiberty/libiberty.a -lncurses     -lm  ../libiberty/libiberty.a \
-ldl -rdynamic
libgdb.a(infrun.o): In function `handle_inferior_event':
/home/pbarada/work/cvs-wavemark/cross-linux-tools/gdb-5.2.1/gdb/infrun.c:2635: undefined reference to `m68k_linux_in_sigtramp'
/home/pbarada/work/cvs-wavemark/cross-linux-tools/gdb-5.2.1/gdb/infrun.c:2635: undefined reference to `m68k_linux_in_sigtramp'
/home/pbarada/work/cvs-wavemark/cross-linux-tools/gdb-5.2.1/gdb/infrun.c:2747: undefined reference to `m68k_linux_in_sigtramp'
libgdb.a(infrun.o): In function `check_sigtramp2':
/home/pbarada/work/cvs-wavemark/cross-linux-tools/gdb-5.2.1/gdb/infrun.c:2955: undefined reference to `m68k_linux_in_sigtramp'
/home/pbarada/work/cvs-wavemark/cross-linux-tools/gdb-5.2.1/gdb/infrun.c:2955: undefined reference to `m68k_linux_in_sigtramp'
libgdb.a(stack.o): In function `frame_info':
/home/pbarada/work/cvs-wavemark/cross-linux-tools/gdb-5.2.1/gdb/stack.c:848: undefined reference to `m68k_linux_frame_saved_pc'
libgdb.a(arch-utils.o): In function `init_frame_pc_default':
/home/pbarada/work/cvs-wavemark/cross-linux-tools/gdb-5.2.1/gdb/arch-utils.c:370: undefined reference to `m68k_linux_frame_saved_pc'
libgdb.a(m68k-tdep.o): In function `isi_frame_num_args':
/home/pbarada/work/cvs-wavemark/cross-linux-tools/gdb-5.2.1/gdb/m68k-tdep.c:107: undefined reference to `m68k_linux_frame_saved_pc'
libgdb.a(m68k-tdep.o): In function `delta68_frame_num_args':
/home/pbarada/work/cvs-wavemark/cross-linux-tools/gdb-5.2.1/gdb/m68k-tdep.c:129: undefined reference to `m68k_linux_frame_saved_pc'
libgdb.a(m68k-tdep.o): In function `news_frame_num_args':
/home/pbarada/work/cvs-wavemark/cross-linux-tools/gdb-5.2.1/gdb/m68k-tdep.c:151: undefined reference to `m68k_linux_frame_saved_pc'
libgdb.a(blockframe.o):/home/pbarada/work/cvs-wavemark/cross-linux-tools/gdb-5.2.1/gdb/blockframe.c:48: more undefined references to `m68k_linux_frame_saved_pc' follow
libgdb.a(blockframe.o): In function `create_new_frame':
/home/pbarada/work/cvs-wavemark/cross-linux-tools/gdb-5.2.1/gdb/blockframe.c:228: undefined reference to `m68k_linux_in_sigtramp'
libgdb.a(blockframe.o): In function `get_prev_frame':
/home/pbarada/work/cvs-wavemark/cross-linux-tools/gdb-5.2.1/gdb/blockframe.c:465: undefined reference to `m68k_linux_in_sigtramp'
libgdb.a(blockframe.o): In function `generic_file_frame_chain_valid':
/home/pbarada/work/cvs-wavemark/cross-linux-tools/gdb-5.2.1/gdb/blockframe.c:1197: undefined reference to `m68k_linux_frame_saved_pc'
/home/pbarada/work/cvs-wavemark/cross-linux-tools/gdb-5.2.1/gdb/blockframe.c:1202: undefined reference to `m68k_linux_frame_saved_pc'
collect2: ld returned 1 exit status
make[1]: *** [gdb] Error 1

All the missing references are in gdb/m68klinux-nat.c, so I'd assume
this is supposed to be built, but isn't for --target=m68k-linux.  Does
anyone have any idea how I can get it to be built?

While I'm at it, how do I configure(and build) a gdbserver to run on
m68k-linux that's built on an x86-linux machine?

All help is appreciated.

-- 
Peter Barada                                   Peter.Barada@motorola.com
Wizard                                         781-852-2768 (direct)
WaveMark Solutions(wholly owned by Motorola)   781-270-0193 (fax)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]