[Pkg-electronics-devel] Bug#1133486: gcc-xtensa: ftbfs with GCC-16

Emanuele Rocca ema at debian.org
Mon Apr 13 14:04:05 BST 2026


Package: src:gcc-xtensa
Version: 14
Severity: important
Tags: sid forky ftbfs
User: debian-gcc at 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.build.xz

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

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

  apt-get -t=experimental install g++ 

Common build failures include unused (but set) variables, array subscripts
partly outside array bounds, and new/dropped symbols in Debian symbols files.
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 package
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-errors-during-build.patch
Applying patch ../../debian/local-patches/0002-Ignore-document-errors-during-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 && /build/reproducible-path/gcc-xtensa-14/source/gcc-lx106/configure 	--enable-languages=c,c++,d,lto --prefix=/usr/lib --infodir=/usr/share/doc/gcc-xtensa-lx106/info --mandir=/usr/share/man --htmldir=/usr/share/doc/gcc-xtensa-lx106/html --pdfdir=/usr/share/doc/gcc-xtensa-lx106/pdf --bindir=/usr/bin --libexecdir=/usr/lib --libdir=/usr/lib --with-system-zlib --enable-multilib --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libphobos --disable-libquadmath --disable-libquadmath-support --disable-libssp --disable-libstdcxx-pch --disable-libstdc++-v3 --disable-nls --disable-shared --disable-threads --disable-tls --enable-lto --enable-target-optspace --disable-__cxa_atexit --without-long-double-128 --disable-multilib --enable-cxx-flags=-fno-exceptions --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=xtensa-lx106-elf --with-gnu-as --with-gnu-ld --with-headers=no --without-newlib "--with-pkgversion=13.4.0-7+14" --without-included-gettext SED=/bin/sed SHELL=/bin/sh BASH=/bin/bash CONFIG_SHELL=/bin/bash ASFLAGS="" ASFLAGS_FOR_BUILD="" CFLAGS="-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gcc-xtensa-14=. -fstack-protector-strong -fstack-clash-protection -mbranch-protection=standard" CFLAGS_FOR_BUILD="-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gcc-xtensa-14=. -fstack-protector-strong -fstack-clash-protection -mbranch-protection=standard" CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" CPPFLAGS_FOR_BUILD="-Wdate-time -D_FORTIFY_SOURCE=2" CXXFLAGS="-g -O2 -ffile-prefix-map=/build/reproducible-path/gcc-xtensa-14=. -fstack-protector-strong -fstack-clash-protection -mbranch-protection=standard" CXXFLAGS_FOR_BUILD="-g -O2 -ffile-prefix-map=/build/reproducible-path/gcc-xtensa-14=. -fstack-protector-strong -fstack-clash-protection -mbranch-protection=standard" DFLAGS="-frelease" DFLAGS_FOR_BUILD="-frelease" FCFLAGS="-g -O2 -ffile-prefix-map=/build/reproducible-path/gcc-xtensa-14=. -fstack-protector-strong -fstack-clash-protection -mbranch-protection=standard" FCFLAGS_FOR_BUILD="-g -O2 -ffile-prefix-map=/build/reproducible-path/gcc-xtensa-14=. -fstack-protector-strong -fstack-clash-protection -mbranch-protection=standard" FFLAGS="-g -O2 -ffile-prefix-map=/build/reproducible-path/gcc-xtensa-14=. -fstack-protector-strong -fstack-clash-protection -mbranch-protection=standard" FFLAGS_FOR_BUILD="-g -O2 -ffile-prefix-map=/build/reproducible-path/gcc-xtensa-14=. -fstack-protector-strong -fstack-clash-protection -mbranch-protection=standard" LDFLAGS="-Wl,-z,relro -Wl,-z,now" LDFLAGS_FOR_BUILD="-Wl,-z,relro -Wl,-z,now" OBJCFLAGS="-g -O2 -ffile-prefix-map=/build/reproducible-path/gcc-xtensa-14=. -fstack-protector-strong -fstack-clash-protection -mbranch-protection=standard" OBJCFLAGS_FOR_BUILD="-g -O2 -ffile-prefix-map=/build/reproducible-path/gcc-xtensa-14=. -fstack-protector-strong -fstack-clash-protection -mbranch-protection=standard" OBJCXXFLAGS="-g -O2 -ffile-prefix-map=/build/reproducible-path/gcc-xtensa-14=. -fstack-protector-strong -fstack-clash-protection -mbranch-protection=standard" OBJCXXFLAGS_FOR_BUILD="-g -O2 -ffile-prefix-map=/build/reproducible-path/gcc-xtensa-14=. -fstack-protector-strong -fstack-clash-protection -mbranch-protection=standard"  INHIBIT_LIBC_CFLAGS="-DUSE_TM_CLONE_REGISTRY=0" AR_FOR_TARGET=-ar AS_FOR_TARGET=-as LD_FOR_TARGET=-ld NM_FOR_TARGET=-nm OBJDUMP_FOR_TARGET=-objdump RANLIB_FOR_TARGET=-ranlib READELF_FOR_TARGET=-readelf STRIP_FOR_TARGET=-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... 
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=16 $$f1 $$f2
checking whether aarch64-linux-gnu-g++ supports C++11 features by default... 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]: 
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 status 2



More information about the Pkg-electronics-devel mailing list