Discussion:
[Bug build/23066] New: undefined reference to `x86_in_indirect_branch_thunk(unsigned long, char const**, int, int)'
patrick at monnerat dot net
2018-04-14 16:59:26 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23066

Bug ID: 23066
Summary: undefined reference to
`x86_in_indirect_branch_thunk(unsigned long, char
const**, int, int)'
Product: gdb
Version: HEAD
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: build
Assignee: unassigned at sourceware dot org
Reporter: patrick at monnerat dot net
Target Milestone: ---

Since commit 1d509aa that introduces new file x86-tdep.c, the error in summary
occurs at gdb compile time because x86-tdep.c is neither compiled nor linked.

Build platform: linux x86_64.
configure command: ./configure --prefix=/usr/. --libdir=/usr/lib64
--disable-binutils --disable-gas --disable-gprof --disable-gold --disable-ld
--disable-elfcpp --disable-zlib --enable-sim --disable-rpath
--with-gdb-datadir=/usr/share/gdb --with-jit-reader-dir=/usr/lib64/gdb
--with-separate-debug-dir='/usr/lib/debug' --with-expat --with-python
--without-libunwind --without-babeltrace --with-lzma --enable-inprocess-agent
--with-auto-load-dir='/usr/share/gdb/auto-load'

---
CXXLD gdb
i386-tdep.o: In function `i386_in_indirect_branch_thunk(gdbarch*, unsigned
long)':
/home/patrick/tmp/binutils-gdb/gdb/i386-tdep.c:4431: undefined reference to
`x86_in_indirect_branch_thunk(unsigned long, char const**, int, int)'
amd64-tdep.o: In function `amd64_in_indirect_branch_thunk(gdbarch*, unsigned
long)':
/home/patrick/tmp/binutils-gdb/gdb/amd64-tdep.c:3045: undefined reference to
`x86_in_indirect_branch_thunk(unsigned long, char const**, int, int)'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1915: gdb] Error 1
---

If I add option '--enable-targets=all' to the configure command, the build
succeeds.
--
You are receiving this mail because:
You are on the CC list for the bug.
patrick at monnerat dot net
2018-04-16 22:24:21 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23066

Patrick Monnerat <patrick at monnerat dot net> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED

--- Comment #1 from Patrick Monnerat <patrick at monnerat dot net> ---
Bug fixed by commit eda4efb
Thank you Simon :-)
Closing.
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...