Date: Mon, 16 Sep 2019 11:22:54 +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: r512167 - head/devel/arachne-pnr Message-ID: <201909161122.x8GBMsxX096873@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909161122.x8GBMsxX096873>