2009-07-20 15:41:26 When I add gdbserver to my configuration make fails - Please Help
Marshall Seaborn (UNITED STATES)
Message: 77763
I'm trying to use gdbserver to debug a userland application. When I add the "Miscellaneous
Application 'gdbserver' and run make I get the following error,
make[3]: Entering directory `/home/seaborn/Projects/blackfin-uClinux/uClinux-dist-2008R1.5-RC3/user/gdb'
rm -rf build
mkdir build
(cd build; sh ../gdb/gdbserver/configure --build=i686-pc-linux-gnu --host=bfin-linux-uclibc --build=i686-pc-linux-gnu --prefix=/usr --sysconfdir=/etc --datadir=/usr/share --mandir=/usr/share/man --infodir=/usr/share/info --localstatedir=/var/lib --with-readline --disable-nls)
creating cache ./config.cache
checking for gcc... bfin-linux-uclibc-gcc
checking whether the C compiler (bfin-linux-uclibc-gcc -pipe -Wall -g3 -O0 -mcpu=bf548-0.1 -mcpu=bf548-0.1) works... yes
checking whether the C compiler (bfin-linux-uclibc-gcc -pipe -Wall -g3 -O0 -mcpu=bf548-0.1 -mcpu=bf548-0.1) is a cross-compiler... yes
checking whether we are using GNU C... yes
checking whether bfin-linux-uclibc-gcc accepts -g... yes
checking host system type... bfin-unknown-linux-uclibc
checking target system type... bfin-unknown-linux-uclibc
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... bfin-linux-uclibc-gcc -E
checking for ANSI C header files... yes
checking for sgtty.h... yes
checking for termio.h... yes
checking for termios.h... yes
checking for sys/reg.h... yes
checking for string.h... yes
checking for proc_service.h... no
checking for sys/procfs.h... yes
checking for thread_db.h... yes
checking for linux/elf.h... yes
checking for stdlib.h... yes
checking for unistd.h... yes
checking whether strerror must be declared... no
Error: target not supported by gdbserver.
make[3]: *** [build/build] Error 1
make[3]: Leaving directory `/home/seaborn/Projects/blackfin-uClinux/uClinux-dist-2008R1.5-RC3/user/gdb'
make[2]: *** [gdb] Error 2
make[2]: Leaving directory `/home/seaborn/Projects/blackfin-uClinux/uClinux-dist-2008R1.5-RC3/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/seaborn/Projects/blackfin-uClinux/uClinux-dist-2008R1.5-RC3/user'
make: *** [subdirs] Error 1
make[3]: Entering directory `/home/seaborn/Projects/blackfin-uClinux/uClinux-dist-2008R1.5-RC3/user/gdb'
rm -rf build
mkdir build
(cd build; sh ../gdb/gdbserver/configure --build=i686-pc-linux-gnu --host=bfin-linux-uclibc --build=i686-pc-linux-gnu --prefix=/usr --sysconfdir=/etc --datadir=/usr/share --mandir=/usr/share/man --infodir=/usr/share/info --localstatedir=/var/lib --with-readline --disable-nls)
creating cache ./config.cache
checking for gcc... bfin-linux-uclibc-gcc
checking whether the C compiler (bfin-linux-uclibc-gcc -pipe -Wall -g3 -O0 -mcpu=bf548-0.1 -mcpu=bf548-0.1) works... yes
checking whether the C compiler (bfin-linux-uclibc-gcc -pipe -Wall -g3 -O0 -mcpu=bf548-0.1 -mcpu=bf548-0.1) is a cross-compiler... yes
checking whether we are using GNU C... yes
checking whether bfin-linux-uclibc-gcc accepts -g... yes
checking host system type... bfin-unknown-linux-uclibc
checking target system type... bfin-unknown-linux-uclibc
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... bfin-linux-uclibc-gcc -E
checking for ANSI C header files... yes
checking for sgtty.h... yes
checking for termio.h... yes
checking for termios.h... yes
checking for sys/reg.h... yes
checking for string.h... yes
checking for proc_service.h... no
checking for sys/procfs.h... yes
checking for thread_db.h... yes
checking for linux/elf.h... yes
checking for stdlib.h... yes
checking for unistd.h... yes
checking whether strerror must be declared... no
Error: target not supported by gdbserver.
make[3]: *** [build/build] Error 1
make[3]: Leaving directory `/home/seaborn/Projects/blackfin-uClinux/uClinux-dist-2008R1.5-RC3/user/gdb'
make[2]: *** [gdb] Error 2
make[2]: Leaving directory `/home/seaborn/Projects/blackfin-uClinux/uClinux-dist-2008R1.5-RC3/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/seaborn/Projects/blackfin-uClinux/uClinux-dist-2008R1.5-RC3/user'
make: *** [subdirs] Error 1
My target is a BF548-EZKIT derivative. What does this error mean. If I use gdbserver(old) the make
succeeds.
Also,
The kernel configuration option
for the "Miscellaneous Application" says I must ENABLE PTHREADS_DEBUG_SUPPORT in uClibc config.
How/Where do I enable this option?
Thanks,
Marshall Seaborn
QuoteReplyEditDelete
2009-07-20 15:43:24 Re: When I add gdbserver to my configuration make fails - Please Help
Mike Frysinger (UNITED STATES)
Message: 77764
you picked the wrong one. enable the one that's enabled in the default config -- the one labeled "old".
QuoteReplyEditDelete
2009-07-20 16:11:36 Re: When I add gdbserver to my configuration make fails - Please Help
Marshall Seaborn (UNITED STATES)
Message: 77765
Mike,
thanks for the fast response.
Marshall