When I install on MacOSX, both Cmake and ./configure give me this error:
In file included from /Users/ad/Desktop/kaldi/irstlm/src/interplm.cpp:21:
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:313:9: error: no member named 'signbit' in the global namespace
using ::signbit;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:314:9: error: no member named 'fpclassify' in the global namespace
using ::fpclassify;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:315:9: error: no member named 'isfinite' in the global namespace; did you mean
'finite'?
using ::isfinite;
~~^
/usr/include/math.h:757:12: note: 'finite' declared here
extern int finite(double) OSX_AVAILABLE_BUT_DEPRECATED(MAC_10_0, MAC_10_9, __IPHONE_NA, IPHONE_NA);
^
In file included from /Users/ad/Desktop/kaldi/irstlm/src/interplm.cpp:21:
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:316:9: error: no member named 'isinf' in the global namespace
using ::isinf;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:317:9: error: no member named 'isnan' in the global namespace
using ::isnan;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:318:9: error: no member named 'isnormal' in the global namespace
using ::isnormal;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:319:9: error: no member named 'isgreater' in the global namespace
using ::isgreater;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:320:9: error: no member named 'isgreaterequal' in the global namespace
using ::isgreaterequal;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:321:9: error: no member named 'isless' in the global namespace
using ::isless;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:322:9: error: no member named 'islessequal' in the global namespace
using ::islessequal;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:323:9: error: no member named 'islessgreater' in the global namespace
using ::islessgreater;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:324:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:325:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:331:9: error: no member named 'abs' in the global namespace; did you mean 'fabs'?
using ::abs;
~~^
/usr/include/math.h:431:15: note: 'fabs' declared here
extern double fabs(double);
^
In file included from /Users/ad/Desktop/kaldi/irstlm/src/interplm.cpp:21:
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:557:28: error: expected a qualified name after 'typename'
_LIBCPP_CONSTEXPR typename enable_if<is_floating_point<_A1>::value, bool>::type
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:557:37: error: expected ';' at end of declaration
_LIBCPP_CONSTEXPR typename enable_if<is_floating_point<_A1>::value, bool>::type
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:557:37: error: expected unqualified-id
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:569:39: error: use of undeclared identifier 'is_floating_point'
_LIBCPP_CONSTEXPR typename enable_if<!is_floating_point<_A1>::value, bool>::type
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:569:57: error: '_A1' does not refer to a value
_LIBCPP_CONSTEXPR typename enable_if<!is_floating_point<_A1>::value, bool>::type
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:567:17: note: declared here
template
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: [src/CMakeFiles/irstlm.dir/interplm.cpp.o] Error 1
make[1]: [src/CMakeFiles/irstlm.dir/all] Error 2
Dear Plison,
When I install on MacOSX, both Cmake and ./configure give me this error: In file included from /Users/ad/Desktop/kaldi/irstlm/src/interplm.cpp:21: /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:313:9: error: no member named 'signbit' in the global namespace using ::signbit; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:314:9: error: no member named 'fpclassify' in the global namespace using ::fpclassify; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:315:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'? using ::isfinite; ~~^ /usr/include/math.h:757:12: note: 'finite' declared here extern int finite(double) OSX_AVAILABLE_BUT_DEPRECATED(MAC_10_0, MAC_10_9, __IPHONE_NA, IPHONE_NA); ^ In file included from /Users/ad/Desktop/kaldi/irstlm/src/interplm.cpp:21: /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:316:9: error: no member named 'isinf' in the global namespace using ::isinf; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:317:9: error: no member named 'isnan' in the global namespace using ::isnan; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:318:9: error: no member named 'isnormal' in the global namespace using ::isnormal; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:319:9: error: no member named 'isgreater' in the global namespace using ::isgreater; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:320:9: error: no member named 'isgreaterequal' in the global namespace using ::isgreaterequal; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:321:9: error: no member named 'isless' in the global namespace using ::isless; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:322:9: error: no member named 'islessequal' in the global namespace using ::islessequal; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:323:9: error: no member named 'islessgreater' in the global namespace using ::islessgreater; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:324:9: error: no member named 'isunordered' in the global namespace using ::isunordered; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:325:9: error: no member named 'isunordered' in the global namespace using ::isunordered; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:331:9: error: no member named 'abs' in the global namespace; did you mean 'fabs'? using ::abs; ~~^ /usr/include/math.h:431:15: note: 'fabs' declared here extern double fabs(double); ^ In file included from /Users/ad/Desktop/kaldi/irstlm/src/interplm.cpp:21: /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:557:28: error: expected a qualified name after 'typename' _LIBCPP_CONSTEXPR typename enable_if<is_floating_point<_A1>::value, bool>::type ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:557:37: error: expected ';' at end of declaration _LIBCPP_CONSTEXPR typename enable_if<is_floating_point<_A1>::value, bool>::type ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:557:37: error: expected unqualified-id /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:569:39: error: use of undeclared identifier 'is_floating_point' _LIBCPP_CONSTEXPR typename enable_if<!is_floating_point<_A1>::value, bool>::type ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:569:57: error: '_A1' does not refer to a value _LIBCPP_CONSTEXPR typename enable_if<!is_floating_point<_A1>::value, bool>::type ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:567:17: note: declared here template
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: [src/CMakeFiles/irstlm.dir/interplm.cpp.o] Error 1
make[1]: [src/CMakeFiles/irstlm.dir/all] Error 2
Please help!