Opened 6 months ago

Last modified 6 months ago

#68902 new defect

inconsistent use of c++ library for mpich with gcc10> — at Initial Version

Reported by: numaryu Owned by:
Priority: Normal Milestone:
Component: base Version:
Keywords: haspatch Cc:
Port:

Description

The correct stdlib option is not passed to mpi C++ (mpicxx) when the backend is gcc version greater than 10. This causes a compilation error for ports with +mpich +gcc1?, such as hdf5, netcdf, etc. The attached patches may resolve the issue, but are tested only on my environment (MacOS 12.7.1, gcc12, mpich).

And, I'd also like to point out that the descriptions of stdlib for GCC is not correct in the following documents: https://trac.macports.org/wiki/UsingTheRightCompiler https://trac.macports.org/wiki/CompilerSelection

Change History (2)

Changed 6 months ago by numaryu

Attachment: patch.mpi-1.0.tcl added

Changed 6 months ago by numaryu

Attachment: patch.portconfigure.tcl added
Note: See TracTickets for help on using tickets.