[From nobody Mon Aug  3 09:35:07 2026
Received: (at maintonly) by bugs.debian.org; 13 Apr 2026 13:04:07 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-115.1 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
 DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,FROMDEVELOPER,FVGT_m_MULTI_ODD,
 HAS_PACKAGE,MONEY,SPF_HELO_NONE,SPF_NONE,STOCKLIKE,UNPARSEABLE_RELAY,
 USER_IN_DKIM_WELCOMELIST autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 104; hammy, 150; neutral, 286; spammy,
 0. spammytokens:
 hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
 0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
 0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: &lt;ema@debian.org&gt;
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:40640)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;ema@debian.org&gt;) id 1wCGxT-002l2Z-16
 for maintonly@bugs.debian.org; Mon, 13 Apr 2026 13:04:07 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.stravinsky;
 h=X-Debian-User:Content-Transfer-Encoding:Content-Type
 :MIME-Version:Message-ID:Subject:To:From:Date:Reply-To:Cc:Content-ID:
 Content-Description:In-Reply-To:References;
 bh=4+nHgzIHdQCbF+cERzrNY2jnXzIA32ZYILvVeb4DHaw=; b=SmINyw7CZmDRc93NcOI+41fuEo
 jOutzYRlLBJDiRwipJ95lL7ZoAZyEVWQvtZimijJtmFXG9sfcqnShjbBpoQ0qDdcodnm+8zH9cQ7d
 +dpXr6K56ecjRgvOjSNFrNYMn1ZHRmxqTLTkivFA3TaYbkHbiY1BIl4o2Uc+/66JT6qn4QGJJN7Lf
 FP6CRPT78YISXshd96mBFbg834l1Z2V322l5PAMy9Iyq3FfTeOPfZXLbQscz+iWhakvMsVpiAThVp
 XS5zb/+KCt+IeeafMiTGwftws87F2O//Zg1UDUyPctzotN3W4dVI9PMuuUO3ZZEOfrl8TE9nfYL2C
 2yaKXT7w==;
Received: from authenticated user by stravinsky.debian.org with esmtpsa
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;ema@debian.org&gt;) id 1wCGxR-00CJM9-2e
 for maintonly@bugs.debian.org; Mon, 13 Apr 2026 13:04:06 +0000
Date: Mon, 13 Apr 2026 15:04:05 +0200
From: Emanuele Rocca &lt;ema@debian.org&gt;
To: maintonly@bugs.debian.org
Subject: gcc-xtensa: ftbfs with GCC-16
Message-ID: &lt;adzpxT439yvlKc3y@ariel.home&gt;
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
X-Debian-User: ema
Delivered-To: maintonly@bugs.debian.org

Package: src:gcc-xtensa
Version: 14
Severity: important
Tags: sid forky ftbfs
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-16

Hi,

gcc-xtensa fails to build in a test rebuild on at least amd64 and arm64 with
gcc-16/g++-16, but builds properly with gcc-15/g++-15. The severity of this
report will be raised before the forky release.

The full build log can be found at:
https://people.debian.org/~ema/gcc-16-rebuilds/output-1/gcc-xtensa_arm64.bu=
ild.xz

The last lines of the build log are at the end of this report.

To build with GCC 16, either set CC=3Dgcc-16 CXX=3Dg++-16 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=3Dexperimental install g++=20

Common build failures include unused (but set) variables, array subscripts
partly outside array bounds, and new/dropped symbols in Debian symbols file=
s.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-16/porting_to.html

Please only close this issue after double-checking that the package can be
built correctly with GCC 16.

Please do not reassign this bug to another package. If a fix in another pac=
kage
is required, then file a bug for the other package (or clone), and mark this
bug as blocked by the bug in the other package.

[...]


Hunk #1 succeeded at 858 (offset 298 lines).
Hunk #2 succeeded at 897 (offset 298 lines).
Hunk #3 succeeded at 1179 (offset 333 lines).
Hunk #4 succeeded at 1189 (offset 333 lines).
Hunk #5 succeeded at 1209 (offset 333 lines).
Hunk #6 succeeded at 1218 (offset 333 lines).
patching file gcc/config/xtensa/xtensa.opt
Hunk #1 succeeded at 54 (offset 8 lines).
+ echo Applying patch ../../debian/local-patches/0002-Ignore-document-error=
s-during-build.patch
Applying patch ../../debian/local-patches/0002-Ignore-document-errors-durin=
g-build.patch
+ patch -p1
patching file gcc/genhooks.cc
+ echo Applying patch ../../debian/local-patches/0003-Fixup-stdlib.patch
Applying patch ../../debian/local-patches/0003-Fixup-stdlib.patch
+ patch -p1
patching file gcc/config/xtensa/elf.h
Hunk #1 succeeded at 52 with fuzz 1 (offset 2 lines).
cp -al source/src source/gcc-lx106
cp debian/overlay/lx106/include/xtensa-config.h source/gcc-lx106/include/
install -d build/gcc-lx106
cd build/gcc-lx106 &amp;&amp; /build/reproducible-path/gcc-xtensa-14/source/gcc-lx1=
06/configure 	--enable-languages=3Dc,c++,d,lto --prefix=3D/usr/lib --infodi=
r=3D/usr/share/doc/gcc-xtensa-lx106/info --mandir=3D/usr/share/man --htmldi=
r=3D/usr/share/doc/gcc-xtensa-lx106/html --pdfdir=3D/usr/share/doc/gcc-xten=
sa-lx106/pdf --bindir=3D/usr/bin --libexecdir=3D/usr/lib --libdir=3D/usr/li=
b --with-system-zlib --enable-multilib --disable-decimal-float --disable-li=
bffi --disable-libgomp --disable-libmudflap --disable-libphobos --disable-l=
ibquadmath --disable-libquadmath-support --disable-libssp --disable-libstdc=
xx-pch --disable-libstdc++-v3 --disable-nls --disable-shared --disable-thre=
ads --disable-tls --enable-lto --enable-target-optspace --disable-__cxa_ate=
xit --without-long-double-128 --disable-multilib --enable-cxx-flags=3D-fno-=
exceptions --build=3Daarch64-linux-gnu --host=3Daarch64-linux-gnu --target=
=3Dxtensa-lx106-elf --with-gnu-as --with-gnu-ld --with-headers=3Dno --witho=
ut-newlib &quot;--with-pkgversion=3D13.4.0-7+14&quot; --without-included-gettext SED=
=3D/bin/sed SHELL=3D/bin/sh BASH=3D/bin/bash CONFIG_SHELL=3D/bin/bash ASFLA=
GS=3D&quot;&quot; ASFLAGS_FOR_BUILD=3D&quot;&quot; CFLAGS=3D&quot;-g -O2 -Werror=3Dimplicit-function=
-declaration -ffile-prefix-map=3D/build/reproducible-path/gcc-xtensa-14=3D.=
 -fstack-protector-strong -fstack-clash-protection -mbranch-protection=3Dst=
andard&quot; CFLAGS_FOR_BUILD=3D&quot;-g -O2 -Werror=3Dimplicit-function-declaration =
-ffile-prefix-map=3D/build/reproducible-path/gcc-xtensa-14=3D. -fstack-prot=
ector-strong -fstack-clash-protection -mbranch-protection=3Dstandard&quot; CPPFL=
AGS=3D&quot;-Wdate-time -D_FORTIFY_SOURCE=3D2&quot; CPPFLAGS_FOR_BUILD=3D&quot;-Wdate-time=
 -D_FORTIFY_SOURCE=3D2&quot; CXXFLAGS=3D&quot;-g -O2 -ffile-prefix-map=3D/build/repro=
ducible-path/gcc-xtensa-14=3D. -fstack-protector-strong -fstack-clash-prote=
ction -mbranch-protection=3Dstandard&quot; CXXFLAGS_FOR_BUILD=3D&quot;-g -O2 -ffile-p=
refix-map=3D/build/reproducible-path/gcc-xtensa-14=3D. -fstack-protector-st=
rong -fstack-clash-protection -mbranch-protection=3Dstandard&quot; DFLAGS=3D&quot;-fr=
elease&quot; DFLAGS_FOR_BUILD=3D&quot;-frelease&quot; FCFLAGS=3D&quot;-g -O2 -ffile-prefix-map=
=3D/build/reproducible-path/gcc-xtensa-14=3D. -fstack-protector-strong -fst=
ack-clash-protection -mbranch-protection=3Dstandard&quot; FCFLAGS_FOR_BUILD=3D&quot;-=
g -O2 -ffile-prefix-map=3D/build/reproducible-path/gcc-xtensa-14=3D. -fstac=
k-protector-strong -fstack-clash-protection -mbranch-protection=3Dstandard&quot;=
 FFLAGS=3D&quot;-g -O2 -ffile-prefix-map=3D/build/reproducible-path/gcc-xtensa-1=
