public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Build failure on Debian stable
@ 2024-02-17 15:11 Levente
  2024-02-17 16:59 ` H.J. Lu
  2024-02-19 11:30 ` Nick Clifton
  0 siblings, 2 replies; 3+ messages in thread
From: Levente @ 2024-02-17 15:11 UTC (permalink / raw)
  To: binutils

Hi,


I'm trying to build binutils and gdb on Debian stable.
I do this:

mkdir test_build
cd test_build
../configure
make


I get this:

   CXX    tui/tui-command.o
In file included from ../../gdb/tui/tui-data.h:28,
                  from ../../gdb/tui/tui-command.c:24:
../../gdb/../gdbsupport/gdb-checked-static-cast.h: In instantiation of 
‘T gdb::checked_static_cast(V*) [with T = tui_cmd_window*; V = 
tui_win_info]’:
../../gdb/tui/tui-command.c:65:15:   required from here
../../gdb/../gdbsupport/gdb-checked-static-cast.h:63:14: error: cannot 
convert from pointer to base class ‘tui_win_info’ to pointer to derived 
class ‘tui_cmd_window’ because the base is virtual
    63 |   T result = static_cast<T> (v);
       |              ^~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:1930: tui/tui-command.o] Error 1
make[2]: Leaving directory 
'/home/lev/git/library/software/scripts/avr_toolchain_build/binutils-gdb/test_build/gdb'
make[1]: *** [Makefile:13473: all-gdb] Error 2
make[1]: Leaving directory 
'/home/lev/git/library/software/scripts/avr_toolchain_build/binutils-gdb/test_build'
make: *** [Makefile:1032: all] Error 2


My environment is this:

gcc --version
gcc (Debian 12.2.0-14) 12.2.0

uname -a
Linux athena 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 
(2024-02-01) x86_64 GNU/Linux


I'm not sure I miss something.

If I disable gdb, it compiles.


Thanks for your help,
Levente


-- 
Levente Kovacs
Senior Electronic Engineer

W: http://levente.logonex.eu

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

* Re: Build failure on Debian stable
  2024-02-17 15:11 Build failure on Debian stable Levente
@ 2024-02-17 16:59 ` H.J. Lu
  2024-02-19 11:30 ` Nick Clifton
  1 sibling, 0 replies; 3+ messages in thread
From: H.J. Lu @ 2024-02-17 16:59 UTC (permalink / raw)
  To: Levente, GDB; +Cc: binutils

On Sat, Feb 17, 2024 at 7:12 AM Levente <leventelist@gmail.com> wrote:
>
> Hi,
>
>
> I'm trying to build binutils and gdb on Debian stable.
> I do this:
>
> mkdir test_build
> cd test_build
> ../configure
> make
>
>
> I get this:
>
>    CXX    tui/tui-command.o
> In file included from ../../gdb/tui/tui-data.h:28,
>                   from ../../gdb/tui/tui-command.c:24:
> ../../gdb/../gdbsupport/gdb-checked-static-cast.h: In instantiation of
> ‘T gdb::checked_static_cast(V*) [with T = tui_cmd_window*; V =
> tui_win_info]’:
> ../../gdb/tui/tui-command.c:65:15:   required from here
> ../../gdb/../gdbsupport/gdb-checked-static-cast.h:63:14: error: cannot
> convert from pointer to base class ‘tui_win_info’ to pointer to derived
> class ‘tui_cmd_window’ because the base is virtual
>     63 |   T result = static_cast<T> (v);
>        |              ^~~~~~~~~~~~~~~~~~
> make[2]: *** [Makefile:1930: tui/tui-command.o] Error 1
> make[2]: Leaving directory
> '/home/lev/git/library/software/scripts/avr_toolchain_build/binutils-gdb/test_build/gdb'
> make[1]: *** [Makefile:13473: all-gdb] Error 2
> make[1]: Leaving directory
> '/home/lev/git/library/software/scripts/avr_toolchain_build/binutils-gdb/test_build'
> make: *** [Makefile:1032: all] Error 2
>
>
> My environment is this:
>
> gcc --version
> gcc (Debian 12.2.0-14) 12.2.0
>
> uname -a
> Linux athena 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1
> (2024-02-01) x86_64 GNU/Linux
>
>
> I'm not sure I miss something.
>
> If I disable gdb, it compiles.
>
>
> Thanks for your help,
> Levente
>

You are building GDB.   It belongs to the GDB mailing list.

-- 
H.J.

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

* Re: Build failure on Debian stable
  2024-02-17 15:11 Build failure on Debian stable Levente
  2024-02-17 16:59 ` H.J. Lu
@ 2024-02-19 11:30 ` Nick Clifton
  1 sibling, 0 replies; 3+ messages in thread
From: Nick Clifton @ 2024-02-19 11:30 UTC (permalink / raw)
  To: Levente, binutils

Hi Levente,

>    CXX    tui/tui-command.o
> In file included from ../../gdb/tui/tui-data.h:28,
>                   from ../../gdb/tui/tui-command.c:24:
> ../../gdb/../gdbsupport/gdb-checked-static-cast.h: In instantiation of ‘T gdb::checked_static_cast(V*) [with T = tui_cmd_window*; V = tui_win_info]’:
> ../../gdb/tui/tui-command.c:65:15:   required from here
> ../../gdb/../gdbsupport/gdb-checked-static-cast.h:63:14: error: cannot convert from pointer to base class ‘tui_win_info’ to pointer to derived class ‘tui_cmd_window’ 
> because the base is virtual
>     63 |   T result = static_cast<T> (v);
>        |              ^~~~~~~~~~~~~~~~~~
> make[2]: *** [Makefile:1930: tui/tui-command.o] Error 1

> I'm not sure I miss something.

Unfortunately we cannot help you as this is the mailing list for binutils
issues, and the code above is part of GDB, not the binutils.  If you resend
your email to gdb@sourceware.org you will be more likely to get some help.

If/when you do resend your email, it would help to mention which version of
the gdb sources you are compiling.

Cheers
   Nick




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

end of thread, other threads:[~2024-02-19 11:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-17 15:11 Build failure on Debian stable Levente
2024-02-17 16:59 ` H.J. Lu
2024-02-19 11:30 ` Nick Clifton

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