[Bug 232589] science/step: fix build with GCC-based architectures

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Oct 24 01:35:59 BST 2018


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

            Bug ID: 232589
           Summary: science/step: 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: kde at FreeBSD.org
          Reporter: pkubaj at anongoth.pl
             Flags: maintainer-feedback?(kde at FreeBSD.org)
          Assignee: kde at FreeBSD.org

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

Add USES=compiler:c++11-lang.

CXXFLAGS+=-Wno-error=return-type is necessary to fix:
In file included from
/usr/local/include/eigen3/unsupported/Eigen/IterativeSolvers:36:0,
                 from
/tmp/usr/local/poudriere/ports/default/science/step/work/step-18.08.2/stepcore/constraintsolver.cc:24:
/usr/local/include/eigen3/unsupported/Eigen/src/IterativeSolvers/DGMRES.h: In
member function 'Eigen::Index Eigen::DGMRES<_MatrixType,
_Preconditioner>::set_re
start(Eigen::Index)':
/usr/local/include/eigen3/unsupported/Eigen/src/IterativeSolvers/DGMRES.h:176:63:
error: no return statement in function returning non-void [-Werror=return-typ
e]
   Index set_restart(const Index restart) { m_restart=restart; }

I added it only for GCC architectures.

Tested on powerpc64 and amd64.

Hardware sponsored by IntegriCloud.

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


More information about the kde-freebsd mailing list