Bug#1144506: gcc-16: Missing C++ headers causes subversion to FTBFS on x32

John Paul Adrian Glaubitz <[email protected]>
Newsgroups gmane.linux.debian.ports.amd64
Message-ID <178687242788.3213799.2633510465226148462.reportbug__29404.5852309623$1786872570$gmane$org@login1.physik.fu-berlin.de>
Source: gcc-16
Version: 16.2.0-1
Severity: normal
Tags: ftbfs
X-Debbugs-Cc: [email protected]
User: [email protected]
Usertags: x32

Hi,

subversion currently FTBFS with gcc-16 on x32 because the compiler can't find <iostream>:

libtool: compile:  x86_64-linux-gnux32-gcc -fPIC -DSVN_SQLITE_MIN_VERSION_NUMBER=3008007 -DSVN_SQLITE_MIN_VERSION=\"3.8.7\" \
-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/subversion-1.14.5=. \
-fstack-protector-strong -Wformat -Werror=format-security -fcf-protection -std=gnu17 -D_LARGEFILE_SOURCE \
-D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -DLINUX -D_REENTRANT -D_GNU_SOURCE -DQT_DBUS_LIB -DQT_GUI_LIB \
-DQT_CORE_LIB -I/build/reproducible-path/subversion-1.14.5/BUILD/subversion \
-I/build/reproducible-path/subversion-1.14.5/BUILD/../subversion/include \
-I/build/reproducible-path/subversion-1.14.5/BUILD/../subversion/bindings/swig \
-I/build/reproducible-path/subversion-1.14.5/BUILD/../subversion/bindings/swig/include \
-I/build/reproducible-path/subversion-1.14.5/BUILD/../subversion/bindings/swig/proxy \
-I/build/reproducible-path/subversion-1.14.5/BUILD/subversion/bindings/swig/proxy \
-I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include -I/usr/include/python3.13 -I/usr/include/python3.13 \
-I/build/reproducible-path/subversion-1.14.5/BUILD/../subversion/bindings/swig/python/libsvn_swig_py \
-c subversion/bindings/swig/python/svn_client.c  -fPIC -DPIC -o subversion/bindings/swig/python/.libs/svn_client.o
subversion/bindings/swig/python/svn_client.c:3445:10: fatal error: iostream: No such file or directory
 3445 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.

Switching the default compiler back to gcc-15 fixes the problem, so it's a regression with gcc-16.

Adrian

> [1] https://buildd.debian.org/status/fetch.php?pkg=subversion&arch=x32&ver=1.14.5-6%2Bb1&stamp=1786692259&raw=0

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.