cschwan/sage-on-gentoo — Issue #125: sci-mathematics/sage-4.8 fails to build
Author: veelai
Created: 2012-02-18 18:49:49+00:00
State: open

On my hardened ~amd64 machine with gcc 4.6.2 I see the following build failure for sage-4.8.

In file included from /usr/include/linbox/ffpack/ffpack.h:1601:0,
from /usr/include/linbox/algorithms/blas-domain.h:30,
from /usr/include/linbox/algorithms/echelon-form.h:30,
from sage/matrix/matrix_modn_dense_float.cpp:245:
/usr/include/linbox/ffpack/ffpack_frobenius.inl: In static member function ‘static std::list& LinBox::FFPACK::CharpolyArithProg(const Field&, std::list&, size_t, typename Field::Element*, size_t, size_t) [with Field = LinBox::Modular, Polynomial = std::vector >, size_t = long unsigned int, typename Field::Element = float]’:
/usr/include/linbox/ffpack/ffpack_charpoly.inl:59:5: instantiated from ‘static std::list& LinBox::FFPACK::CharPoly(const Field&, std::list&, size_t, typename Field::Element*, size_t, LinBox::FFPACK::FFPACK_CHARPOLY_TAG) [with Field = LinBox::Modular, Polynomial = std::vector >, size_t = long unsigned int, typename Field::Element = float]’
sage/matrix/matrix_modn_dense_float.cpp:4785:138: instantiated from here
/usr/include/linbox/ffpack/ffpack_frobenius.inl:45:42: error: no matching function for call to ‘LinBox::NonzeroRandIter, LinBox::ModularRandIter >::NonzeroRandIter(const LinBox::Modular&, LinBox::Modular::RandIter&)’
/usr/include/linbox/ffpack/ffpack_frobenius.inl:45:42: note: candidates are:
/usr/include/linbox/randiter/nonzero.h:53:3: note: LinBox::NonzeroRandIter::NonzeroRandIter(const LinBox::NonzeroRandIter&) [with Field = LinBox::Modular, RandIter = LinBox::ModularRandIter, LinBox::NonzeroRandIter = LinBox::NonzeroRandIter, LinBox::ModularRandIter >]
/usr/include/linbox/randiter/nonzero.h:53:3: note: candidate expects 1 argument, 2 provided
/usr/include/linbox/randiter/nonzero.h:50:3: note: LinBox::NonzeroRandIter::NonzeroRandIter(const Field&, const RandIter&) [with Field = LinBox::Modular, RandIter = LinBox::ModularRandIter]
/usr/include/linbox/randiter/nonzero.h:50:3: note: no known conversion for argument 1 from ‘const LinBox::Modular’ to ‘const LinBox::Modular&’
/usr/include/linbox/ffpack/ffpack_charpoly.inl:59:5: instantiated from ‘static std::list& LinBox::FFPACK::CharPoly(const Field&, std::list&, size_t, typename Field::Element*, size_t, LinBox::FFPACK::FFPACK_CHARPOLY_TAG) [with Field = LinBox::Modular, Polynomial = std::vector >, size_t = long unsigned int, typename Field::Element = float]’
sage/matrix/matrix_modn_dense_float.cpp:4785:138: instantiated from here
/usr/include/linbox/ffpack/ffpack_frobenius.inl:50:3: error: no matching function for call to ‘LinBox::NonzeroRandIter, LinBox::ModularRandIter >::random(LinBox::Modular::Element&)’
/usr/include/linbox/ffpack/ffpack_frobenius.inl:50:3: note: candidates are:
/usr/include/linbox/randiter/nonzero.h:69:12: note: LinBox::NonzeroRandIter::Element& LinBox::NonzeroRandIter::random(LinBox::NonzeroRandIter::Element&) const [with Field = LinBox::Modular, RandIter = LinBox::ModularRandIter, LinBox::NonzeroRandIter::Element = double]
/usr/include/linbox/randiter/nonzero.h:69:12: note: no known conversion for argument 1 from ‘LinBox::Modular::Element {aka float}’ to ‘LinBox::NonzeroRandIter, LinBox::ModularRandIter >::Element& {aka double&}’
/usr/include/linbox/randiter/nonzero.h:81:20: note: LinBox::ElementAbstract& LinBox::NonzeroRandIter::random(LinBox::ElementAbstract&) const [with Field = LinBox::Modular, RandIter = LinBox::ModularRandIter]
/usr/include/linbox/randiter/nonzero.h:81:20: note: no known conversion for argument 1 from ‘LinBox::Modular::Element {aka float}’ to ‘LinBox::ElementAbstract&’