I'm trying to get gdbserver running on a development board, and so I'm
building a canadian cross where the host will be arm-linux and the build
machine is i686-pc-linux-gnu.  

After configuring for the above host and build machines, I run make
CC=arm-linux-gcc for gdb, which eventually dies at

make[1]: Entering directory `/src/gdb-latest/gdb-5.0/gdb'
arm-linux-gcc -c -g -O2    -I. -I. -I./config -DHAVE_CONFIG_H
-I./../include/opc
ode -I./../readline/.. -I../bfd -I./../bfd  -I./../include -I../intl
-I./../intl
 -I./tui  -DUSE_INCLUDED_REGEX   arm-linux-nat.c
In file included from arm-linux-nat.c:27:
/usr/local/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/include/sys/ptrace
.h:75: parse error before `12'
make[1]: *** [arm-linux-nat.o] Error 1
make[1]: Leaving directory `/src/gdb-latest/gdb-5.0/gdb'
make: *** [all-gdb] Error 2

Failing this, I wondered if gdbserver could be built w/o the rest of
gdb, but here the build failed with 

[root@cook-pc gdbserver]# make CC=arm-linux-gcc
rm -f gdbserver
arm-linux-gcc    -o gdbserver utils.o low-linux.o server.o
remote-utils.o \
   
low-linux.o: In function `register_addr':
/src/gdb-latest/gdb-5.0/gdb/gdbserver/low-linux.c:570: undefined
reference to `REGISTER_U_ADDR'
/src/gdb-latest/gdb-5.0/gdb/gdbserver/low-linux.c:570: relocation
truncated to fit: R_ARM_PC24 REGISTER_U_ADDR
low-linux.o: In function `initialize_low':
/src/gdb-latest/gdb-5.0/gdb/gdbserver/low-linux.c:771: undefined
reference to `initialize_arch'
/src/gdb-latest/gdb-5.0/gdb/gdbserver/low-linux.c:771: relocation
truncated to fit: R_ARM_PC24 initialize_arch
collect2: ld returned 1 exit status
make: *** [gdbserver] Error 1

Is there a known problem with this?  That parse error seems odd to me -
I haven't touched any of the source code.  The build machine is running
redhat6.2 (so's the host/target, I think, but a very stripped down
version prepared by the board maker).

Nicole Cook

Reply via email to