Public bug reported: cfortran 20210827-1.1 fails to build from source in stonking.
Regressing architectures (built before, fail now): amd64. Build log(s): - https://launchpad.net/ubuntu/+source/cfortran/20210827-1.1/+build/32793393/+files/buildlog_ubuntu-stonking-amd64.cfortran_20210827-1.1_BUILDING.txt.gz Diagnosis (deterministic matcher): testsuite-failure — dh_auto_test. Root cause: GCC 15 defaults to C23, where an empty parameter list `()` means "no arguments". cfortran.h's PROTOCCALLSFFUN* macros (PROTOCCALLSFFUN2 -> VOID_cfG -> VOID_cfGZ -> CFC_, cfortran.h:1482/1494) declare Fortran routines as e.g. `easy_()` and then call them with arguments, so `make check` fails: e2/e2.c:10:28: error: too many arguments to function 'easy_'; expected 0, have 2 This is a toolchain-induced regression (20210827-1 last built with an older GCC); the source itself did not change in a relevant way. Existing reports: - Debian: https://bugs.debian.org/1114078 (serious, same error) - Debian (autopkgtest, same root cause): https://bugs.debian.org/1119857 - Upstream: https://github.com/bastien-roucaries/cfortran/issues/2 (open, no fix) - Possibly also needed afterwards: https://github.com/bastien-roucaries/cfortran/pull/3 (fstr_test coredump with -D_FORTIFY_SOURCE=3 -O2) Suggested workaround: build with -std=gnu17, e.g. export DEB_CFLAGS_MAINT_APPEND = -std=gnu17 in debian/rules. Since cfortran.h is a header consumed by reverse dependencies, a proper fix needs cfortran.h to emit full prototypes. The autopkgtest block ("arch:all not built yet") will clear once the package builds. ** Affects: cfortran (Ubuntu) Importance: Undecided Status: New ** Tags: ftbfs stonking update-excuse ** Tags added: ftbfs stonking update-excuse -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2168915 Title: cfortran 20210827-1.1 FTBFS: C23 (GCC 15) rejects K&R-style prototypes in cfortran.h To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cfortran/+bug/2168915/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
