Trouble compiling gdb for host=i686 target=mips
Andrew Cagney
ac131313@cygnus.com
Mon Jul 31 19:08:00 GMT 2000
> I did:
> ./configure --target=mipsel-elf-linux
> make
Perhaphs try --target=mips-elf.
> And got the following errors:
>
> gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -I. -I. -I./../include
> -I./../intl -I../intl -W -Wall -g -O2 -c stab-syms.c -o stab-syms.o
> echo timestamp > stab-syms.lo
> /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.
> -D_GNU_SOURCE -I. -I. -I./../include -I./../intl -I../intl -W
> -Wall -g -O2 -c elf32-mips.c
> gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -I. -I. -I./../include
> -I./../intl -I../intl -W -Wall -g -O2 -c elf32-mips.c -o elf32-mips.o
> elf32-mips.c:1927: `BFD_RELOC_MIPS_HIGHER' undeclared here (not in a
> function)
> elf32-mips.c:1927: initializer element for
> `mips_reloc_map[21].bfd_reloc_val' is not constant
> elf32-mips.c:1928: `BFD_RELOC_MIPS_HIGHEST' undeclared here (not in a
> function)
> elf32-mips.c:1928: initializer element for
> `mips_reloc_map[22].bfd_reloc_val' is not constant
> make[3]: *** [elf32-mips.lo] Error 1
> make[3]: Leaving directory `/.ws/home/curtisv/gdb-5+/bfd'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/.ws/home/curtisv/gdb-5+/bfd'
> make[1]: *** [all-recursive-am] Error 2
> make[1]: Leaving directory `/.ws/home/curtisv/gdb-5+/bfd'
> make: *** [all-bfd] Error 2
Hmm,
In general BFD questions should be sent to binutils@sources.redhat.com.
Here, however, things get interesting - it is a copy of BFD bundled with
GDB 5.0. It is pretty out-of-date.
I'd suggest first downloading a current GDB (you'll need to do that
anyway) and see if the problem occures there. GDB/BFD use a common CVS
repository so you'll be picking up the latest BFD.
enjoy,
Andrew
More information about the Gdb-patches
mailing list