This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Your commit 'MIPS/opcodes: Also set disassembler's ASE flags from ELF structures' broke GDB
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: "Maciej W. Rozycki" <macro at imgtec dot com>
- Cc: sergiodj+buildbot at sergiodj dot net, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Thu, 15 Dec 2016 19:47:30 +0000
- Subject: Re: Your commit 'MIPS/opcodes: Also set disassembler's ASE flags from ELF structures' broke GDB
- Authentication-results: sourceware.org; auth=none
- References: <E1cHNui-0007Mp-46@kwanyin.sergiodj.net> <alpine.DEB.2.00.1612150502490.6743@tp.orcam.me.uk>
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.
>
Hi, Maciej,
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'
CXXFLAGS='-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.
--
Yao