Package: src:petsc Version: 3.24.5+dfsg1-1 Severity: important Tags: sid forky ftbfs User: [email protected] Usertags: ftbfs-gcc-16
Hi, petsc 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/petsc_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. [...] TESTING: checkFortranCompiler from config.setCompilers(/build/reproducible-path/petsc-3.24.5+dfsg1/config/BuildSystem/config/setCompilers.py:1958) Locate a functional Fortran compiler Checking for program /usr/local/sbin/mpif90...not found Checking for program /usr/local/bin/mpif90...not found Checking for program /usr/sbin/mpif90...not found Checking for program /usr/bin/mpif90...found Defined make macro "FC" to "mpif90" Executing: mpif90 -c -o /tmp/petsc-zuo0ot25/config.setCompilers/conftest.o -I/tmp/petsc-zuo0ot25/config.setCompilers -g -O2 -ffile-prefix-map=/build/reproducible-path/petsc-3.24.5+dfsg1=. -fstack-protector-strong -fstack-clash-protection -mbranch-protection=standard -fPIC -ffree-line-length-0 /tmp/petsc-zuo0ot25/config.setCompilers/conftest.F90 stdout: -------------------------------------------------------------------------- The Open MPI wrapper compiler was unable to find the specified compiler gfortran-15 in your PATH. Note that this compiler was either specified at configure time or in one of several possible environment variables. -------------------------------------------------------------------------- Possible ERROR while running compiler: exit code 1 stderr: -------------------------------------------------------------------------- The Open MPI wrapper compiler was unable to find the specified compiler gfortran-15 in your PATH. Note that this compiler was either specified at configure time or in one of several possible environment variables. -------------------------------------------------------------------------- Source: program main end Error testing Fortran compiler: Cannot compile FC with mpif90. MPI compiler wrapper mpif90 failed to compile Executing: mpif90 -show stdout: gfortran-15 -I/usr/lib/aarch64-linux-gnu/openmpi/lib/../../fortran/gfortran-mod-16/openmpi -I/usr/lib/aarch64-linux-gnu/openmpi/include -L/usr/lib/aarch64-linux-gnu/openmpi/lib -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi MPI compiler wrapper mpif90 is likely incorrect. Use --with-mpi-dir to indicate an alternate MPI. Deleting "FC" ********************************************************************************************* UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details): --------------------------------------------------------------------------------------------- Fortran compiler you provided with --with-fc=mpif90 cannot be found or does not work. Cannot compile FC with mpif90. ********************************************************************************************* File "/build/reproducible-path/petsc-3.24.5+dfsg1/config/configure.py", line 461, in petsc_configure framework.configure(out = sys.stdout) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ File "/build/reproducible-path/petsc-3.24.5+dfsg1/config/BuildSystem/config/framework.py", line 1469, in configure self.processChildren() ~~~~~~~~~~~~~~~~~~~~^^ File "/build/reproducible-path/petsc-3.24.5+dfsg1/config/BuildSystem/config/framework.py", line 1457, in processChildren self.serialEvaluation(self.childGraph) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/build/reproducible-path/petsc-3.24.5+dfsg1/config/BuildSystem/config/framework.py", line 1432, in serialEvaluation child.configure() ~~~~~~~~~~~~~~~^^ File "/build/reproducible-path/petsc-3.24.5+dfsg1/config/BuildSystem/config/setCompilers.py", line 2914, in configure self.executeTest(self.checkFortranCompiler) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/build/reproducible-path/petsc-3.24.5+dfsg1/config/BuildSystem/config/base.py", line 138, in executeTest ret = test(*args,**kargs) File "/build/reproducible-path/petsc-3.24.5+dfsg1/config/BuildSystem/config/setCompilers.py", line 1965, in checkFortranCompiler for compiler in self.generateFortranCompilerGuesses(): ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/build/reproducible-path/petsc-3.24.5+dfsg1/config/BuildSystem/config/setCompilers.py", line 1895, in generateFortranCompilerGuesses raise RuntimeError('Fortran compiler you provided with --with-fc='+self.argDB['with-fc']+' cannot be found or does not work.'+'\n'+self.mesg) ================================================================================ Finishing configure run at Tue, 24 Mar 2026 14:28:04 +0000 ================================================================================ make[1]: *** [debian/rules:279: override_dh_auto_configure] Error 1 make[1]: Leaving directory '/build/reproducible-path/petsc-3.24.5+dfsg1' make: *** [debian/rules:229: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2 -- debian-science-maintainers mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers
