CVE and update status of the FreeBSD ports tree3,864 unaddressed CVEs in 671 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)

Laurent Chardon (laurent) · 5.0.1
net/mpich: Update to 5.0.1

Changes: https://www.mpich.org/2026/04/10/mpich-5-0-1-released/

Fix Process Manager logic
Fix PLIST_SUB logic
Fix Makefile format with portfmt

Reviewed by:	thierry (mentor)
Approved by:	thierry (mentor)
Differential Revision:	https://reviews.freebsd.org/D56358
63a7b4ce30
Laurent Chardon (laurent) · 5.0.0
ports: Update email address for multiple ports

Update maintainer email address to laurent@FreeBSD.org for:

deskutils/cairo-dock
deskutils/cairo-dock-plugins
devel/distcc
devel/z80-asm
emulators/hatari
math/openlibm
misc/img2xterm
net/mpich
net/py-mpi4py
sysutils/modules

Reviewed by:	michaelo, thierry (mentor)
Approved by:	michaelo, thierry (mentor)
Differential Revision:	https://reviews.freebsd.org/D56284
bf0f61fc9d
Thierry Thomas (thierry) · 5.0.0
net/mpich: Update to 5.0.0

Release notes at https://www.mpich.org/2026/02/04/mpich-5-0-0-released/

PR:		293030
Reported by:	Laurent Chardon (maintainer)
Exp-run by:	antoine
b376d3a9fc
Vladimir Druzenko (vvd) · 4.3.2
net/mpich: Update 4.3.1 => 4.3.2

Changelog:
https://www.mpich.org/2025/10/06/mpich-4-3-2-released/

- Switch repo to github because of Cloudflare "JS challenge" issues with
  fetch on the mpich.org domain.
- Replace space with tab in CONFIGURE_ARGS.

PR:	290082
MFH:	2025Q4
bd1d6e57a4
Vladimir Druzenko (vvd) · 4.3.1
net/mpich: Update 4.3.0 => 4.3.1

Release notes:
https://www.mpich.org/2025/06/20/mpich-4-3-1-released/

Move lines in Makefile to follow block guidelines.

PR:	287701
32dac69ece
Nuno Teixeira (eduardo) · 4.3.0
net/mpich: Update to 4.3.0

ChangeLog:	https://raw.githubusercontent.com/pmodels/mpich/v4.3.0/CHANGES
PR:		284589
f5ee4f2f7b
Philippe Audeoud (jadawin) · 4.2.3
net/mpich: Update to 4.2.3

PR:	281834
1050bb8ebf
Dimitry Andric (dim) · 4.2.2
net/mpich: fix build with clang 19 on i386

In bug 276035 this was already handled once, but with clang 19 on i386
we get similar link errors:

  ld: error: undefined reference: __addtf3
  >>> referenced by lib/.libs/libmpi.so (disallowed by --no-allow-shlib-undefined)

  ld: error: undefined reference: __gttf2
  >>> referenced by lib/.libs/libmpi.so (disallowed by --no-allow-shlib-undefined)

  ld: error: undefined reference: __lttf2
  >>> referenced by lib/.libs/libmpi.so (disallowed by --no-allow-shlib-undefined)

  ld: error: undefined reference: __multf3
  >>> referenced by lib/.libs/libmpi.so (disallowed by --no-allow-shlib-undefined)

  ld: error: undefined reference: __extendxftf2
  >>> referenced by lib/.libs/libmpi.so (disallowed by --no-allow-shlib-undefined)

  ld: error: undefined reference: __trunctfxf2
  >>> referenced by lib/.libs/libmpi.so (disallowed by --no-allow-shlib-undefined)

Again the cause is that the mpich configure script detects partial
float128 support on i386 (i.e. the compile doesn't immediately choke on
defining variables of that type). It then enables HAVE_FLOAT128, which
leads to the above errors, because compiler-rt does not support float128
on i386.

PR:		281557
Approved by:	laurent.chardon@gmail.com (maintainer)
MFH:		2024Q3
9d5e42894b
Zsolt Udvari (uzsolt) · 4.2.2
net/mpich: Fix build error on i386 CURRENT

A workaround existed in net/mpich for a missing feature in llvm 17.0.
The feature has been added to llvm 18.1 except for the i386 platform.
This patch adds llvm 18.1 i386 to the existing workaround.

