Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Problem building GDB for sparc-rtems
@ 2011-05-16 16:35 David Paterson
  2011-05-18 23:45 ` Keith Seitz
  0 siblings, 1 reply; 12+ messages in thread
From: David Paterson @ 2011-05-16 16:35 UTC (permalink / raw)
  To: gdb

Hi,

This may be more appropriate for the RTEMS, or even Binutils, mailing
lists - if so, please
let me know and I'll move it over.

I'm trying to build a cross-toolchain for a Sparc (Leon2) system, and
while the basic
version, configured for "sparc-elf" is no problem, when I try to
rebuild for RTEMS I'm
getting an error during the GDB build :-

../gdb-7.2/bfd/bfd.c: In function 'bfd_assert':
../gdb-7.2/bfd/bfd.c:925: error: 'BFD_VERSION_STRING' undeclared
(first use in this function)
../gdb-7.2/bfd/bfd.c:925: error: (Each undeclared identifier is
reported only once
../gdb-7.2/bfd/bfd.c:925: error: for each function it appears in.)

which appears to be caused by "bfdver.h" being completely empty!

This file should be created by the configure script, and I can't see
why it doesn't get set
up with the relevant information.  Interestingly, building Binutils as
part of the whole
toolchain creation process has no problems, and "bfdver.h" is set up
correctly.  It looks
like there are some differences between the Binutils and GDB versions
of BFD, but
I'm not expert enough to see what's causing the problem.

Comparing the basic (sparc-elf) and RTEMS builds, the only thing that
really stands out
in the config and makefiles is that RTEMS includes coff bits, e.g. the
list of  targets for
"bfd_backends" is identical apart from the addition of
"coff-sparc.lo", and similar changes
for "havevecs" and "tdefaults".

However, I can't see any connection between adding coff targets and
the BFD version
string setup...

Any hints, tips or clues will be gratefully received,

Cheers,

David P.


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

end of thread, other threads:[~2011-05-20 13:05 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-16 16:35 Problem building GDB for sparc-rtems David Paterson
2011-05-18 23:45 ` Keith Seitz
2011-05-19  8:54   ` David Paterson
2011-05-19  9:49     ` Ralf Corsepius
2011-05-19 10:11       ` David Paterson
2011-05-19 10:39         ` Ralf Corsepius
2011-05-19 13:07           ` David Paterson
2011-05-19 13:44             ` Joel Sherrill
2011-05-19 14:09               ` David Paterson
2011-05-19 18:51                 ` Keith Seitz
2011-05-20  8:59                   ` David Paterson
2011-05-20 13:05                     ` Joel Sherrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox