public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/32503] New: gdb: 'construct' has not been declared in 'std::allocator<unsigned char>
@ 2024-12-27  3:52 jeffrey.cliff at gmail dot com
  2024-12-27 11:35 ` [Bug gdb/32503] " ssbssa at sourceware dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jeffrey.cliff at gmail dot com @ 2024-12-27  3:52 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 32503
           Summary: gdb: 'construct' has not been declared in
                    'std::allocator<unsigned char>
           Product: gdb
           Version: unknown
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: jeffrey.cliff at gmail dot com
  Target Milestone: ---

( looks very much like #29715
https://sourceware.org/bugzilla/show_bug.cgi?id=29715 )

OS : pureos byzantium
arch : aarch64
gcc : (Debian 10.2.1-6) 10.2.1 20210110
gdb : weekly 16.0.50.20241226
CXXFLAGS=-std=gnu++20 -Os -march=native    
CFLAGS=-std=gnu17 -Os -march=native    

true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-std=gnu17 -Os -march=native    "
"CXXFLAGS=-std=gnu++20 -Os -march=native    " "CFLAGS_FOR_BUILD=-std=gnu17 -Os
-march=native" "CFLAGS_FOR_TARGET=-g -O2  -std=gnu17 -Os -march=native"
"INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644"
"INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c"
"LDFLAGS=-s " "LIBCFLAGS=-std=gnu17 -Os -march=native  "
"LIBCFLAGS_FOR_TARGET=-g -O2  -std=gnu17 -Os -march=native" "MAKE=make"
"MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 " "PICFLAG="
"PICFLAG_FOR_TARGET=" "SHELL=/bin/bash" "EXPECT=expect" "RUNTEST=runtest"
"RUNTESTFLAGS=" "exec_prefix=/usr/local" "infodir=/usr/local/share/info"
"libdir=/usr/local/lib" "prefix=/usr/local"
"tooldir=/usr/local/aarch64-unknown-linux-gnu" "AR=ar --plugin
/usr/lib/gcc/aarch64-linux-gnu/10/liblto_plugin.so" "AS=as" "CC=gcc" "CXX=g++"
"LD=ld" "LIBCFLAGS=-std=gnu17 -Os -march=native  " "NM=nm" "PICFLAG="
"RANLIB=ranlib --plugin /usr/lib/gcc/aarch64-linux-gnu/10/liblto_plugin.so"
"DESTDIR=" DO=all multi-do 

when making :

make[4]: Entering directory '/home/purism/gdb-16.0.50.20241226/gdbsupport'
  CXX      common-utils.o
In file included from ../gdbsupport/def-vector.h:22,
                 from ../gdbsupport/byte-vector.h:21,
                 from ././common-utils.h:25,
                 from ././common-defs.h:206,
                 from <command-line>:
../gdbsupport/default-init-alloc.h: In instantiation of ‘class
gdb::default_init_allocator<unsigned char, std::allocator<unsigned char> >’:
/usr/include/c++/10/bits/stl_vector.h:87:21:   required from ‘struct
std::_Vector_base<unsigned char, gdb::default_init_allocator<unsigned char,
std::allocator<unsigned char> > >’
/usr/include/c++/10/bits/stl_vector.h:389:11:   required from ‘class
std::vector<unsigned char, gdb::default_init_allocator<unsigned char,
std::allocator<unsigned char> > >’
common-utils.cc:459:25:   required from here
../gdbsupport/default-init-alloc.h:63:12: error: ‘construct’ has not been
declared in ‘std::allocator<unsigned char>’
   63 |   using A::construct;
      |            ^~~~~~~~~


this does *not* occur when $CFLAGS / $CXXFLAGS are empty.

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

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

end of thread, other threads:[~2025-01-10  7:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-27  3:52 [Bug gdb/32503] New: gdb: 'construct' has not been declared in 'std::allocator<unsigned char> jeffrey.cliff at gmail dot com
2024-12-27 11:35 ` [Bug gdb/32503] " ssbssa at sourceware dot org
2025-01-06 16:34 ` tromey at sourceware dot org
2025-01-07  7:45 ` [Bug build/32503] " vries at gcc dot gnu.org
2025-01-07  8:55 ` vries at gcc dot gnu.org
2025-01-10  7:40 ` cvs-commit at gcc dot gnu.org
2025-01-10  7:41 ` vries at gcc dot gnu.org

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