Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Feb 2020 15:52:42 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r525280 - head/science/gromacs
Message-ID:  <202002051552.015FqgEl020171@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Wed Feb  5 15:52:41 2020
New Revision: 525280
URL: https://svnweb.freebsd.org/changeset/ports/525280

Log:
  science/gromacs: Fix build on systems with older clang (clang-6)
  
  Reported by:	fallout

Modified:
  head/science/gromacs/Makefile

Modified: head/science/gromacs/Makefile
==============================================================================
--- head/science/gromacs/Makefile	Wed Feb  5 15:51:36 2020	(r525279)
+++ head/science/gromacs/Makefile	Wed Feb  5 15:52:41 2020	(r525280)
@@ -18,7 +18,7 @@ BROKEN_i386=	undefined reference to `__atomic_load' an
 BUILD_DEPENDS=	boost-libs>=1.44:devel/boost-libs
 LIB_DEPENDS=	libhwloc.so:devel/hwloc
 
-USES=		cmake compiler:c++14-lang fortran gnome perl5 pkgconfig shebangfix xorg
+USES=		cmake fortran gnome perl5 pkgconfig shebangfix xorg # should be compiler:c++14-lang
 SHEBANG_FILES=	admin/*.sh scripts/*.pl scripts/*.sh src/gromacs/selection/*.sh
 bash_CMD=	${SH}
 USE_GNOME=	libxml2
@@ -82,6 +82,12 @@ OPENMPI_PLIST_SUB=	SUFFIX_MPI="_mpi"
 THREAD_MPI_DESC=	Build a thread-MPI-based multithreaded version of GROMACS
 THREAD_MPI_CMAKE_BOOL=	GMX_THREAD_MPI
 THREAD_MPI_PLIST_SUB=	SUFFIX_MPI=""
+
+# build fails on 12.0 with clang-6, so force a newer compiler
+BUILD_DEPENDS+=	clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
+CPP=		clang-cpp${LLVM_DEFAULT}
+CC=		clang${LLVM_DEFAULT}
+CXX=		clang++${LLVM_DEFAULT}
 
 post-patch:
 	@${FIND} ${WRKSRC} -name "CMakeLists.txt" | ${XARGS} \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002051552.015FqgEl020171>