This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug sim/13418] sim: building with --enable-targets=all fails with: undefined reference to sim_spr_register_name
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 05 Jan 2016 11:08:17 +0000
- Subject: [Bug sim/13418] sim: building with --enable-targets=all fails with: undefined reference to sim_spr_register_name
- Auto-submitted: auto-generated
- References: <bug-13418-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=13418
--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Pedro Alves <palves@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=976102cd178de0dd6b366746f850b026a2793097
commit 976102cd178de0dd6b366746f850b026a2793097
Author: Pedro Alves <palves@redhat.com>
Date: Tue Jan 5 11:03:40 2016 +0000
Fix PR sim/13418: building with --enable-targets=all fails
Multitarget builds currently fail when:
(1) simulator support is enabled (the main --target supports target sim)
(2) powerpc is included in the --enable-targets list
(3) powerpc is not the main/default target (--target)
This is because the powerpc sim provides a non-standard API function
sim_spr_register_name which gdb/rs6000-tdep.c utilizes. Since the sim
does not yet support multitarget, only the sim (if one exists) for the
main target is built. When that target isn't powerpc, this function
is not available leading to linking errors:
rs6000-tdep.c:(.text+0x1e34d): undefined reference to
`sim_spr_register_name'
Fix this by only using that API if the sim linked in is the powerpc
sim.
gdb/ChangeLog:
2016-01-05 Pedro Alves <palves@redhat.com>
PR sim/13418
* configure.ac: Define WITH_PPC_SIM when linking in the sim and
the target is powerpc*.
* configure: Regenerate.
* config.in: Regenerate.
--
You are receiving this mail because:
You are on the CC list for the bug.