Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jul 2019 10:05:47 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r505742 - head/science/dftbplus
Message-ID:  <201907031005.x63A5lVj066296@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Wed Jul  3 10:05:47 2019
New Revision: 505742
URL: https://svnweb.freebsd.org/changeset/ports/505742

Log:
  science/dftbplus: Unbreak build with GCC 9
  
  /usr/local/bin/ld: coulomb.o: in function `__coulomb_MOD_invrstress._omp_fn.0':
  coulomb.f90:(.text+0x42): undefined reference to `GOMP_loop_maybe_nonmonotonic_runtime_start'
  /usr/local/bin/ld: coulomb.f90:(.text+0x176): undefined reference to `GOMP_loop_maybe_nonmonotonic_runtime_next'
  /usr/local/bin/ld: coulomb.o: in function `__coulomb_MOD_invrstress._omp_fn.1':
  coulomb.f90:(.text+0xfbc): undefined reference to `GOMP_loop_maybe_nonmonotonic_runtime_start'
  /usr/local/bin/ld: coulomb.f90:(.text+0x1172): undefined reference to `GOMP_loop_maybe_nonmonotonic_runtime_next'
  [...]
  
  PR:		238666
  Submitted by:	jbeich
  Reported by:	antoine (via exp-run in PR 238330)
  Approved by:	yuri (maintainer timeout, 2 weeks)

Modified:
  head/science/dftbplus/Makefile

Modified: head/science/dftbplus/Makefile
==============================================================================
--- head/science/dftbplus/Makefile	Wed Jul  3 10:04:27 2019	(r505741)
+++ head/science/dftbplus/Makefile	Wed Jul  3 10:05:47 2019	(r505742)
@@ -2,7 +2,7 @@
 
 PORTNAME=	dftbplus
 DISTVERSION=	18.2
-PORTREVISION=	6
+PORTREVISION=	7
 CATEGORIES=	science
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -11,11 +11,10 @@ COMMENT=	DFTB+: Package for performing fast atomistic 
 LICENSE=	GPLv3 # main code is under LGPL3+, the bundled dftd3-lib is under GPLv1+, this makes the result GPLv3 (based on https://www.gnu.org/licenses/gpl-faq.html#AllCompatibility)
 
 LIB_DEPENDS=	libblas.so:math/blas \
-		liblapack.so:math/lapack \
-		libomp.so:devel/openmp
+		liblapack.so:math/lapack
 RUN_DEPENDS=	${PYNUMPY}
 
-USES=		fortran gmake python:2.7 shebangfix
+USES=		compiler:gcc-c++11-lib fortran gmake python:2.7 shebangfix
 SHEBANG_FILES=	tools/dptools/bin/* tools/misc/* utils/srcmanip/* utils/build/* external/fypp/bin/* utils/get_opt_externals \
 		external/fypp/bin/fypp utils/test/testlist_to_fypp test/prog/dftb+/bin/tagdiff
 SHEBANG_GLOB=	*.py
@@ -28,7 +27,7 @@ MAKEFILE=	makefile
 TEST_TARGET=	test
 
 FFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-llapack -lblas ${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libgcc_s.so ${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libgfortran.so -lm -lomp
+LDFLAGS+=	-llapack -lblas -lgfortran -lm
 
 MAKE_ARGS=	PYTHON=${PYTHON_CMD} FC=${FC} FXX=${FC} LN=${CC} \
 		INSTALLDIR=${STAGEDIR}${PREFIX} FREEBSD_PYDISTUTILS_INSTALLARGS="${PYDISTUTILS_INSTALLARGS} --root=${STAGEDIR}"



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