Bug#1133475: fortran-assert: ftbfs with GCC-16
Emanuele Rocca
ema at debian.org
Mon Apr 13 14:03:34 BST 2026
Package: src:fortran-assert
Version: 3.1.0-6
Severity: important
Tags: sid forky ftbfs
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-16
Hi,
fortran-assert 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/fortran-assert_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.
[...]
Error: fc compiler gfortran-15 is broken; bad symlink?
Calling dh_fortran clean with flang-21 () {}
['fpm', 'clean', '--all', '--verbose']
fpm: No build directory found.
Calling dh_fortran clean with lfortran () {}
['fpm', 'clean', '--all', '--verbose']
fpm: No build directory found.
rm -rf debian/tmp-* debian/build-*
dh_autoreconf_clean -O--buildsystem=fortran
dh_clean -O--buildsystem=fortran
rm -f debian/debhelper-build-stamp
rm -rf debian/.debhelper/
rm -f -- debian/libfortran-assert-dev.substvars debian/libfortran-assert0.substvars debian/files
rm -fr -- debian/libfortran-assert-dev/ debian/tmp/ debian/libfortran-assert0/
find . \( \( \
\( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS -o -path .\*/.pc -o -path .\*/_darcs \) -prune -o -type f -a \
\( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
-o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
-o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
-o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
\) -exec rm -f {} + \) -o \
\( -type d -a \( -name autom4te.cache -o -name __pycache__ \) -prune -exec rm -rf {} + \) \)
debian/rules binary
dh binary --with fortran --buildsystem fortran
dh_update_autotools_config -O--buildsystem=fortran
dh_autoreconf -O--buildsystem=fortran
dh_auto_configure -O--buildsystem=fortran
dh_fortran configure
Usage: dh_fortran get_env [OPTIONS]
Try 'dh_fortran get_env --help' for help.
Error: fc compiler gfortran-15 is broken; bad symlink?
Traceback (most recent call last):
File "/usr/bin/dh_fortran", line 8, in <module>
sys.exit(dh_fortran())
~~~~~~~~~~^^
File "/usr/lib/python3/dist-packages/click/core.py", line 1161, in __call__
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/click/core.py", line 1082, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/usr/lib/python3/dist-packages/click/core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/click/core.py", line 788, in invoke
return __callback(*args, **kwargs)
File "/usr/share/dh-fortran/dhfortran/main.py", line 222, in configure
targets.configure()
~~~~~~~~~~~~~~~~~^^
File "/usr/share/dh-fortran/dhfortran/targets.py", line 44, in inner
_set_env(fc_def)
~~~~~~~~^^^^^^^^
File "/usr/share/dh-fortran/dhfortran/targets.py", line 21, in _set_env
subprocess.check_output(["dh_fortran", "get_env", "--fc", flavor])
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/subprocess.py", line 472, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
**kwargs).stdout
^^^^^^^^^
File "/usr/lib/python3.13/subprocess.py", line 577, in run
raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['dh_fortran', 'get_env', '--fc', 'gfortran-15']' returned non-zero exit status 2.
dh_auto_configure: error: dh_fortran configure returned exit code 1
make: *** [debian/rules:14: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
More information about the debian-science-maintainers
mailing list