PR:		280719
Approved by:	submitter is maintainer
510403c199
Torsten Zuehlsdorff (tz) · 4.2.2
net/mpich: Upgrade mpich from 4.2.1 to 4.2.2

- Remove default slurm dependency and make it an option (Bug 279777)
  - Remove HYDRA dependency on torque (not needed)
  - Revert removal of HYDRA option

PR:		280184, 279777
Approved by:	 Laurent Chardon <laurent.chardon@gmail.com> (maintainer)
09f0bf2ada
Rene Ladan (rene) · 4.2.1_2
net/mpich: remove support for expired graphics/torque
d9a8a803a5
Thierry Thomas (thierry) · 4.2.1_1
net/mpich: mark IGNORE when the option L0 is selected

It builds fine with L0, but does not run.

PR:		278869
51909b06f1
Thierry Thomas (thierry) · 4.2.1_1
net/mpich: fix with default options

MPICH is broken when L0 is selected: remove it from the default options.

Remark: still broken with L0.

PR:		278869
817999872e
Nuno Teixeira (eduardo) · 4.2.1
net/mpich: Update to 4.2.1

- Submitter becomes maintainer
- Remove bash dependency
- Restore the www doc folder
- Remove bugfix for slurm_query_node_list.c as it was fixed upstream

While I'm here:
- Remove GNU_CONFIGURE_MANPREFIX after 9fd7ee1cdf6c

ChangeLog:	https://www.mpich.org/2024/04/17/mpich-4-2-1-released/
PR:		278505
298eb16d8c
Yuri Victorovich (yuri) · 4.1.3
net/mpich: update 4.1.2 → 4.1.3
11c886021e
Yuri Victorovich (yuri) · 4.1.2_4
net/mpich: Fix failure to build when devel/uthash is installed

PR:		265684
e0a8cc0d33
Muhammad Moinur Rahman (bofh) · 4.1.2_3
net/mpich: Moved man to share/man

Approved by:    portmgr (blanket)
9e21f633be
Thierry Thomas (thierry) · 4.1.2_2
net/mpich: apply the fix for clang 17 on all OSVERSION

clang-17 has been MFC’ed: do not check OSVERSION but rather COMPILER_VERSION.

PR:		276035
Reported by:	pmc (at) citylink.dinoex.sub.org
22ba7292a1
Thierry Thomas (thierry) · 4.1.2_2
net/mpich: real fix for clang-17

This replaces the previous work-around and the need of an external
compiler.

For detailed explanations, see PR 276035.

PR:		276035
3eba17d824
Thierry Thomas (thierry) · 4.1.2_2
net/mpich: fix PORTREVISION after 003d02547265
bd8c784088
Thierry Thomas (thierry) · 4.1.2_1
net/mpich: work-around to build the dependencies on -CURRENT

Since the switch from clang-16 to 17.0.6 on -CURRENT, MPICH encounters
linker errors.

A work-around to force the usage of clang <= 16 has been introduced in
eb36006fdb70, but when the compiler has been forced to build, it must be
kept to build the dependencies.

PR:		276035
d12f454e36
Muhammad Moinur Rahman (bofh) · 4.1.2_1
net/mpich: Revert dependency changes

Revert "net/mpich: fix build by removal of hydra from pkg-plist"

This reverts commit 531052cb22f42acc476e0b15379db24115b683f1.

Revert "net/mpich: Update dependency"

This reverts commit 78bb85928c8845e2f3ccd78dc68bd2e7184a9339.

sysutils/torque is required by mpich.

Reported by:	thierry
003d025472
Stefan Eßer (se) · 4.1.2_2
net/mpich: fix build by removal of hydra from pkg-plist

Commit 78bb85928c8 removed the HYDRA option, but missed to remove
the files depending on that option from pkg-plist.

Approved by:	portmgr (implicit)
531052cb22
Muhammad Moinur Rahman (bofh) · 4.1.2_2
net/mpich: Update dependency

Default option HYDRA depends on expired port sysutils/torque. Remove the
DEFAULT option and dependencies.
78bb85928c
Rainer Hurling (rhurlin) · 4.1.2_1
net/mpich: Unbreak on CURRENT with base clang 17

clang version 17.0.6 causes linker errors that break the build on
15.0-CURRENT.  Work around this by building with an older llvm from
ports. This patch is same as commit f25b169ac895.

Thanks to thierry@ for the hint.
eb36006fdb
Thierry Thomas (thierry) · 4.1.2_1
net/mpich: fix with Slurm-23.11.1

See <https://github.com/pmodels/mpich/issues/6806>.

Patch from <https://github.com/pmodels/mpich/pull/6820>.
141ef0c641
Thierry Thomas (thierry) · 4.1.2
net/mpich: upgrade to 4.1.2

Upgrade to 4.1.2

Release notes at <https://www.mpich.org/2023/06/08/mpich-4-1-2-released/>.

It also installs mpi_f08.mod and some other interfaces, but this requires
ISO_Fortran_binding.h to be found.

PR:		275317
Exp-run by:	antoine@
81372858ca
Piotr Kubaj (pkubaj) · 3.4.3_2
net/mpich: drop not necessary powerpc64 knob
b9968413c8
Gerald Pfeifer (gerald) · 3.4.3_2
*: Bump PORTREVISIONs for math/mpc update to 1.3.1
8d3e020ed0
Thierry Thomas (thierry) · 3.4.3_1
Mk/Uses/mpi.mk: revert c9a111c1f2ce by marking MPICH libraries as private

Mark the libraries brought by MPICH dependencies as private, in order to
avoid to register them.

Patch provided by tijl@.
1bcedd2d66
Thierry Thomas (thierry) · 3.4.3
net/mpich: do not fail when F90 is set

PR:		267502
53dcf591d2
Stefan Eßer (se) · 3.4.3
Remove WWW entries moved into port Makefiles

Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
fb16dfecae
Stefan Eßer (se) · 3.4.3
Add WWW entries to port Makefiles

It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
b7f05445c0
Thierry Thomas (thierry) · as net/mpich2
net/mpich2: remove

MPICH2 has been marked as deprecated since dec. 2020, and no port in the
tree depends on it anymore.

Upstream switched to MPICH3 (net/mpich) and MPICH4 (not yet in the ports
tree), and now it does not build with GCC-11: it’s time to remove it.

PR:		264366
Reported by:	salvadore
c212e29dfc
Jan Beich (jbeich) · 3.4.3
net/mpich: update to 3.4.3

Changes:	https://www.mpich.org/2021/12/16/mpich-3-4-3-released/
Reported by:	GitHub (watch releases)
ac8df55e2d
Yuri Victorovich (yuri) · 3.4.2_4
net/mpich: Fix bug with uninitialized variables

Patch suggested in
https://github.com/nwchemgit/nwchem/issues/463#issuecomment-960359049
is added.

