CVE and update status of the FreeBSD ports tree3,295 unaddressed CVEs in 670 portsAll times are CET
Port details

net/mpich 5.0.1

Portable implementation of MPI-1, MPI-2 and MPI-3

Port info

Maintainer
laurent@FreeBSD.org
Packages
latest: 5.0.1
Upstream
Higher version available: 5.0.2
Last update
to 5.0.1 · 63a7b4ce30
Quarterly
2026Q4: 5.0.1
Formerly
net/mpich2 until 2022-05-31
WWW
https://www.mpich.org/
Links
cgit · VuXML

Install

Package
# pkg install mpich
installs 5.0.1 from latest; from quarterly (2026Q4) 5.0.1
Port
# cd /usr/ports/net/mpich && make install clean
# make -C /usr/ports/net/mpich config  # change options first
Size
7.6 MiB download · 44 MiB installed
Depends on
devel/hwloc2 2.12.1_1, devel/json-c 0.19_1, devel/libepoll-shim 0.0.20240608, lang/gcc14 14.2.0_7, lang/perl5.42 5.42.3, net/libfabric 1.15.1_4
License
MPICH
Options
5 of 8 on in the package: DHYDRA DOCS FORTRAN GFORKER HYDRA
Show the 3 options that are off
DGFORKER L0 SLURM

Packages by version and architecture

latest

FreeBSD versionamd64aarch64i386
FreeBSD 165.0.15.0.1–
FreeBSD 155.0.15.0.1–
FreeBSD 145.0.15.0.15.0.1

quarterly (2026Q4)

FreeBSD versionamd64aarch64i386
FreeBSD 155.0.15.0.1–
FreeBSD 145.0.15.0.15.0.1

version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.

Unaddressed and VuXML only (0)

No unaddressed CVE and nothing reported by pkg audit for the packaged version 5.0.1.

Fixed (0)

No VuXML entries for this package.

Problem reports (1) · open in Bugzilla, most recently changed first

PRSummaryStatusChanged
298053maintainer-feedback+ net/mpich: Install under mpi/mpich to avoid MPI library namespace collisionsIn Progress2026-08-30

Commits (239)

Thierry Thomas (thierry) · 1.5_15,5 · as net/mpich2
- clean the CONFLICTS line;

- no more ports in the tree depend on MPICH 2: mark it deprecated, and advise
  to switch to MPICH 3.
b7c0994f24
Tobias Kortkamp (tobik) · 1.5_15,5 · as net/mpich2
net/mpich2: Unbreak build with GCC 10

checking whether gfortran10 allows mismatched arguments... no
configure: error: The Fortran compiler gfortran10 will not compile files that call
the same routine with arguments of different types.

http://package18.nyi.freebsd.org/data/121amd64-default-PR244494/2020-06-10_18h04m44s/logs/errors/mpich2-1.5_14,5.log

PR:		246700
09acace680
Tobias Kortkamp (tobik) · 3.2.1_6
net/mpich: Unbreak build with GCC 10

checking whether gfortran10 allows mismatched arguments... no
configure: error: The Fortran compiler gfortran10 will not compile files that call
the same routine with arguments of different types.

http://package18.nyi.freebsd.org/data/121amd64-default-PR244494/2020-06-10_18h04m44s/logs/errors/mpich-3.2.1_6.log

PR:		246700
ff622bd3f1
Thierry Thomas (thierry) · 1.5_15,5 · as net/mpich2
Remove the Python 2.7 modules, so that we can keep this port untill all consumers have switched to a newer MPI provider.
bea9aca79f
Thierry Thomas (thierry) · 3.2.1_6
Mpich installs some Perl scripts, e.g. parkill. If Perl is not found during the build, their shebang is: #!
6eeffcc4a6
Jung-uk Kim (jkim) · 1.5_14,5 · as net/mpich2
Clean up after java/openjdk6 and java/openjdk6-jre removal

java/openjdk6 support was removed from Mk/bsd.java.mk (r512662) and
java/openjdk6 and java/openjdk6-jre were removed from the ports tree
(r512663).  Now this patch completely removes remaining stuff from the
ports tree.

