Package: ruby-nmatrix Version: 0.1.0~rc3-2 Severity: serious Justification: fails to build from source (but built successfully in the past)
Hi,
ruby-nmatrix FTBFS (at least) since GCC 7 was made the default compiler:
In file included from math.cpp:125:0:
math/idamax.h: In instantiation of 'int nm::math::idamax(size_t, DType*, int)
[with DType = nm::Rational<short int>; size_t = long unsigned int]':
math/getrf.h:153:44: required from 'int nm::math::getrf_nothrow(int, int,
DType*, int, int*) [with bool RowMajor = true; DType = nm::Rational<short int>]'
math/getrf.h:211:37: required from 'int nm::math::getrf(CBLAS_ORDER, int,
int, DType*, int, int*) [with DType = nm::Rational<short int>]'
math/getrf.h:234:22: required from 'int nm::math::clapack_getrf(CBLAS_ORDER,
int, int, void*, int, int*) [with DType = nm::Rational<short int>]'
math.cpp:1295:3: required from here
math/idamax.h:60:15: error: call of overloaded 'abs(nm::Rational<short int>&)'
is ambiguous
dmax = abs(dx[0]);
~~~^~~~~~~
In file included from /usr/include/c++/7/cstdlib:75:0,
from /usr/include/c++/7/bits/stl_algo.h:59,
from /usr/include/c++/7/algorithm:62,
from math.cpp:116:
/usr/include/stdlib.h:735:12: note: candidate: int abs(int)
extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
^~~
In file included from /usr/include/c++/7/cstdlib:77:0,
from /usr/include/c++/7/bits/stl_algo.h:59,
from /usr/include/c++/7/algorithm:62,
from math.cpp:116:
/usr/include/c++/7/bits/std_abs.h:56:3: note: candidate: long int std::abs(long
int)
abs(long __i) { return __builtin_labs(__i); }
^~~
/usr/include/c++/7/bits/std_abs.h:61:3: note: candidate: long long int
std::abs(long long int)
abs(long long __x) { return __builtin_llabs (__x); }
^~~
/usr/include/c++/7/bits/std_abs.h:70:3: note: candidate: constexpr double
std::abs(double)
abs(double __x)
^~~
/usr/include/c++/7/bits/std_abs.h:74:3: note: candidate: constexpr float
std::abs(float)
abs(float __x)
^~~
/usr/include/c++/7/bits/std_abs.h:78:3: note: candidate: constexpr long double
std::abs(long double)
abs(long double __x)
^~~
Full log attached.
Andreas
ruby-nmatrix_0.1.0~rc3-2.log.gz
Description: application/gzip

