Thread View: gnu.gdb.bug
1 messages
1 total messages
Started by Christophe MONJARET
Fri, 29 Mar 2002 10:32
Error when building gdbserver for a cross-target
Author: Christophe MONJARET
Date: Fri, 29 Mar 2002 10:32
Date: Fri, 29 Mar 2002 10:32
61 lines
3354 bytes
3354 bytes
Hi all, I am trying to build a cross debugger with the gdb-5.1.1 sources. My host is an i686-pc-linux and my target is an arm-linux. The build process is OK for the gdb cross-debugger client (which is compiled with my native gcc-2.96) but I have errors when building gdbserver. Here is the output of my build process : [root@ulysse gdbserver]# ./configure --host=arm-linux --build=i686-pc-linux-gnu loading cache ./config.cache checking host system type... arm-unknown-linux-gnu checking target system type... arm-unknown-linux-gnu checking build system type... i686-pc-linux-gnu checking for a BSD compatible install... (cached) /usr/bin/install -c creating ./config.status creating Makefile linking ./../config/arm/xm-linux.h to xm.h linking ./../config/arm/tm-linux.h to tm.h linking ./../config/arm/nm-linux.h to nm.h Then, I patch the Makefile to set CC, ar and ranlib with my cross-tools, [root@ulysse gdbserver]# make gdbserver arm-linux-gcc -c -g -I. -I.. -I. -I./.. -I./../config -I./../../include -I../../bfd -I./../../bfd -DGDBSERVER low-linux.c low-linux.c:42: sys/reg.h: no such file or directory make: *** [low-linux.o] Erreur 1 Then, I path the makefile again in order to add the "/usr/include" PATH, [root@ulysse gdbserver]# make gdbserver arm-linux-gcc -c -g -I. -I.. -I. -I./.. -I./../config -I./../../include -I/usr/include -I../../bfd -I./../../bfd -DGDBSERVER low-linux.c low-linux.c: In function `mywait': low-linux.c:109: warning: passing arg 2 of `waitpid' from incompatible pointer type low-linux.c: In function `fetch_register': low-linux.c:570: `KERNEL_U_ADDR' undeclared (first use in this function) low-linux.c:570: (Each undeclared identifier is reported only once low-linux.c:570: for each function it appears in.) low-linux.c: In function `store_inferior_registers': low-linux.c:614: `KERNEL_U_ADDR' undeclared (first use in this function) low-linux.c: At top level: low-linux.c:52: warning: `initialize_arch' used but never defined make: *** [low-linux.o] Erreur 1 Any suggestion ? PS : I have the same error when I try to compile the gdbserver with my native gcc-2.96. Thank you in advance.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads