public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* gdb-9.1 Fails to build: "invalid cast to abstract class type"
@ 2020-05-20 18:24 Chris Nicol
  2020-05-21 14:12 ` Simon Marchi
  0 siblings, 1 reply; 19+ messages in thread
From: Chris Nicol @ 2020-05-20 18:24 UTC (permalink / raw)
  To: gdb

Hello,

I am trying to build a new version of the debugger on a SunBlade 100 
running FreeBSD 12.1. This build fails with the following complaint:

   CXX    sparc64-fbsd-nat.o
In file included from ../../gdb/sparc64-fbsd-nat.c:26:
../../gdb/sparc-nat.h: In instantiation of 'target_xfer_status 
sparc_target<BaseTarget>::xfer_partial(target_object, const char*, 
gdb_byte*, const gdb_byte*, ULONGEST, ULONGEST, ULONGEST*) [with 
BaseTarget = fbsd_nat_target; gdb_byte = unsigned char; ULONGEST = long 
unsigned int]':
../../gdb/sparc-nat.h:67:27:   required from here
../../gdb/sparc-nat.h:78:12: error: invalid cast to abstract class type 
'fbsd_nat_target'
    78 |     return BaseTarget (object, annex, readbuf, writebuf,
       |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    79 |          offset, len, xfered_len);
       |          ~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../gdb/sparc64-fbsd-nat.c:24:
../../gdb/fbsd-nat.h:36:7: note:   because the following virtual 
functions are pure within 'fbsd_nat_target':
    36 | class fbsd_nat_target : public inf_ptrace_target
       |       ^~~~~~~~~~~~~~~
In file included from ../../gdb/inf-ptrace.h:23,
                  from ../../gdb/fbsd-nat.h:23,
                  from ../../gdb/sparc64-fbsd-nat.c:24:
../../gdb/inf-child.h:42:8: note: 	'virtual void 
inf_child_target::fetch_registers(regcache*, int)'
    42 |   void fetch_registers (struct regcache *, int) override = 0;
       |        ^~~~~~~~~~~~~~~
../../gdb/inf-child.h:43:8: note: 	'virtual void 
inf_child_target::store_registers(regcache*, int)'
    43 |   void store_registers (struct regcache *, int) override = 0;
       |        ^~~~~~~~~~~~~~~
gmake[2]: *** [Makefile:1656: sparc64-fbsd-nat.o] Error 1
gmake[2]: Leaving directory '/usr/home/nicolc/gdb/gdb-9.1/build/gdb'
gmake[1]: *** [Makefile:9563: all-gdb] Error 2
gmake[1]: Leaving directory '/usr/home/nicolc/gdb/gdb-9.1/build'
gmake: *** [Makefile:851: all] Error 2


Can anyone provide insight into what is going on here, please? Thank you.

Chris.
-- 
______________________________________________________________________


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

end of thread, other threads:[~2020-05-28 17:38 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-20 18:24 gdb-9.1 Fails to build: "invalid cast to abstract class type" Chris Nicol
2020-05-21 14:12 ` Simon Marchi
2020-05-22  3:55   ` Chris Nicol
2020-05-22  5:56     ` gdb 8.3: "handler for the OSI ABI "FreeBSD" is not built into this configuration" Chris Nicol
2020-05-22 17:36       ` Simon Marchi
2020-05-22 18:22         ` Chris Nicol
2020-05-22 18:51           ` Simon Marchi
2020-05-22 19:35             ` Chris Nicol
2020-05-23 17:40               ` Martin Simmons
2020-05-23 18:29                 ` Chris Nicol
2020-05-23 22:17                   ` Martin Simmons
2020-05-24  1:55                     ` Chris Nicol
2020-05-24 14:05                       ` Simon Marchi
2020-05-27 21:31                       ` Martin Simmons
     [not found]                         ` <46566349-c023-6a75-7006-268aad4913c6@uleth.ca>
2020-05-28 10:57                           ` Martin Simmons
2020-05-28 14:40                             ` Chris Nicol
2020-05-28 17:30                               ` Martin Simmons
2020-05-28 17:37                                 ` Chris Nicol
2020-05-23 16:29   ` gdb-9.1 Fails to build: "invalid cast to abstract class type" Joel Brobecker

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).