science/nwchem now works with mpich.
6fa3abe294
Stefan Eßer (se) · 3.4.2_3
*/*: Remove redundant '-[0-9]*' from CONFLICTS

The conflict checks compare the patterns first against the package
names without version (as reported by "pkg query "%n"), then - if
there was no match - agsinst the full package names including the
version (as reported by "pkg query "%n-%v").

Many CONFLICTS definitions used patterns like "bash-[0-9]*" to filter
for the bash package in any version. But that pattern is functionally
identical with just "bash".

Approved by:	portmgr (blanket)
819f25b36d
Jan Beich (jbeich) · 3.4.2_3
net/mpich: switch L0=off to --without-ze after 697c7df81364

https://github.com/pmodels/mpich/commit/67b1e07851fe
https://github.com/pmodels/mpich/commit/84ae6243139c

PR:		252536
Reported by:	Edoardo Aprà
dea8231864
Jan Beich (jbeich) · 3.4.2_3
net/mpich: replace L0 fix with upstream version

PR:		252536
Reported by:	Edoardo Aprà
a46966bb34
Wen Heping (wen) · 3.4.2_3
net/mpich: Update CONFLICTS
e48452d26f
Jan Beich (jbeich) · 3.4.2_3
net/mpich: unbreak optimized runtime after 88e134883dd2

Runtime may fail without a L0 driver like intel-compute-runtime e.g.,

$ mpivars
Abort(268484367) on node 0 (rank 0 in comm 0): Fatal error in PMPI_Init_thread: Other MPI error, error stack:
MPIR_Init_thread(153):  gpu_init failed
[unset]: write_line error; fd=-1 buf=:cmd=abort exitcode=268484367
:
system msg for write_line failure : Bad file descriptor
Attempting to use an MPI routine before initializing MPICH

$ MPIR_CVAR_ENABLE_GPU=0 mpivars
Abort(2139535) on node 0 (rank 0 in comm 0): Fatal error in PMPI_Init_thread: Other MPI error, error stack:
MPIR_Init_thread(159)......:
MPID_Init(591).............:
MPIDI_SHM_mpi_init_hook(22):
MPIDI_IPC_mpi_init_hook(36):
MPIDI_GPU_mpi_init_hook(79):  gpu_get_dev_count failed
[unset]: write_line error; fd=-1 buf=:cmd=abort exitcode=2139535
:
system msg for write_line failure : Bad file descriptor
Abort(2139535) on node 0 (rank 0 in comm 0): Fatal error in PMPI_Init_thread: Other MPI error, error stack:
MPIR_Init_thread(159)......:
MPID_Init(591).............:
MPIDI_SHM_mpi_init_hook(22):
MPIDI_IPC_mpi_init_hook(36):
MPIDI_GPU_mpi_init_hook(79):  gpu_get_dev_count failed
[unset]: write_line error; fd=-1 buf=:cmd=abort exitcode=2139535
:
system msg for write_line failure : Bad file descriptor
Segmentation fault

PR:		256244 (for tracking)
b5815e7648
Jan Beich (jbeich) · 3.4.2_2
devel/level-zero: update to 1.4.1

Changes:	https://github.com/oneapi-src/level-zero/compare/v1.3.7...v1.4.1
Reported by:	GitHub (watch releases)
f9e3cb9fcd
Jan Beich (jbeich) · 3.4.2_1
net/mpich: enable L0 by default for GPU support

To disable at runtime set MPIR_CVAR_ENABLE_GPU=0 via environ(7).

PR:		256244
Tested by:	thierry
88e134883d
Jan Beich (jbeich) · 3.4.2
net/mpich: update to 3.4.2

Changes:	https://www.mpich.org/2021/05/28/mpich-3-4-2-released/
Reported by:	GitHub (watch releases)
697c7df813
Mathieu Arnold (mat) · 3.4.1
One more small cleanup, forgotten yesterday. Reported by:	lwhsu
cf118ccf87
Mathieu Arnold (mat) · 3.4.1
Remove # $FreeBSD$ from Makefiles.
305f148f48
Neel Chauhan (nc) · 3.4.1
net/mpich: Update to 3.4.1

Changes: https://www.mpich.org/2021/01/26/mpich-3-4-1-released/
4fadcc5bdf
Piotr Kubaj (pkubaj) · 3.4
net/mpich: fix build on powerpc64

Neither __BYTE_ORDER nor __BIG_ENDIAN are defined:
In file included from src/mpi/datatype/typerep/dataloop/looputil.c:10:
./src/mpi/datatype/typerep/dataloop/looputil.h:57:2: error: This code assumes that __BYTE_ORDER and __BIG_ENDIAN are defined
#error This code assumes that __BYTE_ORDER and __BIG_ENDIAN are defined
50ad4ef465
Jan Beich (jbeich) · 3.4
net/mpich: unbreak with level-zero after r560756

level-zero is pulled as a build-only dependency of intel-compute-runtime.
mpich support for level-zero is broken and uses pre-1.0 API (before r545238).

src/gpu/mpl_gpu_ze.c:123:11: warning: implicit declaration of function 'zeDriverGetMemIpcHandle' is invalid in C99 [-Wimplicit-function-declaration]
    ret = zeDriverGetMemIpcHandle(global_ze_driver_handle, ptr, ipc_handle);
          ^
src/gpu/mpl_gpu_ze.c:139:9: warning: implicit declaration of function 'zeDriverOpenMemIpcHandle' is invalid in C99 [-Wimplicit-function-declaration]
        zeDriverOpenMemIpcHandle(global_ze_driver_handle,
        ^
src/gpu/mpl_gpu_ze.c:140:70: error: no member named 'global_dev_id' in 'struct _ze_ipc_mem_handle_t'
                                 global_ze_devices_handle[ipc_handle.global_dev_id],
                                                          ~~~~~~~~~~ ^
src/gpu/mpl_gpu_ze.c:141:45: error: no member named 'handle' in 'struct _ze_ipc_mem_handle_t'
                                 ipc_handle.handle, ZE_IPC_MEMORY_FLAG_NONE, ptr);
                                 ~~~~~~~~~~ ^
src/gpu/mpl_gpu_ze.c:141:53: error: use of undeclared identifier 'ZE_IPC_MEMORY_FLAG_NONE'; did you mean 'ZE_IPC_MEMORY_FLAG_TBD'?
                                 ipc_handle.handle, ZE_IPC_MEMORY_FLAG_NONE, ptr);
                                                    ^~~~~~~~~~~~~~~~~~~~~~~
src/gpu/mpl_gpu_ze.c:156:11: warning: implicit declaration of function 'zeDriverCloseMemIpcHandle' is invalid in C99 [-Wimplicit-function-declaration]
    ret = zeDriverCloseMemIpcHandle(global_ze_driver_handle, ptr);
          ^
src/gpu/mpl_gpu_ze.c:171:11: warning: implicit declaration of function 'zeDriverGetMemAllocProperties' is invalid in C99 [-Wimplicit-function-declaration]
    ret = zeDriverGetMemAllocProperties(global_ze_driver_handle, ptr, &ptr_attr, &device);
          ^
src/gpu/mpl_gpu_ze.c:202:25: error: use of undeclared identifier 'ZE_DEVICE_MEM_ALLOC_FLAG_DEFAULT'
    device_desc.flags = ZE_DEVICE_MEM_ALLOC_FLAG_DEFAULT;
                        ^
src/gpu/mpl_gpu_ze.c:204:17: error: no member named 'version' in 'struct _ze_device_mem_alloc_desc_t'
    device_desc.version = ZE_DEVICE_MEM_ALLOC_DESC_VERSION_CURRENT;
    ~~~~~~~~~~~ ^
src/gpu/mpl_gpu_ze.c:204:27: error: use of undeclared identifier 'ZE_DEVICE_MEM_ALLOC_DESC_VERSION_CURRENT'
    device_desc.version = ZE_DEVICE_MEM_ALLOC_DESC_VERSION_CURRENT;
                          ^
src/gpu/mpl_gpu_ze.c:208:11: warning: implicit declaration of function 'zeDriverAllocDeviceMem' is invalid in C99 [-Wimplicit-function-declaration]
    ret = zeDriverAllocDeviceMem(global_ze_driver_handle, &device_desc,
          ^
src/gpu/mpl_gpu_ze.c:223:23: error: use of undeclared identifier 'ZE_HOST_MEM_ALLOC_FLAG_DEFAULT'
    host_desc.flags = ZE_HOST_MEM_ALLOC_FLAG_DEFAULT;
                      ^
src/gpu/mpl_gpu_ze.c:224:15: error: no member named 'version' in 'struct _ze_host_mem_alloc_desc_t'
    host_desc.version = ZE_HOST_MEM_ALLOC_DESC_VERSION_CURRENT;
    ~~~~~~~~~ ^
src/gpu/mpl_gpu_ze.c:224:25: error: use of undeclared identifier 'ZE_HOST_MEM_ALLOC_DESC_VERSION_CURRENT'
    host_desc.version = ZE_HOST_MEM_ALLOC_DESC_VERSION_CURRENT;
                        ^
src/gpu/mpl_gpu_ze.c:229:11: warning: implicit declaration of function 'zeDriverAllocHostMem' is invalid in C99 [-Wimplicit-function-declaration]
    ret = zeDriverAllocHostMem(global_ze_driver_handle, &host_desc, size, mem_alignment, ptr);
          ^
src/gpu/mpl_gpu_ze.c:240:11: warning: implicit declaration of function 'zeDriverFreeMem' is invalid in C99 [-Wimplicit-function-declaration]
    ret = zeDriverFreeMem(global_ze_driver_handle, ptr);
          ^
src/gpu/mpl_gpu_ze.c:251:11: warning: implicit declaration of function 'zeDriverFreeMem' is invalid in C99 [-Wimplicit-function-declaration]
    ret = zeDriverFreeMem(global_ze_driver_handle, ptr);
          ^
src/gpu/mpl_gpu_ze.c:280:19: error: use of undeclared identifier 'device_handles'; did you mean 'dev_handle'?
    *dev_handle = device_handles[dev_id];
                  ^~~~~~~~~~~~~~

PR:		252536
Reported by:	Nick, thierry
efe0c51505
Thierry Thomas (thierry) · 3.4
- Upgrade to 3.4:   Release notes at <https://www.mpich.org/2021/01/05/mpich-3-4-released/>

- Depend on external libfabric and libjson-c

- Add a test target.
24b3efeb61