svn commit: r507477 - head/science/ncnn

Piotr Kubaj pkubaj at FreeBSD.org
Sat Jul 27 22:08:22 UTC 2019


Author: pkubaj
Date: Sat Jul 27 22:08:21 2019
New Revision: 507477
URL: https://svnweb.freebsd.org/changeset/ports/507477

Log:
  science/ncnn: fix build with GCC-based architectures
  
  This adds USES=compiler:c11 because of:
  /usr/local/poudriere/ports/default/science/ncnn/work/ncnn-20190611-40-gd3be711/src/layer/convolutiondepthwise.cpp:450: error: expected '#pragma omp' clause before 'collapse'
  
  It's detected that our base compiler supports OpenMP and new OpenMP features are then used.
  
  That's why we need new GCC. USES=compiler:openmp would work but it uses a base compiler. Since this port builds also without OpenMP, no further modifications are needed.
  
  Approved by:	mentors (implicit approval)

Modified:
  head/science/ncnn/Makefile

Modified: head/science/ncnn/Makefile
==============================================================================
--- head/science/ncnn/Makefile	Sat Jul 27 21:12:52 2019	(r507476)
+++ head/science/ncnn/Makefile	Sat Jul 27 22:08:21 2019	(r507477)
@@ -11,7 +11,7 @@ COMMENT=	High-performance neural network inference fra
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-USES=		cmake
+USES=		cmake compiler:c11
 USE_GITHUB=	yes
 GH_ACCOUNT=	Tencent
 


More information about the svn-ports-head mailing list