Bug 281239 - lang/opencoarrays: Fails to build with GCC 14: MPI_C is missing!
Summary: lang/opencoarrays: Fails to build with GCC 14: MPI_C is missing!
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Lorenzo Salvadore
URL: https://pkg-status.freebsd.org/gohan0...
Keywords:
Depends on:
Blocks: 281091
  Show dependency treegraph
 
Reported: 2024-09-03 13:45 UTC by Lorenzo Salvadore
Modified: 2024-12-23 02:42 UTC (History)
2 users (show)

See Also:
salvadore: maintainer-feedback-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lorenzo Salvadore freebsd_committer freebsd_triage 2024-09-03 13:45:40 UTC
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
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-12-22 11:37:22 UTC
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(+)
Comment 2 Lorenzo Salvadore freebsd_committer freebsd_triage 2024-12-22 11:39:20 UTC
Fixed.
Comment 3 Gerald Pfeifer freebsd_committer freebsd_triage 2024-12-23 02:42:02 UTC
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.