octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #54217] Build fails with error: call of overlo


From: Michele
Subject: [Octave-bug-tracker] [bug #54217] Build fails with error: call of overloaded ‘pow(int,int)’ is ambiguous
Date: Sun, 1 Jul 2018 15:56:12 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; SunOS sun4u; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #6, bug #54217 (project octave):

I applied the pow.diff patch file.  It went a lot further this time but
stopped again on more math issues.  This is as far back as my window buffer
contained.  I think there's even more further up.  Presumably it saved this in
a log somewhere but I can't find it.  I have something in the top level called
config.log but it's dated yesterday.

I also forgot this time to save the originals of the files to be patched
before I ran patch.  Is there some sort of rollback function if I have to
start over again?

Oh, and for the benefit of anyone else coming along at a later date, the patch
command supplied with Solaris doesn't work, but gpatch does.

Here's the log:

6: note: long int std::abs(long int)
  inline long   abs(long _l) { return labs(_l); }
                ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/stdlib_iso.h:117:12:
note: int std::abs(int)
 extern int abs(int);
            ^
In file included from libinterp/corefcn/pr-output.cc:27:0:
/opt/csw/include/c++/4.9.2/cmath:99:5: note: constexpr typename
__gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type
std::abs(_Tp) [with _Tp = short int; typename
__gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type =
double]
     abs(_Tp __x)
     ^
libinterp/corefcn/pr-output.cc:1696:1: note: T abs(T) [with T = short int]
 abs (T x)
 ^
libinterp/corefcn/pr-output.cc:3079:46: error: call of overloaded ‘abs(short
int)’ is ambiguous
                 isneg = (abs (nda(i).value ()) != nda(i).value ());
                                              ^
libinterp/corefcn/pr-output.cc:3079:46: note: candidates are:
In file included from
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/math.h:26:0,
                 from /opt/csw/include/c++/4.9.2/cmath:44,
                 from libinterp/corefcn/pr-output.cc:27:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:182:21:
note: long double std::abs(long double)
  inline long double abs(long double __X) { return __fabsl(__X); }
                     ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:154:15:
note: float std::abs(float)
  inline float abs(float __X) { return __fabsf(__X); }
               ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:148:16:
note: double std::abs(double)
  inline double abs(double __X) { return fabs(__X); }
                ^
In file included from /usr/include/stdlib.h:17:0,
                 from /opt/csw/include/c++/4.9.2/cstdlib:72,
                 from /opt/csw/include/c++/4.9.2/ext/string_conversions.h:41,
                 from /opt/csw/include/c++/4.9.2/bits/basic_string.h:2850,
                 from /opt/csw/include/c++/4.9.2/string:52,
                 from /opt/csw/include/c++/4.9.2/bits/locale_classes.h:40,
                 from /opt/csw/include/c++/4.9.2/bits/ios_base.h:41,
                 from /opt/csw/include/c++/4.9.2/iomanip:40,
                 from libinterp/corefcn/pr-output.cc:29:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/stdlib_iso.h:163:16:
note: long int std::abs(long int)
  inline long   abs(long _l) { return labs(_l); }
                ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/stdlib_iso.h:117:12:
note: int std::abs(int)
 extern int abs(int);
            ^
In file included from libinterp/corefcn/pr-output.cc:27:0:
/opt/csw/include/c++/4.9.2/cmath:99:5: note: constexpr typename
__gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type
std::abs(_Tp) [with _Tp = short int; typename
__gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type =
double]
     abs(_Tp __x)
     ^
libinterp/corefcn/pr-output.cc:1696:1: note: T abs(T) [with T = short int]
 abs (T x)
 ^
libinterp/corefcn/pr-output.cc: In instantiation of ‘void
octave_print_internal_template(std::ostream&, const intNDArray<U>&, bool, int)
[with T = octave_int<short unsigned int>; std::ostream =
std::basic_ostream<char>]’:
libinterp/corefcn/pr-output.cc:3201:1:   required from here
libinterp/corefcn/pr-output.cc:3073:67: error: call of overloaded ‘abs(short
unsigned int)’ is ambiguous
                   (std::floor (log10 (double (abs (nda(i).value ()))) + 1));
                                                                   ^
libinterp/corefcn/pr-output.cc:3073:67: note: candidates are:
In file included from
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/math.h:26:0,
                 from /opt/csw/include/c++/4.9.2/cmath:44,
                 from libinterp/corefcn/pr-output.cc:27:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:182:21:
note: long double std::abs(long double)
  inline long double abs(long double __X) { return __fabsl(__X); }
                     ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:154:15:
note: float std::abs(float)
  inline float abs(float __X) { return __fabsf(__X); }
               ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:148:16:
note: double std::abs(double)
  inline double abs(double __X) { return fabs(__X); }
                ^
In file included from /usr/include/stdlib.h:17:0,
                 from /opt/csw/include/c++/4.9.2/cstdlib:72,
                 from /opt/csw/include/c++/4.9.2/ext/string_conversions.h:41,
                 from /opt/csw/include/c++/4.9.2/bits/basic_string.h:2850,
                 from /opt/csw/include/c++/4.9.2/string:52,
                 from /opt/csw/include/c++/4.9.2/bits/locale_classes.h:40,
                 from /opt/csw/include/c++/4.9.2/bits/ios_base.h:41,
                 from /opt/csw/include/c++/4.9.2/iomanip:40,
                 from libinterp/corefcn/pr-output.cc:29:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/stdlib_iso.h:163:16:
note: long int std::abs(long int)
  inline long   abs(long _l) { return labs(_l); }
                ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/stdlib_iso.h:117:12:
note: int std::abs(int)
 extern int abs(int);
            ^
In file included from libinterp/corefcn/pr-output.cc:27:0:
/opt/csw/include/c++/4.9.2/cmath:99:5: note: constexpr typename
__gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type
std::abs(_Tp) [with _Tp = short unsigned int; typename
__gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type =
double]
     abs(_Tp __x)
     ^
libinterp/corefcn/pr-output.cc:1713:3: note: T abs(T) [with T = short unsigned
int]
   abs (unsigned T x)                            \
   ^
libinterp/corefcn/pr-output.cc:1719:1: note: in expansion of macro
‘SPECIALIZE_UABS’
 SPECIALIZE_UABS(short)
 ^
libinterp/corefcn/pr-output.cc:3079:46: error: call of overloaded ‘abs(short
unsigned int)’ is ambiguous
                 isneg = (abs (nda(i).value ()) != nda(i).value ());
                                              ^
libinterp/corefcn/pr-output.cc:3079:46: note: candidates are:
In file included from
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/math.h:26:0,
                 from /opt/csw/include/c++/4.9.2/cmath:44,
                 from libinterp/corefcn/pr-output.cc:27:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:182:21:
note: long double std::abs(long double)
  inline long double abs(long double __X) { return __fabsl(__X); }
                     ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:154:15:
note: float std::abs(float)
  inline float abs(float __X) { return __fabsf(__X); }
               ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:148:16:
note: double std::abs(double)
  inline double abs(double __X) { return fabs(__X); }
                ^
In file included from /usr/include/stdlib.h:17:0,
                 from /opt/csw/include/c++/4.9.2/cstdlib:72,
                 from /opt/csw/include/c++/4.9.2/ext/string_conversions.h:41,
                 from /opt/csw/include/c++/4.9.2/bits/basic_string.h:2850,
                 from /opt/csw/include/c++/4.9.2/string:52,
                 from /opt/csw/include/c++/4.9.2/bits/locale_classes.h:40,
                 from /opt/csw/include/c++/4.9.2/bits/ios_base.h:41,
                 from /opt/csw/include/c++/4.9.2/iomanip:40,
                 from libinterp/corefcn/pr-output.cc:29:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/stdlib_iso.h:163:16:
note: long int std::abs(long int)
  inline long   abs(long _l) { return labs(_l); }
                ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/stdlib_iso.h:117:12:
note: int std::abs(int)
 extern int abs(int);
            ^
In file included from libinterp/corefcn/pr-output.cc:27:0:
/opt/csw/include/c++/4.9.2/cmath:99:5: note: constexpr typename
__gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type
std::abs(_Tp) [with _Tp = short unsigned int; typename
__gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type =
double]
     abs(_Tp __x)
     ^
libinterp/corefcn/pr-output.cc:1713:3: note: T abs(T) [with T = short unsigned
int]
   abs (unsigned T x)                            \
   ^
libinterp/corefcn/pr-output.cc:1719:1: note: in expansion of macro
‘SPECIALIZE_UABS’
 SPECIALIZE_UABS(short)
 ^
libinterp/corefcn/pr-output.cc: In instantiation of ‘void
octave_print_internal_template(std::ostream&, const intNDArray<U>&, bool, int)
[with T = octave_int<unsigned int>; std::ostream =
std::basic_ostream<char>]’:
libinterp/corefcn/pr-output.cc:3203:1:   required from here
libinterp/corefcn/pr-output.cc:3073:67: error: call of overloaded
‘abs(unsigned int)’ is ambiguous
                   (std::floor (log10 (double (abs (nda(i).value ()))) + 1));
                                                                   ^
libinterp/corefcn/pr-output.cc:3073:67: note: candidates are:
In file included from
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/math.h:26:0,
                 from /opt/csw/include/c++/4.9.2/cmath:44,
                 from libinterp/corefcn/pr-output.cc:27:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:182:21:
note: long double std::abs(long double)
  inline long double abs(long double __X) { return __fabsl(__X); }
                     ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:154:15:
note: float std::abs(float)
  inline float abs(float __X) { return __fabsf(__X); }
               ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:148:16:
note: double std::abs(double)
  inline double abs(double __X) { return fabs(__X); }
                ^
In file included from /usr/include/stdlib.h:17:0,
                 from /opt/csw/include/c++/4.9.2/cstdlib:72,
                 from /opt/csw/include/c++/4.9.2/ext/string_conversions.h:41,
                 from /opt/csw/include/c++/4.9.2/bits/basic_string.h:2850,
                 from /opt/csw/include/c++/4.9.2/string:52,
                 from /opt/csw/include/c++/4.9.2/bits/locale_classes.h:40,
                 from /opt/csw/include/c++/4.9.2/bits/ios_base.h:41,
                 from /opt/csw/include/c++/4.9.2/iomanip:40,
                 from libinterp/corefcn/pr-output.cc:29:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/stdlib_iso.h:163:16:
note: long int std::abs(long int)
  inline long   abs(long _l) { return labs(_l); }
                ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/stdlib_iso.h:117:12:
note: int std::abs(int)
 extern int abs(int);
            ^
In file included from libinterp/corefcn/pr-output.cc:27:0:
/opt/csw/include/c++/4.9.2/cmath:99:5: note: constexpr typename
__gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type
std::abs(_Tp) [with _Tp = unsigned int; typename
__gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type =
double]
     abs(_Tp __x)
     ^
libinterp/corefcn/pr-output.cc:1713:3: note: T abs(T) [with T = unsigned int]
   abs (unsigned T x)                            \
   ^
libinterp/corefcn/pr-output.cc:1720:1: note: in expansion of macro
‘SPECIALIZE_UABS’
 SPECIALIZE_UABS(int)
 ^
libinterp/corefcn/pr-output.cc:3079:46: error: call of overloaded
‘abs(unsigned int)’ is ambiguous
                 isneg = (abs (nda(i).value ()) != nda(i).value ());
                                              ^
libinterp/corefcn/pr-output.cc:3079:46: note: candidates are:
In file included from
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/math.h:26:0,
                 from /opt/csw/include/c++/4.9.2/cmath:44,
                 from libinterp/corefcn/pr-output.cc:27:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:182:21:
note: long double std::abs(long double)
  inline long double abs(long double __X) { return __fabsl(__X); }
                     ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:154:15:
note: float std::abs(float)
  inline float abs(float __X) { return __fabsf(__X); }
               ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:148:16:
note: double std::abs(double)
  inline double abs(double __X) { return fabs(__X); }
                ^
In file included from /usr/include/stdlib.h:17:0,
                 from /opt/csw/include/c++/4.9.2/cstdlib:72,
                 from /opt/csw/include/c++/4.9.2/ext/string_conversions.h:41,
                 from /opt/csw/include/c++/4.9.2/bits/basic_string.h:2850,
                 from /opt/csw/include/c++/4.9.2/string:52,
                 from /opt/csw/include/c++/4.9.2/bits/locale_classes.h:40,
                 from /opt/csw/include/c++/4.9.2/bits/ios_base.h:41,
                 from /opt/csw/include/c++/4.9.2/iomanip:40,
                 from libinterp/corefcn/pr-output.cc:29:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/stdlib_iso.h:163:16:
note: long int std::abs(long int)
  inline long   abs(long _l) { return labs(_l); }
                ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/stdlib_iso.h:117:12:
note: int std::abs(int)
 extern int abs(int);
            ^
In file included from libinterp/corefcn/pr-output.cc:27:0:
/opt/csw/include/c++/4.9.2/cmath:99:5: note: constexpr typename
__gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type
std::abs(_Tp) [with _Tp = unsigned int; typename
__gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type =
double]
     abs(_Tp __x)
     ^
libinterp/corefcn/pr-output.cc:1713:3: note: T abs(T) [with T = unsigned int]
   abs (unsigned T x)                            \
   ^
libinterp/corefcn/pr-output.cc:1720:1: note: in expansion of macro
‘SPECIALIZE_UABS’
 SPECIALIZE_UABS(int)
 ^
libinterp/corefcn/pr-output.cc: In instantiation of ‘void
octave_print_internal_template(std::ostream&, const intNDArray<U>&, bool, int)
[with T = octave_int<long long int>; std::ostream =
std::basic_ostream<char>]’:
libinterp/corefcn/pr-output.cc:3204:1:   required from here
libinterp/corefcn/pr-output.cc:3073:67: error: call of overloaded ‘abs(long
long int)’ is ambiguous
                   (std::floor (log10 (double (abs (nda(i).value ()))) + 1));
                                                                   ^
libinterp/corefcn/pr-output.cc:3073:67: note: candidates are:
In file included from
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/math.h:26:0,
                 from /opt/csw/include/c++/4.9.2/cmath:44,
                 from libinterp/corefcn/pr-output.cc:27:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:182:21:
note: long double std::abs(long double)
  inline long double abs(long double __X) { return __fabsl(__X); }
                     ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:154:15:
note: float std::abs(float)
  inline float abs(float __X) { return __fabsf(__X); }
               ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:148:16:
note: double std::abs(double)
  inline double abs(double __X) { return fabs(__X); }
                ^
In file included from /usr/include/stdlib.h:17:0,
                 from /opt/csw/include/c++/4.9.2/cstdlib:72,
                 from /opt/csw/include/c++/4.9.2/ext/string_conversions.h:41,
                 from /opt/csw/include/c++/4.9.2/bits/basic_string.h:2850,
                 from /opt/csw/include/c++/4.9.2/string:52,
                 from /opt/csw/include/c++/4.9.2/bits/locale_classes.h:40,
                 from /opt/csw/include/c++/4.9.2/bits/ios_base.h:41,
                 from /opt/csw/include/c++/4.9.2/iomanip:40,
                 from libinterp/corefcn/pr-output.cc:29:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/stdlib_iso.h:163:16:
note: long int std::abs(long int)
  inline long   abs(long _l) { return labs(_l); }
                ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/stdlib_iso.h:117:12:
note: int std::abs(int)
 extern int abs(int);
            ^
In file included from libinterp/corefcn/pr-output.cc:27:0:
/opt/csw/include/c++/4.9.2/cmath:99:5: note: constexpr typename
__gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type
std::abs(_Tp) [with _Tp = long long int; typename
__gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type =
double]
     abs(_Tp __x)
     ^
libinterp/corefcn/pr-output.cc:1696:1: note: T abs(T) [with T = long long
int]
 abs (T x)
 ^
libinterp/corefcn/pr-output.cc:3079:46: error: call of overloaded ‘abs(long
long int)’ is ambiguous
                 isneg = (abs (nda(i).value ()) != nda(i).value ());
                                              ^
libinterp/corefcn/pr-output.cc:3079:46: note: candidates are:
In file included from
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/math.h:26:0,
                 from /opt/csw/include/c++/4.9.2/cmath:44,
                 from libinterp/corefcn/pr-output.cc:27:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:182:21:
note: long double std::abs(long double)
  inline long double abs(long double __X) { return __fabsl(__X); }
                     ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:154:15:
note: float std::abs(float)
  inline float abs(float __X) { return __fabsf(__X); }
               ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:148:16:
note: double std::abs(double)
  inline double abs(double __X) { return fabs(__X); }
                ^
In file included from /usr/include/stdlib.h:17:0,
                 from /opt/csw/include/c++/4.9.2/cstdlib:72,
                 from /opt/csw/include/c++/4.9.2/ext/string_conversions.h:41,
                 from /opt/csw/include/c++/4.9.2/bits/basic_string.h:2850,
                 from /opt/csw/include/c++/4.9.2/string:52,
                 from /opt/csw/include/c++/4.9.2/bits/locale_classes.h:40,
                 from /opt/csw/include/c++/4.9.2/bits/ios_base.h:41,
                 from /opt/csw/include/c++/4.9.2/iomanip:40,
                 from libinterp/corefcn/pr-output.cc:29:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/stdlib_iso.h:163:16:
note: long int std::abs(long int)
  inline long   abs(long _l) { return labs(_l); }
                ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/stdlib_iso.h:117:12:
note: int std::abs(int)
 extern int abs(int);
            ^
In file included from libinterp/corefcn/pr-output.cc:27:0:
/opt/csw/include/c++/4.9.2/cmath:99:5: note: constexpr typename
__gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type
std::abs(_Tp) [with _Tp = long long int; typename
__gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type =
double]
     abs(_Tp __x)
     ^
libinterp/corefcn/pr-output.cc:1696:1: note: T abs(T) [with T = long long
int]
 abs (T x)
 ^
libinterp/corefcn/pr-output.cc: In instantiation of ‘void
octave_print_internal_template(std::ostream&, const intNDArray<U>&, bool, int)
[with T = octave_int<long long unsigned int>; std::ostream =
std::basic_ostream<char>]’:
libinterp/corefcn/pr-output.cc:3205:1:   required from here
libinterp/corefcn/pr-output.cc:3073:67: error: call of overloaded ‘abs(long
long unsigned int)’ is ambiguous
                   (std::floor (log10 (double (abs (nda(i).value ()))) + 1));
                                                                   ^
libinterp/corefcn/pr-output.cc:3073:67: note: candidates are:
In file included from
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/math.h:26:0,
                 from /opt/csw/include/c++/4.9.2/cmath:44,
                 from libinterp/corefcn/pr-output.cc:27:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:182:21:
note: long double std::abs(long double)
  inline long double abs(long double __X) { return __fabsl(__X); }
                     ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:154:15:
note: float std::abs(float)
  inline float abs(float __X) { return __fabsf(__X); }
               ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:148:16:
note: double std::abs(double)
  inline double abs(double __X) { return fabs(__X); }
                ^
In file included from /usr/include/stdlib.h:17:0,
                 from /opt/csw/include/c++/4.9.2/cstdlib:72,
                 from /opt/csw/include/c++/4.9.2/ext/string_conversions.h:41,
                 from /opt/csw/include/c++/4.9.2/bits/basic_string.h:2850,
                 from /opt/csw/include/c++/4.9.2/string:52,
                 from /opt/csw/include/c++/4.9.2/bits/locale_classes.h:40,
                 from /opt/csw/include/c++/4.9.2/bits/ios_base.h:41,
                 from /opt/csw/include/c++/4.9.2/iomanip:40,
                 from libinterp/corefcn/pr-output.cc:29:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/stdlib_iso.h:163:16:
note: long int std::abs(long int)
  inline long   abs(long _l) { return labs(_l); }
                ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/stdlib_iso.h:117:12:
note: int std::abs(int)
 extern int abs(int);
            ^
In file included from libinterp/corefcn/pr-output.cc:27:0:
/opt/csw/include/c++/4.9.2/cmath:99:5: note: constexpr typename
__gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type
std::abs(_Tp) [with _Tp = long long unsigned int; typename
__gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type =
double]
     abs(_Tp __x)
     ^
libinterp/corefcn/pr-output.cc:1713:3: note: T abs(T) [with T = long long
unsigned int]
   abs (unsigned T x)                            \
   ^
libinterp/corefcn/pr-output.cc:1722:1: note: in expansion of macro
‘SPECIALIZE_UABS’
 SPECIALIZE_UABS(long long)
 ^
libinterp/corefcn/pr-output.cc:3079:46: error: call of overloaded ‘abs(long
long unsigned int)’ is ambiguous
                 isneg = (abs (nda(i).value ()) != nda(i).value ());
                                              ^
libinterp/corefcn/pr-output.cc:3079:46: note: candidates are:
In file included from
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/math.h:26:0,
                 from /opt/csw/include/c++/4.9.2/cmath:44,
                 from libinterp/corefcn/pr-output.cc:27:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:182:21:
note: long double std::abs(long double)
  inline long double abs(long double __X) { return __fabsl(__X); }
                     ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:154:15:
note: float std::abs(float)
  inline float abs(float __X) { return __fabsf(__X); }
               ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:148:16:
note: double std::abs(double)
  inline double abs(double __X) { return fabs(__X); }
                ^
In file included from /usr/include/stdlib.h:17:0,
                 from /opt/csw/include/c++/4.9.2/cstdlib:72,
                 from /opt/csw/include/c++/4.9.2/ext/string_conversions.h:41,
                 from /opt/csw/include/c++/4.9.2/bits/basic_string.h:2850,
                 from /opt/csw/include/c++/4.9.2/string:52,
                 from /opt/csw/include/c++/4.9.2/bits/locale_classes.h:40,
                 from /opt/csw/include/c++/4.9.2/bits/ios_base.h:41,
                 from /opt/csw/include/c++/4.9.2/iomanip:40,
                 from libinterp/corefcn/pr-output.cc:29:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/stdlib_iso.h:163:16:
note: long int std::abs(long int)
  inline long   abs(long _l) { return labs(_l); }
                ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/stdlib_iso.h:117:12:
note: int std::abs(int)
 extern int abs(int);
            ^
In file included from libinterp/corefcn/pr-output.cc:27:0:
/opt/csw/include/c++/4.9.2/cmath:99:5: note: constexpr typename
__gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type
std::abs(_Tp) [with _Tp = long long unsigned int; typename
__gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type =
double]
     abs(_Tp __x)
     ^
libinterp/corefcn/pr-output.cc:1713:3: note: T abs(T) [with T = long long
unsigned int]
   abs (unsigned T x)                            \
   ^
libinterp/corefcn/pr-output.cc:1722:1: note: in expansion of macro
‘SPECIALIZE_UABS’
 SPECIALIZE_UABS(long long)
 ^
gmake[2]: *** [Makefile:18284:
libinterp/corefcn/libinterp_corefcn_libcorefcn_la-pr-output.lo] Error 1
gmake[2]: Leaving directory '/export/home/michele/octave-4.4.0'
gmake[1]: *** [Makefile:26469: all-recursive] Error 1
gmake[1]: Leaving directory '/export/home/michele/octave-4.4.0'
gmake: *** [Makefile:10185: all] Error 2
#


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?54217>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]