PR:			241953 (exp-run)
Reviewed by:		glewis
Approved by:		portmgr (antoine)
Differential Revision:	https://reviews.freebsd.org/D22342
5a52a08234
Niclas Zeising (zeising) · 1.5_14,5 · as net/mpich2
Add USES=xorg USES=gl, ports categories n

Add USES=xorg and USES=gl to ports in categories starting with 'n'.
While here, try to sprinkle other USES (mostly gnome and sdl) as needed.
897ad0b36e
Bryan Drewery (bdrewery) · 1.5_14,5 · as net/mpich2
- Add compat for NOCCACHE -> NO_CCACHE
bc8870a852
Mathieu Arnold (mat) · 1.5_14,5 · as net/mpich2
Convert to UCL & cleanup pkg-message (categories n)

(and missed 3 missed files from previous categories.)
2614c95748
Gerald Pfeifer (gerald) · 3.2.1_5
Bump PORTREVISION for ports depending on the canonical version of GCC as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3 to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
ea8c8ec7da
Gerald Pfeifer (gerald) · 3.2.1_4
Related to revision 499061 bump ports with USES=fortran to have them benefit from the improved situation where libgcc_s is only used when absolutely necessary.

Suggested by:	tijl
879e75a659
Sunpoet Po-Chuan Hsieh (sunpoet) · 3.2.1_3
Update MASTER_SITES and WWW
d6751bb9b7
Yuri Victorovich (yuri) · 3.2.1_3
net/mpich: Remove the compiler version check

It fails on science/meep for no obvious reason, and would otherwise prevent meep from being upgraded mpich2->mpich.
7b25ef278f
Gerald Pfeifer (gerald) · 3.2.1_2
Bump PORTREVISION for ports depending on the canonical version of GCC defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t GCC 8.2 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.

PR:		231590
a9f015d155
Mark Linimon (linimon) · 3.2.1_1
Add USES=compiler:c11 to fix build on gcc-based archs.

PR:		233307
Submitted by:	Piotr Kubaj
aaee35a7b2
Gerald Pfeifer (gerald) · 3.2.1_1
Bump PORTREVISION for ports depending on the canonical version of GCC in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which has now moved from GCC 6 to GCC 7 by default.

This includes ports
 - featuring USE_GCC=yes or USE_GCC=any,
 - featuring USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and those
 - with USES=compiler specifying one of openmp, nestedfct, c11, c++0x,
   c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib.

PR:		222542
09f9633cb6
Yuri Victorovich (yuri) · 1.5_10,5 · as net/mpich2
net/mpich2: Unbreak build by setting BASH_SHELL environment variable

Without it it was failing for me with wrong bash interpreter path in all executables (ex. mpicxx).
Not sure why central builds weren't failing, but configrure expects BASH_SHELL to be set.

Also order USExx section.

Approved by:	portmgr
892d4a6b0e
Tijl Coosemans (tijl) · 3.2.1
Update to 3.2.1 and drop maintainership.
e48705d66d
Thierry Thomas (thierry) · 1.5_10,5 · as net/mpich2
Fix an incorrect plist when the option X11 is deselected.

PR:		228155
Submitted by:	doralitze (at) chaotikum.org
f245e72b18
Gerald Pfeifer (gerald) · 3.2_6
Bump PORTREVISIONs of all users of math/mpc that we just updated to version 1.1.0 (via revision 464079).
c2a92a1aea
Mathieu Arnold (mat) · 1.5_8,5 · as net/mpich2
Remove a few text occurrences of NOPORTDOCS.

Sponsored by:	Absolight
afb43abb77
Antoine Brodin (antoine) · 1.5_8,5 · as net/mpich2
- Those ports fail to build with python3 - Add some explicit FLAVOR to dependencies where needed
a021c1b8c0
Mathieu Arnold (mat) · 1.5_8,5 · as net/mpich2
Cleanup after removal of libexecinfo from ports.

PR:		220271
Submitted by:	mat (review), Yasuhiro KIMURA (PR)
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D11488
cb9a2b582c
Mathieu Arnold (mat) · 1.5_8,5 · as net/mpich2
Remove USES=execinfo.

PR:		220271
Submitted by:	mat (review), Yasuhiro KIMURA (PR)
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D11488
3fcd0e41de
Gerald Pfeifer (gerald) · 3.2_5
Bump PORTREVISION for ports depending on the canonical version of GCC (via Mk/bsd.default-versions.mk and lang/gcc) which has moved from GCC 5.4 to GCC 6.4 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++11-lang,
   c++14-lang, c++0x, c11, or gcc-c++11-lib.

PR:		219275
e59c88cece
Mark Linimon (linimon) · 1.5_6,5 · as net/mpich2
It is possible that r441426 will fix the build problem on armv6.  Give it a try.

Approved by:	portmgr (tier-2 blanket)
e1fcc1b597
Mark Linimon (linimon) · 1.5_6,5 · as net/mpich2
Mark some ports failing on various tier-2 archs.  In cases where the error message was a stub, provide a real one.

While here, pet portlint.

This is a catchup commit from various earlier commits.

Approved by:	portmgr (tier-2 blanket)
a401704344
Gerald Pfeifer (gerald) · 3.2_4
Bump PORTREVISIONs for ports depending on the canonical version of GCC and lang/gcc which have moved from GCC 4.9.4 to GCC 5.4 (at least under some circumstances such as versions of FreeBSD or platforms).

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using using Mk/bsd.octave.mk which in turn has USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++14-lang,
   c++11-lang, c++0x, c11, or gcc-c++11-lib.

PR:		216707
04d6f52202
Gerald Pfeifer (gerald) · 3.2_3
Bump PORTREVISIONS for ports depending on the canonical version of GCC and lang/gcc which have moved from GCC 4.8.5 to GCC 4.9.4 (at least under some circumstances such as versions of FreeBSD or platforms), part II.

The first part covered  ports with USE_GCC=yes, USE_GCC=any, or one of
gcc-c++11-lib, openmp, nestedfct, c++11-lib as well as c++14-lang,
c++11-lang, c++0x, c11 requested via USES=compiler.

This adds ports with USES=fortran and ports using Mk/bsd.octave.mk
which in turn has USES=fortran.

PR:		214965
Reported by:	thierry
e4b7b9118a
Tijl Coosemans (tijl) · 3.2_2
Add patch to apply alignment attribute to a struct instead of a typedef. This rounds the size of the struct to a multiple of the alignment such that malloc and friends allocate memory with the correct alignment.

PR:		214784
MFH:		2016Q4
0ed1aea7c1
Gerald Pfeifer (gerald) · 1.5_4,5 · as net/mpich2
Bump PORTREVISIONS for ports depending on the canonical version of GCC and lang/gcc which have moved from GCC 4.8.5 to GCC 4.9.4 (at least under some circumstances such as versions of FreeBSD or platforms).

In particular that is ports with USE_GCC=yes, USE_GCC=any, or one of
gcc-c++11-lib, openmp, nestedfct, c++11-lib as well as c++14-lang,
c++11-lang, c++0x, c11 requested via USES=compiler.
89f8b05214
Mathieu Arnold (mat) · 3.2_1
Remove ${PORTSDIR}/ from dependencies, categories m, n, o, and p.

With hat:	portmgr
Sponsored by:	Absolight
8d6597e0bb
Thierry Thomas (thierry) · 1.5_3,5 · as net/mpich2
Remove MAKE_JOBS_UNSAFE: according to mpich2 wiki FAQ, this issue was fixed since v1.5a1.

PR:		ports/207691
Submitted by:	jiashiun (at) gmail.com
cb2a6bc62c
Tijl Coosemans (tijl) · 3.2_1
The configure variable MPICH_LDFLAGS is no longer supported.  There is a separate variable for each compiler wrapper now.

PR:		206655
44332a3abb
Thierry Thomas (thierry) · 1.5_3,5 · as net/mpich2
USES=execinfo localbase switch.

PR:		ports/205388
Submitted by:	pawel
2833b42e4d
Tijl Coosemans (tijl) · 3.2
Update to MPICH 3.2
00433e8f6d
Tijl Coosemans (tijl) · 1.5_3,5 · as net/mpich2
By default libtool replaces -export-symbols <file> with -retain-symbols-file <file> on ELF systems, but this doesn't really do what -export-symbols is meant to do.  On GNU ELF systems it converts <file> to a simple version script first and then uses -version-script instead of -retain-symbols-file. Let USES=libtool patch libtool scripts to do this on all systems with GNU ld(1).

Bump PORTREVISION on all ports where the build log contains -export-symbols.

