This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/13418] New: gdb/configure "--target=mips-elf--enable-targets=all" breaks the build
- From: "hector.oron at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sat, 19 Nov 2011 19:23:58 +0000
- Subject: [Bug gdb/13418] New: gdb/configure "--target=mips-elf--enable-targets=all" breaks the build
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13418
Bug #: 13418
Summary: gdb/configure "--target=mips-elf --enable-targets=all"
breaks the build
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: gdb
AssignedTo: unassigned@sourceware.org
ReportedBy: hector.oron@gmail.com
Classification: Unclassified
Hello,
Trying to build GDB on mips and mipsel hosts with --enable-targets=all breaks
the build with:
mips-linux-gnu-gcc -g -O2 \
-o gdb gdb.o libgdb.a \
../sim/mips/libsim.a -lreadline ../opcodes/libopcodes.a
../bfd/libbfd.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
-lncurses -lz -lm -L/usr/lib/python2.7/config -lpthread -ldl -lutil -lm
-lpython2.7 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -lexpat
../libiberty/libiberty.a gnulib/libgnu.a -ldl -rdynamic
libgdb.a(rs6000-tdep.o): In function `init_sim_regno_table':
/home/zumbi/gdb-7.4/gdb/rs6000-tdep.c:335: undefined reference to
`sim_spr_register_name'
collect2: ld returned 1 exit status
The problem seems to happen because the simulator gets enabled and
`sim_spr_register_name' which is part of sim/ppc/gdb-sim.c does not seem to be
compiled and linked into libgdb.a.
The issue should be reproducible configuring the GDB:
"--target=mips-elf --enable-targets=all"
My configure option is as follows using GDB CVS HEAD:
./configure --host=mips-linux-gnu --disable-gdbtk --disable-shared
--srcdir=/home/zumbi/gdb-7.4 --with-system-readline
--with-system-gdbinit=/etc/gdb/gdbinit --build=mips-linux-gnu --enable-tui
--with-expat --with-python --enable-targets=all
The error has probably been there for long time, but never been triggered.
Please let me know if I can provide extra or more helpful information.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.