I'm still unable to get a gdb/gdbserver combination to compile! Under the theory that user/gdbserver either doesn't work, or works only with an unknown (to me) version of gdb, I've tried an alternate path of building a compatible combination myself. But I'm having problems getting it to configure, as my earlier message describes. I've been off a week, and back today, but I still get the same problems.

I'm really stuck here, and very much at a loss here. Can anyone possibly help me on this one? Please!
Thanks,
-Bob

Robert S. Grimes wrote:
Hi,

Well, talking with a buddy of mine, we've come to the conclusion that the gdbserver in uClinux-dist-20070130.tar.bz2 needs a specific version or versions of gdb, though I can't for the life of my figure out what those versions might be. Doesn't somebody know what to do here?

We also figured a good strategy would be to attempt to build gdbserver in userland. Searching around a bit, I found some recent postings (how did I miss these? Oh, yeah, ARM, not ColdFire) here http://www.mail-archive.com/uclinux-dev@uclinux.org/msg00447.html that suggests doing just that. I followed the suggestions made by Per Hallsmark, but failed early in the process, as these errors can attest

   make[3]: Entering directory
   `/root/polychromix/uClinux/uClinux-dist/user/rsg/gdb'
   make[3]: warning: -jN forced in submake: disabling jobserver mode.
   mkdir gdb-6.6/build
   cd gdb-6.6/build &&  ../configure --target=m68k-linux --with-sysroot
   [ ! -d "shutils" ] || ( touch shutils/.sgbuilt_user && make -j1 -C
   shutils ) || exit $?
   make[3]: Entering directory
   `/root/polychromix/uClinux/uClinux-dist/user/sash'
   make[3]: warning: -jN forced in submake: disabling jobserver mode.
   make -C libsash
   make[4]: Entering directory
   `/root/polychromix/uClinux/uClinux-dist/user/sash/libsash'
   make[4]: Nothing to be done for `all'.
   make[4]: Leaving directory
   `/root/polychromix/uClinux/uClinux-dist/user/sash/libsash'
   make[3]: Leaving directory
   `/root/polychromix/uClinux/uClinux-dist/user/sash'
   [ ! -d "stty" ] || ( touch stty/.sgbuilt_user && make -j1 -C stty )
   || exit $?
   make[3]: Entering directory
   `/root/polychromix/uClinux/uClinux-dist/user/rsg/spitest'
   make[3]: warning: -jN forced in submake: disabling jobserver mode.
   make[3]: Nothing to be done for `all'.
   make[3]: Leaving directory
   `/root/polychromix/uClinux/uClinux-dist/user/rsg/spitest'
   [ ! -d "sysutils" ] || ( touch sysutils/.sgbuilt_user && make -j1 -C
   sysutils ) || exit $?
   make[3]: Entering directory
   `/root/polychromix/uClinux/uClinux-dist/user/shutils'
   make[3]: warning: -jN forced in submake: disabling jobserver mode.
   make[3]: Nothing to be done for `all'.
   make[3]: Leaving directory
   `/root/polychromix/uClinux/uClinux-dist/user/shutils'
   make[3]: Entering directory
   `/root/polychromix/uClinux/uClinux-dist/user/stty'
   make[3]: warning: -jN forced in submake: disabling jobserver mode.
   make[3]: Nothing to be done for `all'.
   make[3]: Leaving directory
   `/root/polychromix/uClinux/uClinux-dist/user/stty'
   make[3]: Entering directory
   `/root/polychromix/uClinux/uClinux-dist/user/sysutils'
   make[3]: warning: -jN forced in submake: disabling jobserver mode.
   make[3]: Nothing to be done for `all'.
   make[3]: Leaving directory
   `/root/polychromix/uClinux/uClinux-dist/user/sysutils'
   creating cache ./config.cache
   checking host system type... i686-pc-linux-gnu
   checking target system type... m68k-unknown-linux-gnu
   checking build system type... i686-pc-linux-gnu
   checking for a BSD compatible install... /usr/bin/install -c
   checking whether ln works... yes
   checking whether ln -s works... yes
   checking for gcc... gcc
   checking whether the C compiler (gcc  -Wl,--fatal-warnings
   -Wl,-elf2flt -Wl,-move-rodata -msep-data -Wl,--fatal-warnings
   -Wl,-elf2flt -Wl,-move-rodata -msep-data) works... no
   configure: error: installation or configuration problem: C compiler
   cannot create executables.
   make[3]: *** [gdb-6.6/build/Makefile] Error 1
   make[3]: Leaving directory
   `/root/polychromix/uClinux/uClinux-dist/user/rsg/gdb'
   make[2]: *** [rsg/gdb] Error 2
make[2]: Leaving directory `/root/polychromix/uClinux/uClinux-dist/user'
   make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/polychromix/uClinux/uClinux-dist/user'
   make: *** [subdirs] Error 1

Hasn't anyone used gdb/gdbserver that can help me?

Thanks!
-Bob

# Glue Makefile for gdb/gdbserver
#
# Author: Per Hallsmark <[EMAIL PROTECTED]>
#

PKG=gdb-6.6

HOST=
HOST_ENV=
CC= CFLAGS=

TGT=m68k-linux
TGT_ENV=

all: build_host build_target

$(PKG)/build/Makefile:
       mkdir $(PKG)/build
       cd $(PKG)/build && $(HOST_ENV) ../configure --target=$(TGT) \
               --with-sysroot

build_host: $(PKG)/build/Makefile
       $(MAKE) -C $(PKG)/build

$(PKG)/build-$(TGT)/gdbserver/Makefile:
       mkdir -p $(PKG)/build-$(TGT)/gdbserver
       cd $(PKG)/build-$(TGT)/gdbserver && \
               $(TGT_ENV) ../../gdb/gdbserver/configure --host=$(TGT)
       build_target: $(PKG)/build-$(TGT)/gdbserver/Makefile
       $(MAKE) -C $(PKG)/build-$(TGT)/gdbserver

romfs:
$(ROMFSINST) $(PKG)/build-$(TGT)/gdbserver/gdbserver /bin/gdbserver

clean:
       $(RM) -r $(PKG)/build $(PKG)/build-$(TGT)
_______________________________________________
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to