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. _______________________________________________ Bug-gdb mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-gdb