Hi Ralf
I am trying to make a Big Endian gdb. So I am giving host and target as
mips-mips-linux. I also applied the patch you sent me to gdb-4.17. This is
what I am getting when I try to make. I looked in the file
<build-directory>/sim/mips/config.h There HAVE_SYS_RESOURCE_H is undefined.
So it is not including resource.h which inturn includes other headers and
that is where struct rusage is defined.
Should I uncomment that ?. Any way see at the bottom.
/edptools/linux/lib/gcc-lib/mipsel-linux/2.7.2/cc1 /var/tmp/cca005Gd.i -quiet -
dumpbase sim-utils.c -g -version -o /var/tmp/cca005Gd.s
GNU C version 2.7.2 [AL 1.1, MM 40] MIPSEL Linux/ELF compiled by GNU C version 2
.7.2.1.
../../../sim/mips/../common/sim-utils.c: In function `sim_elapsed_time_get':
../../../sim/mips/../common/sim-utils.c:226: storage size of `mytime' isn't know
n
../../../sim/mips/../common/sim-utils.c:227: `RUSAGE_SELF' undeclared (first use
this function)
../../../sim/mips/../common/sim-utils.c:227: (Each undeclared identifier is repo
rted only once
../../../sim/mips/../common/sim-utils.c:227: for each function it appears in.)
make[2]: *** [sim-utils.o] Error 1
make[1]: *** [all] Error 2
After uncommenting that and doing a #define HAVE_SYS_RESOURCE_H in
<build-dir>/sim/mips/config.h this is what is happening
dumpbase mipslinux-nat.c -g -version -o /var/tmp/cca005Y0.s
GNU C version 2.7.2 [AL 1.1, MM 40] MIPSEL Linux/ELF compiled by GNU C version 2
.7.2.1.
In file included from ../../gdb/mipslinux-nat.c:23:
/net/packrat/home/narayh/R5900/linux/include/linux/time.h:50: field `it_interval
' has incomplete type
/net/packrat/home/narayh/R5900/linux/include/linux/time.h:51: field `it_value' h
as incomplete type
In file included from ../../gdb/mipslinux-nat.c:44:
/net/packrat/home/narayh/R5900/linux/include/linux/elfcore.h:50: parse error bef
ore `pid_t'
/net/packrat/home/narayh/R5900/linux/include/linux/elfcore.h:50: warning: no sem
icolon at end of struct or union
/net/packrat/home/narayh/R5900/linux/include/linux/elfcore.h:51: warning: data d
efinition has no type or storage class
/net/packrat/home/narayh/R5900/linux/include/linux/elfcore.h:52: parse error bef
ore `pr_pgrp'
/net/packrat/home/narayh/R5900/linux/include/linux/elfcore.h:52: warning: data d
efinition has no type or storage class
This doesn't make sense. Any pointers ?.
Thanks in advance
Hari.
|