svn commit: r512167 - head/devel/arachne-pnr
Piotr Kubaj
pkubaj at FreeBSD.org
Mon Sep 16 11:22:54 UTC 2019
Author: pkubaj
Date: Mon Sep 16 11:22:53 2019
New Revision: 512167
URL: https://svnweb.freebsd.org/changeset/ports/512167
Log:
devel/arachne-pnr: fix build with GCC-based architectures
Building with GCC9 fails with:
src/util.hh: In instantiation of ‘std::set<typename M::key_type> keys(const M&) [with M = std::map<CBit, bool>; typename M::key_type = CBit]’:
src/chipdb.cc:73:23: required from here
src/util.hh:191:24: error: moving a local object in a return statement prevents copy elision [-Werror=pessimizing-move]
191 | return std::move(keys);
| ^
src/util.hh:191:24: note: remove ‘std::move’ call
As reported at https://github.com/YosysHQ/arachne-pnr/issues/134
Add -Wno-error=pessimizing-move to CFLAGS for GCC build.
PR: 240256
Approved by: linimon (mentor), jsorocil at gmail.com (maintainer timeout)
Modified:
head/devel/arachne-pnr/Makefile
Modified: head/devel/arachne-pnr/Makefile
==============================================================================
--- head/devel/arachne-pnr/Makefile Mon Sep 16 11:22:29 2019 (r512166)
+++ head/devel/arachne-pnr/Makefile Mon Sep 16 11:22:53 2019 (r512167)
@@ -20,6 +20,9 @@ USE_GITHUB= yes
GH_ACCOUNT= cseed
GH_TAGNAME= 840bdfdeb38809f9f6af4d89dd7b22959b176fdd
+CFLAGS+= ${CFLAGS_${CHOSEN_COMPILER_TYPE}}
+CFLAGS_gcc= -Wno-error=pessimizing-move
+
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/arachne-pnr
More information about the svn-ports-head
mailing list