Article View: gnu.gdb.bug
Article #2401Error when building gdbserver for a cross-target
From: 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.
Technical Details
Message-ID:
<dca958c.0203290232.61134738@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!207.217.77.43.MISMATCH!newsfeed1.earthlink.net!newsfeed.earthlink.net!uunet!lax.uu.net!sac.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5053,f1d4ceb926ac44b4,start X-Google-Attributes: gidf5053,public X-Google-ArrivalTime: 2002-03-29 02:32:45 PST x-uunet-gateway: sjc3sosrv11.alter.net from bug-gdb to gnu.gdb.bug; Fri, 29 Mar 2002 10:32:43 GMT Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!207.217.77.43.MISMATCH!newsfeed1.earthlink.net!newsfeed.earthlink.net!uunet!lax.uu.net!sac.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!not-for-mail From: cmonjaret@gerpi.fr (Christophe MONJARET) Subject: Error when building gdbserver for a cross-target Date: 29 Mar 2002 02:32:06 -0800 Organization: http://groups.google.com/ Message-ID: <dca958c.0203290232.61134738@posting.google.com> NNTP-Posting-Host: 194.51.141.190 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1017397926 8721 127.0.0.1 (29 Mar 2002 10:32:06 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 29 Mar 2002 10:32:06 GMT Approved: bug-gdb-request@mail.gnu.org Newsgroups: gnu.gdb.bug Sender: bug-gdb-request@mail.gnu.org Lines: 61