audio/calf: This port builds a module that now exports only one function,
but it also builds a number of executables that link to this module and
expect to see other functions.  Because it's already a bit dodgy to link to
a module (libtool warns about this) let the module continue to export only
one function and instead build an ordinary library from the same source that
the executables can link to.  Fix a number of other issues in the same
Makefile.am and clean up the port Makefile.

japanese/scim-honoka: Tries to hide all symbols that start with an
underscore, but because this library is written in C++ all symbols start
with _Z so it ends up hiding everything.  Just don't hide anything at all
like the textproc/scim configure script does.

multimedia/schroedinger: Apply an upstream patch.

textproc/scim-input-pad: Same as japanese/scim-honoka.

PR:		201922
Approved by:	portmgr (antoine)
Exp-run by:	antoine
a374acb969
Tijl Coosemans (tijl) · 3.1.4_1
- Enable FORTRAN and GFORKER options by default due to popular request - Add option group descriptions
a6c9f76b6d
John Marino (marino) · 1.5_2,5 · as net/mpich2
net category: Remove $PTHREAD_LIBS

openafs did not pass check-plist (pre-existing) so fixed and bumped.
Also, pkg-plist was sorted.  mediatomb and spread also fail plist-checks
but they weren't fixed.

approved by:	PTHREAD blanket
b90f611b9c
Tijl Coosemans (tijl) · 3.1.4
- Update to MPICH 3.1.4 - Pass *FLAGS variables to configure via MPICHLIB_*FLAGS because otherwise   they are hardcoded into mpicc [1]

PR:		197563 [1]
fd4dc6bd44
Antoine Brodin (antoine) · 1.5_2,5 · as net/mpich2
Remove explicit dependency on javavmwrapper for ports that USE_JAVA
4f4e8c52c6
Tijl Coosemans (tijl) · 3.1.3
Update to MPICH 3.1.3

From the announcement:
This release adds several enhancements to Portals4 support, PAMI, RMA, and
ROMIO.  It also contains a large number of bug fixes.
b1d4e52f9a
John Marino (marino) · 1.5_2,5 · as net/mpich2
net/mpich2: Fix typo in MPI_CFLAGS (from previous commit)
a70f4ebca7
John Marino (marino) · 1.5_2,5 · as net/mpich2
net/mpich2: fix pkg-plist when JAVA option disabled, but while here...

When the default JAVA option is turned off, the check-plist fails due
to four files that don't get installed, so prefix them with %%JAVA%%

While here:
 * Fixing stage-qa with INSTALL_TARGET=install-strip
 * Manually strip JAVA option library libTraceInput.so as needed
 * Remove obsolete @dirrm
 * Add CFLAGS related to using ports execinfo to find the execinfo.h
   (ports GCC seem to look in /usr/local/include by default, but DF's
    base compiler does not, so explicitly specify this location)

All of these should be covered under the "Just Fix It" blanket
629b964108
Gerald Pfeifer (gerald) · 1.5_1,5 · as net/mpich2
Update the default version of GCC in the Ports Collection from GCC 4.7.4 to GCC 4.8.3.

Part II, Bump PORTREVISIONs.

PR:		192025
Tested by:	antoine (-exp runs)
Approved by:	portmgr (implicit)
15945f8122
Thierry Thomas (thierry) · 1.5,5 · as net/mpich2
- Upgrade to 1.5;

- Bump PORTREVISION for consumers.
78e2b56a8a
Thierry Thomas (thierry) · 1.4.1.p1,5 · as net/mpich2
Upgrade to 1.4.1p1.
ea5b6d0251
Thierry Thomas (thierry) · 1.3.2.p1_4,5 · as net/mpich2
- Take maintainership back;

- Stagify and modernize.
201ca05132
Tijl Coosemans (tijl) · 3.1.2
Update to MPICH 3.1.2

From the announcement:
This release contains significant enhancements to the BG/Q device,
especially for RMA and shared memory functionality.  It also contains
enhancements to ROMIO and upgrades hwloc to 1.9.  In addition, it updates
its weak alias support to align with gcc-4.x, has a better implementation
of MPI_Allreduce for intercommunicator, adds more F08 test cases and fixes
several bugs present in 3.1.1.
1e9581ff9a