Build fails with GCC 14. This blocks GCC_DEFAULT update to GCC 14. -- Performing Test MPI_C_COMPILES -- Performing Test MPI_C_COMPILES - Failed CMake Error at CMakeLists.txt:439 (message): MPI_C is missing! Try setting MPI_C_COMPILER to the appropriate C compiler wrapper script and reconfigure. i.e., `cmake -DMPI_C_COMPILER=/path/to/mpicc ..` or set it by editing the cache using cmake-gui or ccmake. -- Configuring incomplete, errors occurred! *** Error code 1 Stop. Full log: https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-29_19h57m48s/logs/errors/opencoarrays-2.10.1_1.log Useful link: https://gcc.gnu.org/gcc-14/porting_to.html
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=a089d568abb294619157e9fe79029c8c3a4aef65 commit a089d568abb294619157e9fe79029c8c3a4aef65 Author: Lorenzo Salvadore <salvadore@FreeBSD.org> AuthorDate: 2024-12-21 10:56:48 +0000 Commit: Lorenzo Salvadore <salvadore@FreeBSD.org> CommitDate: 2024-12-22 11:35:58 +0000 lang/opencoarrays: Fix build with GCC 14 GCC 14 turns some warnings into errors. Switch them back to warnings by adding -fpermissive to CFLAGS. PR: 281239 lang/opencoarrays/Makefile | 2 ++ 1 file changed, 2 insertions(+)
Fixed.
Adding -fpermissive is a hack to force a build on software not honoring a language standard that's three decades old. IMnsHO any such change should be accompanied by deprecating the respective port, with a generous EXPIRATION_DATE of four to six months in the future.