Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Jul 2019 22:08:21 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r507477 - head/science/ncnn
Message-ID:  <201907272208.x6RM8LAZ043594@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



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