Source: gdb
Version: 10.1-1
Severity: important
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)

Hello,

gdb FTBFS on the kfreebsd architecture with the following error:

x86_64-kfreebsd-gnu-g++ -x c++  -g -O2   -I. -I/<<PKGBUILDDIR>>/gdb 
-I/<<PKGBUILDDIR>>/gdb/config -DLOCALEDIR="\"/usr/share/locale\"" 
-DHAVE_CONFIG_H -I/<<PKGBUILDDIR>>/gdb/../include/opcode   -I../bfd 
-I/<<PKGBUILDDIR>>/gdb/../bfd -I/<<PKGBUILDDIR>>/gdb/../include 
-I../libdecnumber -I/<<PKGBUILDDIR>>/gdb/../libdecnumber  
-I/<<PKGBUILDDIR>>/gdb/../gnulib/import -I../gnulib/import 
-I/<<PKGBUILDDIR>>/gdb/.. -I..  -DTUI=1  -fPIC  -I/usr/include/python3.9 
-I/usr/include/python3.9   -I/<<PKGBUILDDIR>>/gdb/.. -pthread  -Wall 
-Wpointer-arith -Wno-unused -Wunused-value -Wunused-variable -Wunused-function 
-Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter 
-Wunused-but-set-variable -Wno-sign-compare -Wno-error=maybe-uninitialized 
-Wno-mismatched-tags -Wsuggest-override -Wimplicit-fallthrough=3 
-Wduplicated-cond -Wshadow=local -Wdeprecated-copy -Wdeprecated-copy-dtor 
-Wredundant-move -Wmissing-declarations -Wstrict-null-sentinel -Wformat 
-Wformat-nonliteral  -c -o fbsd-nat.o -MT fbsd-nat.o -MMD -MP -MF 
./.deps/fbsd-nat.Tpo /<<PKGBUILDDIR>>/gdb/fbsd-nat.c
/<<PKGBUILDDIR>>/gdb/fbsd-nat.c:1113:13: error: ‘forward_list’ in namespace 
‘std’ does not name a template type
 1113 | static std::forward_list<ptid_t> fbsd_pending_vfork_done;
      |             ^~~~~~~~~~~~
/<<PKGBUILDDIR>>/gdb/fbsd-nat.c:47:1: note: ‘std::forward_list’ is defined in 
header ‘<forward_list>’; did you forget to ‘#include <forward_list>’?
   46 | #include "fbsd-tdep.h"
  +++ |+#include <forward_list>
   47 |
x86_64-kfreebsd-gnu-g++ -x c++  -g -O2   -I. -I/<<PKGBUILDDIR>>/gdb 
-I/<<PKGBUILDDIR>>/gdb/config -DLOCALEDIR="\"/usr/share/locale\"" 
-DHAVE_CONFIG_H -I/<<PKGBUILDDIR>>/gdb/../include/opcode   -I../bfd 
-I/<<PKGBUILDDIR>>/gdb/../bfd -I/<<PKGBUILDDIR>>/gdb/../include 
-I../libdecnumber -I/<<PKGBUILDDIR>>/gdb/../libdecnumber  
-I/<<PKGBUILDDIR>>/gdb/../gnulib/import -I../gnulib/import 
-I/<<PKGBUILDDIR>>/gdb/.. -I..  -DTUI=1  -fPIC  -I/usr/include/python3.9 
-I/usr/include/python3.9   -I/<<PKGBUILDDIR>>/gdb/.. -pthread  -Wall 
-Wpointer-arith -Wno-unused -Wunused-value -Wunused-variable -Wunused-function 
-Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter 
-Wunused-but-set-variable -Wno-sign-compare -Wno-error=maybe-uninitialized 
-Wno-mismatched-tags -Wsuggest-override -Wimplicit-fallthrough=3 
-Wduplicated-cond -Wshadow=local -Wdeprecated-copy -Wdeprecated-copy-dtor 
-Wredundant-move -Wmissing-declarations -Wstrict-null-sentinel -Wformat 
-Wformat-nonliteral  -c -o fbsd-tdep.o -MT fbsd-tdep.o -MMD -MP -MF 
./.deps/fbsd-tdep.Tpo /<<PKGBUILDDIR>>/gdb/fbsd-tdep.c
/<<PKGBUILDDIR>>/gdb/fbsd-nat.c: In function ‘void fbsd_add_vfork_done(ptid_t)’:
/<<PKGBUILDDIR>>/gdb/fbsd-nat.c:1120:3: error: ‘fbsd_pending_vfork_done’ was 
not declared in this scope; did you mean ‘fbsd_add_vfork_done’?
 1120 |   fbsd_pending_vfork_done.push_front (pid);
      |   ^~~~~~~~~~~~~~~~~~~~~~~
      |   fbsd_add_vfork_done
/<<PKGBUILDDIR>>/gdb/fbsd-nat.c: In function ‘int 
fbsd_is_vfork_done_pending(pid_t)’:
/<<PKGBUILDDIR>>/gdb/fbsd-nat.c:1128:18: error: ‘fbsd_pending_vfork_done’ was 
not declared in this scope; did you mean ‘fbsd_add_vfork_done’?
 1128 |   for (auto it = fbsd_pending_vfork_done.begin ();
      |                  ^~~~~~~~~~~~~~~~~~~~~~~
      |                  fbsd_add_vfork_done
/<<PKGBUILDDIR>>/gdb/fbsd-nat.c: In function ‘ptid_t fbsd_next_vfork_done()’:
/<<PKGBUILDDIR>>/gdb/fbsd-nat.c:1141:8: error: ‘fbsd_pending_vfork_done’ was 
not declared in this scope; did you mean ‘fbsd_next_vfork_done’?
 1141 |   if (!fbsd_pending_vfork_done.empty ())
      |        ^~~~~~~~~~~~~~~~~~~~~~~
      |        fbsd_next_vfork_done
make[3]: *** [Makefile:1614: fbsd-nat.o] Error 1

Kind regrads,
Laurent Bigonville


-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.15.0-2-amd64 (SMP w/8 CPU threads)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_BE:fr
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: SELinux: enabled - Mode: Permissive - Policy name: refpolicy

Reply via email to