C++ help for a build

Alexander Hansen <[email protected]>
Newsgroups gmane.os.apple.fink.devel
Organization Fink Core Team
Message-ID <[email protected]>
Hi.  I just discovered that Octave-3.6.4 has decided it doesn't want to 
build with clang-6:

...
libtool: compile:  oct-cxx -DHAVE_CONFIG_H -I. -I.. -I./array 
-I./cruft/misc -Inumeric -I./numeric -Ioperators -I./operators 
-I./system -I./util -I../libgnu -I../libgnu -I/usr/X11/include 
-I/sw/include -Wall -W -Wshadow -Wold-style-cast -Wformat 
-Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -O3 -MD 
-D_THREAD_SAFE -pthread -MT array/array_libarray_la-int8NDArray.lo -MD 
-MP -MF array/.deps/array_libarray_la-int8NDArray.Tpo -c 
array/int8NDArray.cc  -fno-common -DPIC -o 
array/.libs/array_libarray_la-int8NDArray.o
In file included from array/int16NDArray.cc:28:
In file included from ./array/int16NDArray.h:26:
In file included from ./array/intNDArray.h:26:
In file included from ./array/MArray.h:28:
In file included from ./array/Array.h:32:
In file included from 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:624:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:1169:21: 
error:
       call to '__test' is ambiguous
    typedef decltype(__test(declval<_Tp>())) type;
                     ^~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:504:32: 
note:
       expanded from macro 'decltype'
#define decltype(x) __typeof__(x)
                                ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchIn 
file included from array/int32NDArray.cc:28:
In file included from 
./array/int32NDArray.h:ain/usr/bin/../include/c++/v1/type_traits26:
In file included from ./array/intNDArray.h::118226::
18In file included from :./array/MArray.h :28:
In file included from note./array/Array.h: :32:

In file included from 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithmin: 
624instantiation:
  of template class
       'std::__1::__numeric_type<octave_int<short> >' 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traitsrequested: 
1169here:21
: error:
       call to '__test' is ambiguous
           bool = __numeric_type<_A1>::value &&
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:959:14: 
note:
       in instantiation of    typedef decltype(__test(declval<_Tp>())) type;
                     ^~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:504:32: 
note:
       expanded from macro 'decltype'default
  argument for '__promote<octave_int<short>,
       octave_int<short>, void>' required #define decltype(x) 
__typeof__(x)here

                                ^
     typename __promote<_A1, _A2>::type
              ^~~~~~~~~~~~~~~~~~~
operators/mx-inlines.cc:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits310::118231::18 
: note: note: while
substituting       indeduced  instantiationtemplate
of       argumentstemplate  intoclass
function       'std::__1::__numeric_type<octave_int<int>template 
 >''pow'  requested[with  here_A1
= octave_int<short>, _A2
       = octave_int<sho          bool = __numeric_type<_A1>::value &&
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:959:14: 
note:
       in instantiation of default argument for '__promote<octave_int<int>,
       octave_int<int>, void>' required here
     typename __promote<_A1, _A2>::type
              ^~~~~~~~~~~~~~~~~~~
operators/mx-inlines.cc:310:31: note: while substituting deduced template
       arguments into function template 'pow' [with _A1 = 
octave_int<int>, _A2 =
       octave_int<int>]
DEFMXMAPPER2X (mx_inline_pow, pow)
                               ^
operators/mx-inlines.cc:299:41: note: expanded from macro 'DEFMXMAPPER2X'
{ for (size_t i = 0; i < n; i++) r[i] = FUN (x[i], y[i]); } \
                                         ^
array/int32NDArray.cc:58:42: note: in instantiation of function template
       specialization 'mx_inline_pow<octave_int<int>, octave_int<int>,
       octave_int<int> >' requested here
rt>]
BSXFUN_OP_DEF_MXLOOP (pow, int32NDArray, mx_inline_pow)
                                          ^
DEFMXMAPPER2X (mx_inline_pow, pow)
                               ^
numeric/bsxfun-defs.cc:219:operators/mx-inlines.cc12::299 :41:note : 
expandednote : from expandedmacro  from'BSXFUN_OP_DEF_MXLOOP' macro
  'DEFMXMAPPER2X'
     (x, y, LOOP, LOOP, LOOP); }
            ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:1158:17: 
note:
       candidate function
{ for (size_t i = 0; i < n; i++) r[i] = FUN (x[i], y[i]); } \
                                         ^
    static float __test(float);
                 ^
array/int16NDArray.cc:58:42: 
no/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:1159:18: 
note:
       candidate function
    static double __test(char);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:1160:18: 
note: te
:       candidate infunction instantiation
  of function template
       specialization 'mx_inline_pow<octave_int<short>,    static double 
__test(int);octave_int<short>,

       octave_int<short>                 ^
 >' requested here
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:1161:18: 
note:
       candidate function
BSXFUN_OP_DEF_MXLOOP (pow, int16NDArray, mx_inline_pow)
                                          ^
    static double __test(unsigned);
                  ^
numeric/bsxfun-defs.cc:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits219::116212::18 
: note: note: expanded
from       candidatemacro  function'BSXFUN_OP_DEF_MXLOOP'

    static double __test(long);    (x, y, LOOP, LOOP, LOOP); }

                  ^           ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:1163:18: 
note:
       candidate function
    static double __test(unsigned long);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:1164:18: 
note:
 
candidate/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits 
:function1158:
17: note:
       candidate function
    static double __test(long long);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits 
   static float __test(float);:
1165:                ^18
: note:
       candidate function
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_trait 
   static double __test(unsigned long long);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:1166:18: 
note:
       candidate function
    static double __test(double);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:1167:23: 
note: s
       :candidate1159 :function18:
  note:
       candidate function
    static long double __test(long double);
                       ^
    static double __test(char);
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits: 
                 ^1157
:16: note:
       candidate 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traitsfunction
    static void __test(...);
                ^
:1160:18: note:
       candidate function
    static double __test(int);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:1161:18: 
note:
       candidate function
    static double __test(unsigned);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:1162:18: 
note:
       candidate function
    static double __test(long);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:1163:18: 
note:
       candidate function
    static double __test(unsigned long);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:1164:18: 
note:
       candidate function
    static double __test(long long);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:1165:18: 
note:
       candidate function
    static double __test(unsigned long long);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:1166:18: 
note:
       candidate function
    static double __test(double);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:1167:23: 
note:
       candidate function
    static long double __test(long double);
                       ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:1157:16: 
note:
       candidate function
    static void __test(...);
                ^
1 error generated.
make[2]: *** [array/array_libarray_la-int32NDArray.lo] Error 1
...
------

Any help would be appreciated.
-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Fink-devel mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.