[Bug 240256] devel/arachne-pnr: fix build with GCC-based architectures

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Sep 1 20:27:01 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240256

            Bug ID: 240256
           Summary: devel/arachne-pnr: fix build with GCC-based
                    architectures
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: pkubaj at FreeBSD.org
                CC: jsorocil at gmail.com
                CC: jsorocil at gmail.com
             Flags: maintainer-feedback?(jsorocil at gmail.com)

Created attachment 207075
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=207075&action=edit
patch

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list