This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Keith: [root@venus gdbserver]# make arm-linux-gcc -c -g -I/home/bgat/Intrinsyc/include -I. -I.. -I../../gdb/gdbserver -I../../gdb/gdbserver/.. -I../../gdb/gdbserver/../config -I../../gdb/gdbserver/../../include -I../../bfd -I../../gdb/gdbserver/../../bfd -DGDBSERVER ../../gdb/gdbserver/low-linux.c ../../gdb/gdbserver/low-linux.c:42: sys/reg.h: No such file or directory make: *** [low-linux.o] Error 1 [root@venus gdbserver]# find ~/Intrinsyc/ -name reg.h /root/Intrinsyc/arm-linux/sys-include/asm-mips/reg.h /root/Intrinsyc/arm-linux/sys-include/asm-alpha/reg.h /root/Intrinsyc/arm-linux/sys-include/asm-sparc/reg.h /root/Intrinsyc/arm-linux/sys-include/asm-sparc64/reg.h /root/Intrinsyc/arm-linux/sys-include/asm-mips64/reg.h I'm using a prebuilt toolchain from Intrinsyc. I'm thinking there's something wrong about it, but I can't quite put my finger on it... Where is your reg.h? What versions of arm-linux tools are you using? I may just have to start from scratch here... b.g. On Thu, Jan 31, 2002 at 06:50:13PM +0000, Keith.Walker wrote: > >Regarding this: > > > >http://sources.redhat.com/ml/gdb-patches/2001-12/msg00137.html > > > > > >Do you have a quick recipe for building gdbserver? > > > >I have an arm-linux toolchain installed, but I'm having to do a lot of > >editing in the Makefile for gdbserver after configuring, to get my > >search paths right. I haven't had a successful build yet. > > > >This makes me suspicious that I'm doing something wrong... > > What host & target are you specifying when building gdb? > > If you are just building gdb to run on your (Intel?) linux box but targeted > at ARM (i.e. you have just built gdb using configure --target=arm-linux > ......) then try the following ...... > > In the gdbserver build directory: > > change the symbolic link xm.h to point to > <SRCDIR>/gdb/config/arm/xm-linux.h. > create the symbolic link nm.h to point to > <SRCDIR>/gdb/config/arm/nm-linux.h. > edit ../config.h and change the line: > /* #undef GDB_NM_FILE */ > to > #define GDB_NM_FILE config/arm/tm-linux.h > > set the environment variable CC to point to your arm-linux compiler, e.g. > CC=arm-linux-gcc > export CC > and finally run make. > > This is a bit of a hack, but it saves you having to cross-build all of gdb > just to get gdbserver built for your target system. > > > Keith > Keith Walker keith.walker@arm.com Tel:+44 (1628) 427732 > ARM Ltd http://www.arm.com > -- Bill Gatliff bgat@billgatliff.com ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |