Debian Bug report logs - #876231
ruby-nmatrix: FTBFS with GCC 7: error: call of overloaded 'abs(nm::Rational<short int>&)' is ambiguous

version graph

Package: ruby-nmatrix; Maintainer for ruby-nmatrix is Debian Ruby Extras Maintainers <[email protected]>; Source for ruby-nmatrix is src:ruby-nmatrix (PTS, buildd, popcon).

Reported by: Andreas Beckmann <[email protected]>

Date: Tue, 19 Sep 2017 23:51:01 UTC

Severity: serious

Tags: ftbfs

Found in version ruby-nmatrix/0.1.0~rc3-2

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Debian Ruby Extras Maintainers <[email protected]>:
Bug#876231; Package ruby-nmatrix. (Tue, 19 Sep 2017 23:51:03 GMT) (full text, mbox, link).


Acknowledgement sent to Andreas Beckmann <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian Ruby Extras Maintainers <[email protected]>. (Tue, 19 Sep 2017 23:51:04 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Andreas Beckmann <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: ruby-nmatrix: FTBFS with GCC 7: error: call of overloaded 'abs(nm::Rational<short int>&)' is ambiguous
Date: Wed, 20 Sep 2017 01:48:30 +0200
[Message part 1 (text/plain, inline)]
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 (application/gzip, attachment)]

Added tag(s) ftbfs. Request was from Adrian Bunk <[email protected]> to [email protected]. (Thu, 27 Aug 2020 10:03:06 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Fri Nov 15 10:51:29 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.