Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gdb_monitor: build error with -std=gnu++20 #4873

Closed
cproc opened this issue May 12, 2023 · 0 comments
Closed

gdb_monitor: build error with -std=gnu++20 #4873

cproc opened this issue May 12, 2023 · 0 comments
Assignees

Comments

@cproc
Copy link
Member

cproc commented May 12, 2023

When building app/gdb_monitor with -std=gnu++20 as default, the following error occurs:

In file included from /.../contrib/gdb-59a56418c6720518cfc7e4485557dd2c707b5e03/src/noux-pkg/gdb/gdbsupport/
def-vector.h:22,
                 from /.../contrib/gdb-59a56418c6720518cfc7e4485557dd2c707b5e03/src/noux-pkg/gdb/gdbsupport/
byte-vector.h:21,
                 from /.../contrib/gdb-59a56418c6720518cfc7e4485557dd2c707b5e03/src/noux-pkg/gdb/gdbsupport/
common-utils.h:25:
/.../contrib/gdb-59a56418c6720518cfc7e4485557dd2c707b5e03/src/noux-pkg/gdb/gdbsupport/default-init-alloc.h: 
In instantiation of 'class gdb::default_init_allocator<unsigned char, std::allocator<unsigned char> >':
/.../contrib/stdcxx-4eddc2a55a80ed5d3a50fee3f5c25e7ac42afd72/include/stdcxx/bits/stl_vector.h:88:21:   requi
red from 'struct std::_Vector_base<unsigned char, gdb::default_init_allocator<unsigned char, std::allocator<unsigned char> > >'
/.../contrib/stdcxx-4eddc2a55a80ed5d3a50fee3f5c25e7ac42afd72/include/stdcxx/bits/stl_vector.h:423:11:   requ
ired from 'class std::vector<unsigned char, gdb::default_init_allocator<unsigned char, std::allocator<unsigned char> > >'
/.../contrib/gdb-59a56418c6720518cfc7e4485557dd2c707b5e03/src/noux-pkg/gdb/gdbserver/server.cc:571:3:   requ
ired from here
/.../contrib/gdb-59a56418c6720518cfc7e4485557dd2c707b5e03/src/noux-pkg/gdb/gdbsupport/default-init-alloc.h:52:12: error: 'construct' has not been declared in 'class std::allocator<unsigned char>'
   52 |   using A::construct;
      |            ^~~~~~~~~
@cproc cproc added the bug label May 12, 2023
@cproc cproc self-assigned this May 16, 2023
chelmuth added a commit that referenced this issue May 16, 2023
@chelmuth chelmuth added the fixed label May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants