Opened 11 months ago

Last modified 11 months ago

#68902 new defect

inconsistent use of c++ library for mpich with gcc10>

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

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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:
UsingTheRightCompiler
CompilerSelection

Attachments (2)

patch.mpi-1.0.tcl (747 bytes) - added by numaryu 11 months ago.
patch.portconfigure.tcl (761 bytes) - added by numaryu 11 months ago.

Download all attachments as: .zip

Change History (3)

Changed 11 months ago by numaryu

Attachment: patch.mpi-1.0.tcl added

Changed 11 months ago by numaryu

Attachment: patch.portconfigure.tcl added

comment:1 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

Anyone can edit the wiki...

Note: See TracTickets for help on using tickets.