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

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

Oops - I reapplied pow.diff by mistake.  Please just ignore my last post. 
This time I applied abs.diff and got this:

# gpatch -p1 < abs.diff
patching file libinterp/corefcn/pr-output.cc
# pwd
/export/home/denber/octave-4.4.0
# gmake LDFLAGS=/opt/csw/lib
preserving existing HG-ID file
  GEN      libinterp/builtin-defun-decls.h
gmake  all-recursive
gmake[1]: Entering directory '/export/home/michele/octave-4.4.0'
preserving existing HG-ID file
Making all in libgnu
gmake[2]: Entering directory '/export/home/michele/octave-4.4.0/libgnu'
gmake  all-recursive
gmake[3]: Entering directory '/export/home/michele/octave-4.4.0/libgnu'
gmake[4]: Entering directory '/export/home/michele/octave-4.4.0/libgnu'
gmake[4]: Nothing to be done for 'all-am'.
gmake[4]: Leaving directory '/export/home/michele/octave-4.4.0/libgnu'
gmake[3]: Leaving directory '/export/home/michele/octave-4.4.0/libgnu'
gmake[2]: Leaving directory '/export/home/michele/octave-4.4.0/libgnu'
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
libinterp/corefcn/__betainc__.cc: In function ‘octave_value_list
F__betainc__(const octave_value_list&, int)’:
libinterp/corefcn/__betainc__.cc:80:44: error: call of overloaded ‘pow(int,
int)’ is ambiguous
       static const float tiny = pow (2, -50);
                                            ^
libinterp/corefcn/__betainc__.cc:80:44: 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/util/str-vec.h:32,
                 from ./libinterp/octave-value/ov-fcn.h:31,
                 from ./libinterp/octave-value/ov-builtin.h:32,
                 from libinterp/corefcn/defun-int.h:30,
                 from libinterp/corefcn/defun.h:32,
                 from libinterp/corefcn/__betainc__.cc:28:
/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/__betainc__.cc:151:46: error: call of overloaded ‘pow(int,
int)’ is ambiguous
       static const double tiny = pow (2, -100);
                                              ^
libinterp/corefcn/__betainc__.cc:151: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 /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/util/str-vec.h:32,
                 from ./libinterp/octave-value/ov-fcn.h:31,
                 from ./libinterp/octave-value/ov-builtin.h:32,
                 from libinterp/corefcn/defun-int.h:30,
                 from libinterp/corefcn/defun.h:32,
                 from libinterp/corefcn/__betainc__.cc:28:
/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));
               ^
gmake[2]: *** [Makefile:17556:
libinterp/corefcn/libinterp_corefcn_libcorefcn_la-__betainc__.lo] Error 1
gmake[2]: Leaving directory '/export/home/denber/octave-4.4.0'
gmake[1]: *** [Makefile:26469: all-recursive] Error 1
gmake[1]: Leaving directory '/export/home/denber/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]