[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: |
Sat, 30 Jun 2018 20:13:03 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; SunOS sun4u; rv:52.0) Gecko/20100101 Firefox/52.0 |
URL:
<http://savannah.gnu.org/bugs/?54217>
Summary: Build fails with error: call of overloaded
‘pow(int, int)’ is ambiguous
Project: GNU Octave
Submitted by: michele31415
Submitted on: Sun 01 Jul 2018 12:13:01 AM UTC
Category: Configuration and Build System
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Build Failure
Status: None
Assigned to: None
Originator Name: Michele31415
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.4.0
Operating System: Solaris/SunOS
_______________________________________________________
Details:
While building Octave 4.4.0 on a Solaris 10 Sparc M3000 using opencsw
dependencies,gcc 4.9.2, and gmake, after nearly reaching the end, I get:
...
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/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
This one really has me stumped. Does anyone know what it's complaining about
here? Thanks.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54217>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54217] Build fails with error: call of overloaded ‘pow(int,int)’ is ambiguous,
Michele <=