From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10394 invoked by alias); 19 Aug 2002 22:54:29 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 10386 invoked from network); 19 Aug 2002 22:54:28 -0000 Received: from unknown (HELO motgate2.mot.com) (136.182.1.10) by sources.redhat.com with SMTP; 19 Aug 2002 22:54:28 -0000 Received: [from mothost.mot.com (mothost.mot.com [129.188.137.101]) by motgate2.mot.com (motgate2 2.1) with ESMTP id PAA24487 for ; Mon, 19 Aug 2002 15:54:34 -0700 (MST)] Received: [from mail.wm.sps.mot.com ([199.10.246.2]) by mothost.mot.com (MOT-pobox 2.0) with ESMTP id PAA00640 for ; Mon, 19 Aug 2002 15:54:53 -0700 (MST)] Received: from hyper.wm.sps.mot.com (hyper.wm.sps.mot.com [199.10.246.43]) by mail.wm.sps.mot.com (8.9.3/8.9.3) with ESMTP id SAA06985; Mon, 19 Aug 2002 18:54:17 -0400 Received: by hyper.wm.sps.mot.com (8.11.2) id g7JMsMe09414; Mon, 19 Aug 2002 18:54:22 -0400 Date: Mon, 19 Aug 2002 15:54:00 -0000 Message-Id: <200208192254.g7JMsMe09414@hyper.wm.sps.mot.com> From: Peter Barada To: gdb@sources.redhat.com CC: Peter.Barada@Motorola.com Subject: Can't build m68k-linux gdb-5.2.1 X-SW-Source: 2002-08/txt/msg00216.txt.bz2 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)