Control: tags -1 patch
On Wed, Aug 05, 2026 at 11:23:46AM +0000, Santiago Vila wrote:
> Package: src:fs-uae
> Version: 3.2.35-2
> Severity: serious
> Tags: ftbfs forky sid
>...
> src/statusline.cpp: In function ‘void write_tdnumber(uae_u8*, int, int, int,
> int, uae_u32, uae_u32)’:
> src/statusline.cpp:70:18: error: reference to ‘numbers’ is ambiguous
> 70 | numptr = numbers + num * TD_NUM_WIDTH + NUMBERS_NUM *
> TD_NUM_WIDTH * y;
> | ^~~~~~~
> • there are 2 candidates
> In file included from /usr/include/c++/16/bits/max_size_type.h:40,
> from /usr/include/c++/16/bits/ranges_base.h:41,
> from /usr/include/c++/16/string_view:62,
> from /usr/include/c++/16/bits/basic_string.h:51,
> from /usr/include/c++/16/string:58,
> from ./src/od-fs/../include/sysdeps.h:27,
> from ./src/od-fs/defines.h:117:
> • candidate 1: ‘namespace std::numbers { }’
> /usr/include/c++/16/numbers:56:11:
> 56 | namespace numbers
> | ^~~~~~~
> • candidate 2: ‘const char* numbers’
> src/statusline.cpp:47:20:
> 47 | static const char *numbers = { /* ugly 0123456789CHD%+-P */
> | ^~~~~~~
> At global scope:
> cc1plus: note: unrecognized command-line option ‘-Wno-c++11-narrowing’ may
> have been intended to silence earlier diagnostics
> make[3]: *** [Makefile:4658: src/statusline.o] Error 1
>...
The workaround below is sufficient to fix the build with GCC 16.
cu
Adrian
--- fs-uae-3.2.35/debian/rules 2022-12-05 14:47:15.000000000 +0200
+++ fs-uae-3.2.35/debian/rules 2025-10-28 12:12:05.000000000 +0200
@@ -4,6 +4,8 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+export DEB_CXXFLAGS_MAINT_APPEND += -std=gnu++17
+
override_dh_auto_configure:
ifneq ($(filter $(DEB_HOST_ARCH), amd64 i386 kfreebsd-amd64 kfreebsd-i386
x32),)
dh_auto_configure -- --enable-jit