Your message dated Wed, 21 Jan 2026 04:08:34 +0000
with message-id <[email protected]>
and subject line Bug#1124547: fixed in gdb 17.1-2
has caused the Debian Bug report #1124547,
regarding gdb FTCBFS: multiple reasons
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1124547: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1124547
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: gdb
Version: 17.1-1
Tags: patch
User: [email protected]
Usertags: cross-satisfiability ftcbfs
gdb fails to cross build from source for three distinct reasons.
1. The build-dependency on gobjc is not satisfiable. It is a toolchain
dependendency and needs to specify what the compiler is being used
for. Most commonly, one targeting the host architecture is needed.
This is achieved by using gobjc-for-host.
2. The build-dependency on python3-dev is not installable. It implies a
host architecture Python interpreter. Python extensions should
depend on python3-dev:native plus libpython3-dev instead.
3. In bfd/doc, chew.c uses host compiler flags with the build compiler.
This fails badly when compiling for amd64 or arm64.
I'm attaching a patch that addresses all mentioned issues. Please
consider applying it. The part fixing chew.c should be suitable for
upstream inclusion.
Helmut
diff -Nru gdb-17.1/debian/changelog gdb-17.1/debian/changelog
--- gdb-17.1/debian/changelog 2025-12-21 21:09:18.000000000 +0100
+++ gdb-17.1/debian/changelog 2026-01-02 16:00:54.000000000 +0100
@@ -1,3 +1,13 @@
+gdb (17.1-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: (Closes: #-1)
+ + Cross-translate gobjc build dependency.
+ + Multiarchify Python build dependency.
+ + cross.patch: Use host flags for chew.c.
+
+ -- Helmut Grohne <[email protected]> Fri, 02 Jan 2026 16:00:54 +0100
+
gdb (17.1-1) unstable; urgency=medium
* d/salsa-ci.yml: Ignore debian/experimental branch.
diff -Nru gdb-17.1/debian/control gdb-17.1/debian/control
--- gdb-17.1/debian/control 2025-12-12 04:19:38.000000000 +0100
+++ gdb-17.1/debian/control 2026-01-02 16:00:54.000000000 +0100
@@ -17,7 +17,7 @@
dejagnu,
flex,
procps,
- gobjc,
+ gobjc-for-host,
mig [hurd-any],
# TeX[info] deps
texinfo (>= 4.7-2.2),
@@ -36,7 +36,8 @@
libmpfr-dev,
pkgconf,
# Python build
- python3-dev,
+ libpython3-dev,
+ python3-dev:native,
libunwind-dev [ia64],
# debuginfod
libdebuginfod-dev [linux-any],
diff -Nru gdb-17.1/debian/patches/cross.patch
gdb-17.1/debian/patches/cross.patch
--- gdb-17.1/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100
+++ gdb-17.1/debian/patches/cross.patch 2026-01-02 16:00:54.000000000 +0100
@@ -0,0 +1,26 @@
+--- gdb-17.1.orig/bfd/doc/local.mk
++++ gdb-17.1/bfd/doc/local.mk
+@@ -79,8 +79,8 @@
+
+ $(MKDOC): %D%/chew.stamp ; @true
+ %D%/chew.stamp: $(srcdir)/%D%/chew.c %D%/$(am__dirstamp)
+- $(AM_V_CCLD)$(CC_FOR_BUILD) -o %D%/chw$$$$$(EXEEXT_FOR_BUILD) $(CFLAGS)
\
+- $(WARN_CFLAGS) $(CPPFLAGS) $(LDFLAGS) \
++ $(AM_V_CCLD)$(CC_FOR_BUILD) -o %D%/chw$$$$$(EXEEXT_FOR_BUILD)
$(CFLAGS_FOR_BUILD) \
++ $(WARN_CFLAGS) $(CPPFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) \
+ -I. -I$(srcdir) -I%D% -I$(srcdir)/../include -I$(srcdir)/../intl
-I../intl \
+ $(srcdir)/%D%/chew.c && \
+ $(SHELL) $(srcdir)/../move-if-change \
+--- gdb-17.1.orig/bfd/Makefile.in
++++ gdb-17.1/bfd/Makefile.in
+@@ -2486,8 +2486,8 @@ coff-tic54x.lo: coff-tic54x.c
+
+ $(MKDOC): doc/chew.stamp ; @true
+ doc/chew.stamp: $(srcdir)/doc/chew.c doc/$(am__dirstamp)
+- $(AM_V_CCLD)$(CC_FOR_BUILD) -o doc/chw$$$$$(EXEEXT_FOR_BUILD) $(CFLAGS)
\
+- $(WARN_CFLAGS) $(CPPFLAGS) $(LDFLAGS) \
++ $(AM_V_CCLD)$(CC_FOR_BUILD) -o doc/chw$$$$$(EXEEXT_FOR_BUILD)
$(CFLAGS_FOR_BUILD) \
++ $(WARN_CFLAGS) $(CPPFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) \
+ -I. -I$(srcdir) -Idoc -I$(srcdir)/../include -I$(srcdir)/../intl
-I../intl \
+ $(srcdir)/doc/chew.c && \
+ $(SHELL) $(srcdir)/../move-if-change \
diff -Nru gdb-17.1/debian/patches/series gdb-17.1/debian/patches/series
--- gdb-17.1/debian/patches/series 2025-12-21 20:52:24.000000000 +0100
+++ gdb-17.1/debian/patches/series 2026-01-02 16:00:54.000000000 +0100
@@ -2,3 +2,4 @@
fix-blhc-libiberty.patch
fix-blhc-chew.patch
gfdl-dont-build-manpages.patch
+cross.patch
--- End Message ---
--- Begin Message ---
Source: gdb
Source-Version: 17.1-2
Done: Sergio Durigan Junior <[email protected]>
We believe that the bug you reported is fixed in the latest version of
gdb, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Sergio Durigan Junior <[email protected]> (supplier of updated gdb package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Tue, 20 Jan 2026 22:48:45 -0500
Source: gdb
Architecture: source
Version: 17.1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian GDB Team <[email protected]>
Changed-By: Sergio Durigan Junior <[email protected]>
Closes: 1124547 1126040
Changes:
gdb (17.1-2) unstable; urgency=medium
.
* d/control: Bump Standards-Version to 4.7.3; no changes needed.
.
[ Vladimir Petko ]
* - d/rules: create $(builddir_$(1))/sim/common to resolve
ftbfs (LP: 2138687) (Closes: #1126040)
.
[ Helmut Grohne ]
* Fix FTCBFS: (Closes: #1124547)
- Cross-translate gobjc build dependency.
- Multiarchify Python build dependency.
- cross.patch: Use host flags for chew.c
Checksums-Sha1:
d9c2406b25f956f76963c8d15e63c67697c7f91d 2648 gdb_17.1-2.dsc
6811cf154740db0555b639825080222a5d83fcc9 45952 gdb_17.1-2.debian.tar.xz
d1376ec01c10b615612012f099214dcb3b8a5dc1 9864 gdb_17.1-2_source.buildinfo
Checksums-Sha256:
d36e933a59539e13c8c53df28764a344fc1725353c04bc01640fbed5196804a2 2648
gdb_17.1-2.dsc
0c97f9081f6953ff45702d72be7cf7b598756a6a42369b185b3751a18a6a7255 45952
gdb_17.1-2.debian.tar.xz
766c381080f436a95137a133e0a00f5e0c9326ebdcb9b331ddc664053cc02a08 9864
gdb_17.1-2_source.buildinfo
Files:
ba5221af70391cd1dc9758841f3b20ea 2648 devel optional gdb_17.1-2.dsc
972a5d180d53a350845d6e6a16b95b82 45952 devel optional gdb_17.1-2.debian.tar.xz
4e45252872f6ddf83d7ff864bb3d10ab 9864 devel optional
gdb_17.1-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEI3pUsQKHKL8A7zH00Ot2KGX8XjYFAmlwT34ACgkQ0Ot2KGX8
Xjbj6Q/+KtDHzWbQsEPdn14OIlrTzggkPFjPHHL+F5dP+9WHCS++90uzXT8jKTXN
iVO9llp1Xvi2Y229mjsISLQ+mgGcybPeewEfRD95IqPovGqr2EFspVjkUtMqzwof
o9ZeNXjqSAs4IwTVecWOHeoSW34w2GT5LQMS6U8LikUVu/5BTRtkxUZuijeg3g5M
kx1S8ySZrytp0BO8dm5RqDBw2aEt0mxPCY9Pb2WrG+o83LIABgzzNg6nNJAG7RGR
09XwrZnqKUwwzVBbXA1RcNZkP/R6tANvJY9fbyorcNC3oJ93zaAjxNtINm3hGJ3K
PoPFPvXf+4qOc3AgIyrnKy9DrirPun2iKoyLYbyxl39OtsztlHW9l2FWY/S9PaPZ
PvqBQ57TAPRwCNY1FaWlwBpkH8UZ8JaRRUMelwQTMo51zRpxSMLsSkb/IVt7mIhY
B/wmemmrF1397x7wODekAonAjZ+BQ0xTcWsDlUPCdqpd+MLvtSeND2h83Rwma+NU
6U6VtDtI6dxo959bbtnE7Ydb+n7Z5ZVlBIZAlAYco53Q80se/OR301fUK+mPc6zF
W6ifuBidJwhgmW0+hXRm4xd5OOWS6g/9QVKsW1lCDxhREmAPSsln6sdI+tSjzDtB
Nyk1vY4UveMYSMdPMATz9xfpqLzwaVZXpyTRrE/RtSL4SBKBjf0=
=42CN
-----END PGP SIGNATURE-----
pgpSR7uZYHboy.pgp
Description: PGP signature
--- End Message ---