Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Sep 2019 20:26:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 240256] devel/arachne-pnr: fix build with GCC-based architectures
Message-ID:  <bug-240256-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240256

            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@FreeBSD.org
          Reporter: pkubaj@FreeBSD.org
                CC: jsorocil@gmail.com
                CC: jsorocil@gmail.com
             Flags: maintainer-feedback?(jsorocil@gmail.com)

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

Building with GCC9 fails with:
src/util.hh: In instantiation of =E2=80=98std::set<typename M::key_type> ke=
ys(const M&)
[with M =3D std::map<CBit, bool>; typename M::key_type =3D CBit]=E2=80=99:
src/chipdb.cc:73:23:   required from here
src/util.hh:191:24: error: moving a local object in a return statement prev=
ents
copy elision [-Werror=3Dpessimizing-move]
  191 |   return std::move(keys);
      |                        ^
src/util.hh:191:24: note: remove =E2=80=98std::move=E2=80=99 call

As reported at https://github.com/YosysHQ/arachne-pnr/issues/134

Add -Wno-error=3Dpessimizing-move to CFLAGS for GCC build.

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



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