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 12:04:49 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; SunOS sun4u; rv:52.0) Gecko/20100101 Firefox/52.0

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

Thanks Mike, we're making progress - that seems to have worked.  But now it's
breaking on a similar error later on:

gmake[2]: Entering directory '/export/home/michele/octave-4.4.0'
preserving existing HG-ID file
  GEN      libinterp/builtins.cc
  GEN      libinterp/builtin-defun-decls.h
  CXX      libinterp/libinterp_liboctinterp_la-builtins.lo
  CXX      libinterp/corefcn/libinterp_corefcn_libcorefcn_la-__betainc__.lo
  CXX      libinterp/corefcn/libinterp_corefcn_libcorefcn_la-__contourc__.lo
  CXX      libinterp/corefcn/libinterp_corefcn_libcorefcn_la-__dsearchn__.lo
  CXX      libinterp/corefcn/libinterp_corefcn_libcorefcn_la-__expint__.lo
libinterp/corefcn/__expint__.cc: In function ‘octave_value_list
F__expint__(const octave_value_list&, int)’:
libinterp/corefcn/__expint__.cc:64:51: error: call of overloaded ‘pow(int,
int)’ is ambiguous
       static const FloatComplex tiny = pow (2, -50);
                                                   ^
libinterp/corefcn/__expint__.cc:64:51: 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 /opt/csw/include/c++/4.9.2/random:38,
                 from /opt/csw/include/c++/4.9.2/bits/stl_algo.h:66,
                 from /opt/csw/include/c++/4.9.2/algorithm:62,
                 from ./liboctave/array/Array.h:33,
                 from ./liboctave/array/MArray.h:29,
                 from ./liboctave/array/CNDArray.h:28,
                 from libinterp/corefcn/__expint__.cc:27:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:204:21:
note: long double std::pow(long double, long double)
  inline long double pow(long double __X, long double __Y) { return
                     ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:171:15:
note: float std::pow(float, float)
  inline float pow(float __X, float __Y) { return __powf(__X, __Y); }
               ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:72:15:
note: double std::pow(double, double)
 extern double pow __P((double, double));
               ^
libinterp/corefcn/__expint__.cc:98:43: error: call of overloaded
‘floor(int)’ is ambiguous
               alpha_j = floor ((j + 1) / 2);
                                           ^
libinterp/corefcn/__expint__.cc:98:43: 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 /opt/csw/include/c++/4.9.2/random:38,
                 from /opt/csw/include/c++/4.9.2/bits/stl_algo.h:66,
                 from /opt/csw/include/c++/4.9.2/algorithm:62,
                 from ./liboctave/array/Array.h:33,
                 from ./liboctave/array/MArray.h:29,
                 from ./liboctave/array/CNDArray.h:28,
                 from libinterp/corefcn/__expint__.cc:27:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:193:21:
note: long double std::floor(long double)
  inline long double floor(long double __X) { return __floorl(__X); }
                     ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:164:15:
note: float std::floor(float)
  inline float floor(float __X) { return __floorf(__X); }
               ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:77:15:
note: double std::floor(double)
 extern double floor __P((double));
               ^
libinterp/corefcn/__expint__.cc:122:47: error: call of overloaded ‘pow(int,
int)’ is ambiguous
       static const Complex tiny = pow (2, -100);
                                               ^
libinterp/corefcn/__expint__.cc:122:47: 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 /opt/csw/include/c++/4.9.2/random:38,
                 from /opt/csw/include/c++/4.9.2/bits/stl_algo.h:66,
                 from /opt/csw/include/c++/4.9.2/algorithm:62,
                 from ./liboctave/array/Array.h:33,
                 from ./liboctave/array/MArray.h:29,
                 from ./liboctave/array/CNDArray.h:28,
                 from libinterp/corefcn/__expint__.cc:27:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:204:21:
note: long double std::pow(long double, long double)
  inline long double pow(long double __X, long double __Y) { return
                     ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:171:15:
note: float std::pow(float, float)
  inline float pow(float __X, float __Y) { return __powf(__X, __Y); }
               ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:72:15:
note: double std::pow(double, double)
 extern double pow __P((double, double));
               ^
libinterp/corefcn/__expint__.cc:156:43: error: call of overloaded
‘floor(int)’ is ambiguous
               alpha_j = floor ((j + 1) / 2);
                                           ^
libinterp/corefcn/__expint__.cc:156:43: 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 /opt/csw/include/c++/4.9.2/random:38,
                 from /opt/csw/include/c++/4.9.2/bits/stl_algo.h:66,
                 from /opt/csw/include/c++/4.9.2/algorithm:62,
                 from ./liboctave/array/Array.h:33,
                 from ./liboctave/array/MArray.h:29,
                 from ./liboctave/array/CNDArray.h:28,
                 from libinterp/corefcn/__expint__.cc:27:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:193:21:
note: long double std::floor(long double)
  inline long double floor(long double __X) { return __floorl(__X); }
                     ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:164:15:
note: float std::floor(float)
  inline float floor(float __X) { return __floorf(__X); }
               ^
/opt/csw/lib/gcc/sparc-sun-solaris2.10/4.9.2/include-fixed/iso/math_iso.h:77:15:
note: double std::floor(double)
 extern double floor __P((double));
               ^
gmake[2]: *** [Makefile:17577:
libinterp/corefcn/libinterp_corefcn_libcorefcn_la-__expint__.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]