public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/13418] New: gdb/configure "--target=mips-elf --enable-targets=all" breaks the build
@ 2011-11-19 19:24 hector.oron at gmail dot com
  2015-02-04 11:47 ` [Bug gdb/13418] " sparksco at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: hector.oron at gmail dot com @ 2011-11-19 19:24 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug gdb/13418] gdb/configure "--target=mips-elf --enable-targets=all" breaks the build
  2011-11-19 19:24 [Bug gdb/13418] New: gdb/configure "--target=mips-elf --enable-targets=all" breaks the build hector.oron at gmail dot com
@ 2015-02-04 11:47 ` sparksco at gmail dot com
  2015-08-06 20:30 ` hexumg at gmail dot com
  2015-08-06 20:33 ` hexumg at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: sparksco at gmail dot com @ 2015-02-04 11:47 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=13418

Paul Beeler <sparksco at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sparksco at gmail dot com

--- Comment #1 from Paul Beeler <sparksco at gmail dot com> ---
I have the same problem with gcc 4.9.3...  Although I'm using a slightly
different configuration the result is the same.

--target=arm-eabi --enable-targets=all

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug gdb/13418] gdb/configure "--target=mips-elf --enable-targets=all" breaks the build
  2011-11-19 19:24 [Bug gdb/13418] New: gdb/configure "--target=mips-elf --enable-targets=all" breaks the build hector.oron at gmail dot com
  2015-02-04 11:47 ` [Bug gdb/13418] " sparksco at gmail dot com
@ 2015-08-06 20:30 ` hexumg at gmail dot com
  2015-08-06 20:33 ` hexumg at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: hexumg at gmail dot com @ 2015-08-06 20:30 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=13418

Eugene Yarkov <hexumg at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hexumg at gmail dot com

--- Comment #2 from Eugene Yarkov <hexumg at gmail dot com> ---
Hello!

I've got this error while crosscompilation in Gentoo.
rs6000-tdep.c:(.text+0x1e34d): undefined reference to `sim_spr_register_name'

Crossgev command that triggers the bug
crossdev -t arm-none-eabi --ex-gdb

Stage 2 arm-none-eabi toolchain has been already built.

Could someone help me to resolve this bug?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug gdb/13418] gdb/configure "--target=mips-elf --enable-targets=all" breaks the build
  2011-11-19 19:24 [Bug gdb/13418] New: gdb/configure "--target=mips-elf --enable-targets=all" breaks the build hector.oron at gmail dot com
  2015-02-04 11:47 ` [Bug gdb/13418] " sparksco at gmail dot com
  2015-08-06 20:30 ` hexumg at gmail dot com
@ 2015-08-06 20:33 ` hexumg at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: hexumg at gmail dot com @ 2015-08-06 20:33 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=13418

--- Comment #3 from Eugene Yarkov <hexumg at gmail dot com> ---
Created attachment 8490
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8490&action=edit
Full crosscompile error log

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-06 20:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-19 19:24 [Bug gdb/13418] New: gdb/configure "--target=mips-elf --enable-targets=all" breaks the build hector.oron at gmail dot com
2015-02-04 11:47 ` [Bug gdb/13418] " sparksco at gmail dot com
2015-08-06 20:30 ` hexumg at gmail dot com
2015-08-06 20:33 ` hexumg at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).