git: da3c0949ffea - 2025Q1 - net/openmpi: Fix 16 byte atomic operations on amd64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 12 Mar 2025 10:44:05 UTC
The branch 2025Q1 has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=da3c0949ffea763452de09bd8c7b5026851489dc commit da3c0949ffea763452de09bd8c7b5026851489dc Author: Laurent Chardon <laurent.chardon@gmail.com> AuthorDate: 2025-03-12 01:16:12 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2025-03-12 10:43:36 +0000 net/openmpi: Fix 16 byte atomic operations on amd64 Clang does not support 16 byte atomic operations without -mcx16 on amd64 Upstream issue: https://github.com/open-mpi/ompi/issues/13134 PR: 285341 MFH: 2025Q1 (cherry picked from commit 07722f6ed2aa26e76ae830cfc26341788f4b7195) --- net/openmpi/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/net/openmpi/Makefile b/net/openmpi/Makefile index a28b6ae2ad11..bf1706046c28 100644 --- a/net/openmpi/Makefile +++ b/net/openmpi/Makefile @@ -1,5 +1,6 @@ PORTNAME= openmpi DISTVERSION= 5.0.6 +PORTREVISION= 1 CATEGORIES= net parallel MASTER_SITES= https://download.open-mpi.org/release/open-mpi/v${PORTVERSION:R}/ @@ -40,6 +41,7 @@ CONFIGURE_ARGS+= --program-prefix= \ --with-wrapper-ldflags=-Wl,-rpath=-Wl,-rpath=${LOCALBASE}/lib/gcc${_GCC_VER} TEST_TARGET= check CFLAGS+= ${CFLAGS_F2018} +PIE_UNSAFE= yes CONFLICTS_INSTALL= openmpi4-4* DOCSDIR= ${PREFIX}/${MPIDIR}/share/doc @@ -48,8 +50,6 @@ BINARY_ALIAS= python3=${PYTHON_CMD} PLIST_SUB+= MPIDIR=${MPIDIR} PORTDOCS= * -PIE_UNSAFE= yes - OPTIONS_DEFINE= AVX DEBUG DOCS IPV6 ROMIO SLURM OPTIONS_DEFAULT= ROMIO OPTIONS_EXCLUDE_aarch64= AVX @@ -98,6 +98,12 @@ PLIST_SUB+= SHORTFLOAT="" PLIST_SUB+= SHORTFLOAT="@comment " .endif +# clang does not support 16 byte atomic operations without -mcx16 on amd64 +# See https://github.com/open-mpi/ompi/issues/13134 +.if ${ARCH} == amd64 && ${COMPILER_TYPE} == clang +CFLAGS+= -mcx16 +.endif + LIBDIR2FIX= oshmem/tools/wrappers opal/tools/wrappers \ 3rd-party/openpmix ompi/tools/wrappers