4=3D. -fstack-protector-strong -fstack-clash-protection -mbranch-protection=
=3Dstandard&quot; FFLAGS_FOR_BUILD=3D&quot;-g -O2 -ffile-prefix-map=3D/build/reproduc=
ible-path/gcc-xtensa-14=3D. -fstack-protector-strong -fstack-clash-protecti=
on -mbranch-protection=3Dstandard&quot; LDFLAGS=3D&quot;-Wl,-z,relro -Wl,-z,now&quot; LDFL=
AGS_FOR_BUILD=3D&quot;-Wl,-z,relro -Wl,-z,now&quot; OBJCFLAGS=3D&quot;-g -O2 -ffile-prefix=
-map=3D/build/reproducible-path/gcc-xtensa-14=3D. -fstack-protector-strong =
-fstack-clash-protection -mbranch-protection=3Dstandard&quot; OBJCFLAGS_FOR_BUIL=
D=3D&quot;-g -O2 -ffile-prefix-map=3D/build/reproducible-path/gcc-xtensa-14=3D. =
-fstack-protector-strong -fstack-clash-protection -mbranch-protection=3Dsta=
ndard&quot; OBJCXXFLAGS=3D&quot;-g -O2 -ffile-prefix-map=3D/build/reproducible-path/g=
cc-xtensa-14=3D. -fstack-protector-strong -fstack-clash-protection -mbranch=
-protection=3Dstandard&quot; OBJCXXFLAGS_FOR_BUILD=3D&quot;-g -O2 -ffile-prefix-map=
=3D/build/reproducible-path/gcc-xtensa-14=3D. -fstack-protector-strong -fst=
ack-clash-protection -mbranch-protection=3Dstandard&quot;  INHIBIT_LIBC_CFLAGS=
=3D&quot;-DUSE_TM_CLONE_REGISTRY=3D0&quot; AR_FOR_TARGET=3D-ar AS_FOR_TARGET=3D-as LD=
_FOR_TARGET=3D-ld NM_FOR_TARGET=3D-nm OBJDUMP_FOR_TARGET=3D-objdump RANLIB_=
FOR_TARGET=3D-ranlib READELF_FOR_TARGET=3D-readelf STRIP_FOR_TARGET=3D-strip
checking build system type... aarch64-unknown-linux-gnu
checking host system type... aarch64-unknown-linux-gnu
checking target system type... xtensa-lx106-elf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for libatomic support... no
checking for libitm support... no
checking for libsanitizer support... no
checking for libvtv support... no
checking for aarch64-linux-gnu-gcc... aarch64-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...=20
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether aarch64-linux-gnu-gcc accepts -g... yes
checking for aarch64-linux-gnu-gcc option to accept ISO C89... none needed
checking for aarch64-linux-gnu-gcc option to accept ISO C99... none needed
checking for aarch64-linux-gnu-g++... aarch64-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether aarch64-linux-gnu-g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... yes
checking for aarch64-linux-gnu-gnatbind... no
checking for gnatbind... no
checking for aarch64-linux-gnu-gnatmake... no
checking for gnatmake... no
checking whether compiler driver understands Ada and is recent enough... no
checking for aarch64-linux-gnu-gdc... no
checking for gdc... no
checking whether the D compiler works... no
checking how to compare bootstrapped objects... cmp --ignore-initial=3D16 $=
$f1 $$f2
checking whether aarch64-linux-gnu-g++ supports C++11 features by default..=
=2E yes
checking for objdir... .libs
checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... yes
checking for the correct version of mpc.h... yes
checking for the correct version of the gmp/mpfr libraries... yes
checking for the correct version of the mpc libraries... yes
checking for isl 0.15 or later... yes
configure: error: GDC is required to build d
make[1]: *** [debian/rules:114: configure-lx106] Error 1
rm source/gcc-lx106make[1]:=20
unlink: source/gcc-lx106: Is a directory
make[1]: Leaving directory '/build/reproducible-path/gcc-xtensa-14'
make: *** [debian/rules:83: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit s=
tatus 2
]