Your commit 'MIPS/opcodes: Also set disassembler's ASE flags from ELF structures' broke GDB
Thu Dec 15 19:47:00 GMT 2016
On 16-12-15 12:15:33, Maciej W. Rozycki wrote:
> How do I get the canonical build/host/target system and `configure'
> options used for this build?
> This failure is very odd to me, it looks like `opcodes/mips-dis.c' has
> been included in the build of `libopcodes.a', however `bfd/elfxx-mips.c'
> has *not* been included in the build of `libbfd.a'. Offhand I would
> consider such a configuration broken, however maybe it is legitimate after
> all. Has the opcodes/ subdirectory been configured differently from the
> bfd/ subdirectory by any chance?
> In any case I have tried building a couple of GDB configurations and all
> completed successfully.
Did you build GDB on an i686-linux? I can somehow reproduce it on
x86_64-linux, like this,
../opcodes/libopcodes.a(mips-dis.o): In function `set_default_mips_dis_options':
mips-dis.c:(.text+0x906): undefined reference to `bfd_mips_elf_get_abiflags'
collect2: error: ld returned 1 exit status
make: *** [gdb] Error 1
I configure with these options,
../binutils-gdb/configure --host=i686-pc-linux-gnu --disable-sim
--disable-binutils --disable-gprof --disa
ble-gold --disable-gas --disable-ld --enable-targets=all CFLAGS='-m32'
however, the build fails due to failing to find i686-pc-linux-gnu-ar.
I explicitly set AR=ar in make,
or modify libtool in several directories. Finally, the build failed
on the error above.
More information about the Gdb-patches