Since I updated my OS to MacOS Mojave, rstan stopped working.
I tried re-installing it from scratch, but I cannot succeed in installing the macOS R toolchain.
IIn fact, I downloaded the installer from the release page. I tried a few times but kept getting the error.
Anyone knows how can I fix it? I was even considering downgrading my OS because none of the fixes suggested around work for me.
I have Xcode 10.1 installed, but the compiler is not working anyway.
Indeed, when I run this codeI fail to get 10: fx <- inline::cxxfunction( signature(x = "integer", y = "numeric" ) , ' return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ; ' ) fx( 2L, 5 ) # should be 10
fx â inline::cxxfunction( signature(x = âintegerâ, y = ânumericâ ) , â
return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ;
' )
In file included from file50dd5fdfd554.cpp:3:
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:50:
/usr/local/clang4/bin/âŚ/include/c++/v1/cmath:313:9: error: no member named âsignbitâ in the global namespace
using ::signbit;
~~^
/usr/local/clang4/bin/âŚ/include/c++/v1/cmath:314:9: error: no member named âfpclassifyâ in the global namespace
using ::fpclassify;
~~^
/usr/local/clang4/bin/âŚ/include/c++/v1/cmath:315:9: error: no member named âisfiniteâ in the global namespace; did you mean âfiniteâ?
using ::isfinite;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:749:12: note: âfiniteâ declared here
extern int finite(double)
^
In file included from file50dd5fdfd554.cpp:3:
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:50:
/usr/local/clang4/bin/âŚ/include/c++/v1/cmath:316:9: error: no member named âisinfâ in the global namespace
using ::isinf;
~~^
/usr/local/clang4/bin/âŚ/include/c++/v1/cmath:317:9: error: no member named âisnanâ in the global namespace
using ::isnan;
~~^
/usr/local/clang4/bin/âŚ/include/c++/v1/cmath:318:9: error: no member named âisnormalâ in the global namespace
using ::isnormal;
~~^
/usr/local/clang4/bin/âŚ/include/c++/v1/cmath:319:9: error: no member named âisgreaterâ in the global namespace
using ::isgreater;
~~^
/usr/local/clang4/bin/âŚ/include/c++/v1/cmath:320:9: error: no member named âisgreaterequalâ in the global namespace
using ::isgreaterequal;
~~^
/usr/local/clang4/bin/âŚ/include/c++/v1/cmath:321:9: error: no member named âislessâ in the global namespace
using ::isless;
~~^
/usr/local/clang4/bin/âŚ/include/c++/v1/cmath:322:9: error: no member named âislessequalâ in the global namespace
using ::islessequal;
~~^
/usr/local/clang4/bin/âŚ/include/c++/v1/cmath:323:9: error: no member named âislessgreaterâ in the global namespace
using ::islessgreater;
~~^
/usr/local/clang4/bin/âŚ/include/c++/v1/cmath:324:9: error: no member named âisunorderedâ in the global namespace
using ::isunordered;
~~^
/usr/local/clang4/bin/âŚ/include/c++/v1/cmath:325:9: error: no member named âisunorderedâ in the global namespace
using ::isunordered;
~~^
/usr/local/clang4/bin/âŚ/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
^
/usr/local/clang4/bin/âŚ/include/c++/v1/cmath:557:37: error: expected â;â at end of declaration
_LIBCPP_CONSTEXPR typename enable_if<is_floating_point<_A1>::value, bool>::type
^
/usr/local/clang4/bin/âŚ/include/c++/v1/cmath:557:37: error: expected unqualified-id
/usr/local/clang4/bin/âŚ/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
^
/usr/local/clang4/bin/âŚ/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
^
/usr/local/clang4/bin/âŚ/include/c++/v1/cmath:567:17: note: declared here
template
^
/usr/local/clang4/bin/âŚ/include/c++/v1/cmath:569:63: error: definition or redeclaration of âvalueâ cannot name the global scope
_LIBCPP_CONSTEXPR typename enable_if<!is_floating_point<_A1>::value, bool>::type
~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [file50dd5fdfd554.o] Error 1
ERROR(s) during compilation: source code errors or compiler configuration errors!
Program source:
1:
2: // includes from the plugin
3: #include <R.h>
4: #include <Rdefines.h>
5: #include <R_ext/Error.h>
6:
7:
8: // user includes
9:
10:
11: // declarations
12: extern âCâ {
13: SEXP file50dd5fdfd554( SEXP x, SEXP y) ;
14: }
15:
16: // definition
17:
18: SEXP file50dd5fdfd554( SEXP x, SEXP y ){
19:
20: return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ;
21:
22: Rf_warning(âyour C++ program does not return anythingâ);
23: return R_NilValue ;
24: }
25:
26:
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! In file included from file50dd5fdfd554.cpp:3:
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:50:
/usr/local/clang4/bin/âŚ/include/c++/v1/cmath:313:9: error: no member named âsignbitâ in the global namespace
using ::signbit;
~~^
/usr/local/clang4/bin/âŚ/include/c++/v1/cmath:314:9: error: no member named âfpclassifyâ in the global namespace
using ::fpclassify;
~~^
/usr/local/clang4/bin/âŚ/include/c++/v1/cmath:315:9: error: no member named âisfiniteâ in the global namespace; did you mean âfiniteâ?
using ::isfinite;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:749:12: note: âfiniteâ declared here
extern int finite(double)
^
In file included from file50dd5fdfd554.cpp:3:
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:50:
/usr/local/clang4/bin/âŚ/include/c++/v1/cmath:316:9: error: no member named âisinfâ in the glo
In addition: Warning message:
In system(cmd, intern = !verbose) :
running command â/Library/Frameworks/R.framework/Resources/bin/R CMD SHLIB file50dd5fdfd554.cpp 2> file50dd5fdfd554.cpp.err.txtâ had status 1
fx( 2L, 5 ) # should be 10
Error in fx(2L, 5) : could not find function âfxâ
I tried, but I get this:
In file included from file50dd4115f812.cpp:3:
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:50:
/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;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:749:12: note: âfiniteâ declared here
extern int finite(double)
^
In file included from file50dd4115f812.cpp:3:
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:50:
/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:551: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:551: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:551:37: error: expected unqualified-id
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:563: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:563: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:561:17: note: declared here
template
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:563:63: error: definition or redeclaration of âvalueâ cannot name the global scope
_LIBCPP_CONSTEXPR typename enable_if<!is_floating_point<_A1>::value, bool>::type
~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [file50dd4115f812.o] Error 1
ERROR(s) during compilation: source code errors or compiler configuration errors!
Program source:
1:
2: // includes from the plugin
3: #include <R.h>
4: #include <Rdefines.h>
5: #include <R_ext/Error.h>
6:
7:
8: // user includes
9:
10:
11: // declarations
12: extern âCâ {
13: SEXP file50dd4115f812( SEXP x, SEXP y) ;
14: }
15:
16: // definition
17:
18: SEXP file50dd4115f812( SEXP x, SEXP y ){
19:
20: return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ;
21:
22: Rf_warning(âyour C++ program does not return anythingâ);
23: return R_NilValue ;
24: }
25:
26:
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! In file included from file50dd4115f812.cpp:3:
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:50:
/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;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:749:12: note: âfiniteâ declared here
extern int finite(double)
^
In file included from file50dd4115f812.cpp:3:
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:50:
/Library/Developer/CommandLineTools/usr/include/c
In addition: Warning message:
In system(cmd, intern = !verbose) :
running command â/Library/Frameworks/R.framework/Resources/bin/R CMD SHLIB file50dd4115f812.cpp 2> file50dd4115f812.cpp.err.txtâ had status 1
In file included from file50dd477e4aa7.cpp:3:
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:50:
/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;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:749:12: note: âfiniteâ declared here
extern int finite(double)
^
In file included from file50dd477e4aa7.cpp:3:
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:50:
/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:551: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:551: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:551:37: error: expected unqualified-id
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:563: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:563: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:561:17: note: declared here
template
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:563:63: error: definition or redeclaration of âvalueâ cannot name the global scope
_LIBCPP_CONSTEXPR typename enable_if<!is_floating_point<_A1>::value, bool>::type
~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [file50dd477e4aa7.o] Error 1
ERROR(s) during compilation: source code errors or compiler configuration errors!
Program source:
1:
2: // includes from the plugin
3: #include <R.h>
4: #include <Rdefines.h>
5: #include <R_ext/Error.h>
6:
7:
8: // user includes
9:
10:
11: // declarations
12: extern âCâ {
13: SEXP file50dd477e4aa7( SEXP x, SEXP y) ;
14: }
15:
16: // definition
17:
18: SEXP file50dd477e4aa7( SEXP x, SEXP y ){
19:
20: return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ;
21:
22: Rf_warning(âyour C++ program does not return anythingâ);
23: return R_NilValue ;
24: }
25:
26:
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! In file included from file50dd477e4aa7.cpp:3:
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:50:
/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;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:749:12: note: âfiniteâ declared here
extern int finite(double)
^
In file included from file50dd477e4aa7.cpp:3:
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:50:
/Library/Developer/CommandLineTools/usr/include/c
In addition: Warning message:
In system(cmd, intern = !verbose) :
running command â/Library/Frameworks/R.framework/Resources/bin/R CMD SHLIB file50dd477e4aa7.cpp 2> file50dd477e4aa7.cpp.err.txtâ had status 1
1 :
2 : // includes from the plugin
3 : #include <R.h>
4 : #include <Rdefines.h>
5 : #include <R_ext/Error.h>
6 :
7 :
8 : // user includes
9 :
10 :
11 : // declarations
12 : extern âCâ {
13 : SEXP file2ed5f0b52b6( SEXP x, SEXP y) ;
14 : }
15 :
16 : // definition
17 :
18 : SEXP file2ed5f0b52b6( SEXP x, SEXP y ){
19 :
20 : return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ;
21 :
22 : Rf_warning(âyour C++ program does not return anythingâ);
23 : return R_NilValue ;
24 : }
25 :
26 :
Compilation argument:
/Library/Frameworks/R.framework/Resources/bin/R CMD SHLIB file2ed5f0b52b6.cpp 2> file2ed5f0b52b6.cpp.err.txt
clang++ -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -isystem /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -fPIC -Wall -g -O2 -c file2ed5f0b52b6.cpp -o file2ed5f0b52b6.o
In file included from file2ed5f0b52b6.cpp:3:
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:50:
/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;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:749:12: note: âfiniteâ declared here
extern int finite(double)
^
In file included from file2ed5f0b52b6.cpp:3:
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:50:
/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:551: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:551: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:551:37: error: expected unqualified-id
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:563: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:563: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:561:17: note: declared here
template
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:563:63: error: definition or redeclaration of âvalueâ cannot name the global scope
_LIBCPP_CONSTEXPR typename enable_if<!is_floating_point<_A1>::value, bool>::type
~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [file2ed5f0b52b6.o] Error 1
ERROR(s) during compilation: source code errors or compiler configuration errors!
Program source:
1:
2: // includes from the plugin
3: #include <R.h>
4: #include <Rdefines.h>
5: #include <R_ext/Error.h>
6:
7:
8: // user includes
9:
10:
11: // declarations
12: extern âCâ {
13: SEXP file2ed5f0b52b6( SEXP x, SEXP y) ;
14: }
15:
16: // definition
17:
18: SEXP file2ed5f0b52b6( SEXP x, SEXP y ){
19:
20: return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ;
21:
22: Rf_warning(âyour C++ program does not return anythingâ);
23: return R_NilValue ;
24: }
25:
26:
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! In file included from file2ed5f0b52b6.cpp:3:
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:50:
/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;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:749:12: note: âfiniteâ declared here
extern int finite(double)
^
In file included from file2ed5f0b52b6.cpp:3:
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:50:
/Library/Developer/CommandLineTools/usr/include/c++
1 :
2 : // includes from the plugin
3 : #include <R.h>
4 : #include <Rdefines.h>
5 : #include <R_ext/Error.h>
6 :
7 :
8 : // user includes
9 :
10 :
11 : // declarations
12 : extern âCâ {
13 : SEXP file2ed541644d7( SEXP x, SEXP y) ;
14 : }
15 :
16 : // definition
17 :
18 : SEXP file2ed541644d7( SEXP x, SEXP y ){
19 :
20 : return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ;
21 :
22 : Rf_warning(âyour C++ program does not return anythingâ);
23 : return R_NilValue ;
24 : }
25 :
26 :
Compilation argument:
/Library/Frameworks/R.framework/Resources/bin/R CMD SHLIB file2ed541644d7.cpp 2> file2ed541644d7.cpp.err.txt
clang++ -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -isystem /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -fPIC -Wall -g -O2 -c file2ed541644d7.cpp -o file2ed541644d7.o
In file included from file2ed541644d7.cpp:3:
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:50:
/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;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:749:12: note: âfiniteâ declared here
extern int finite(double)
^
In file included from file2ed541644d7.cpp:3:
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:50:
/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:551: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:551: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:551:37: error: expected unqualified-id
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:563: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:563: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:561:17: note: declared here
template
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:563:63: error: definition or redeclaration of âvalueâ cannot name the global scope
_LIBCPP_CONSTEXPR typename enable_if<!is_floating_point<_A1>::value, bool>::type
~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [file2ed541644d7.o] Error 1
ERROR(s) during compilation: source code errors or compiler configuration errors!
Program source:
1:
2: // includes from the plugin
3: #include <R.h>
4: #include <Rdefines.h>
5: #include <R_ext/Error.h>
6:
7:
8: // user includes
9:
10:
11: // declarations
12: extern âCâ {
13: SEXP file2ed541644d7( SEXP x, SEXP y) ;
14: }
15:
16: // definition
17:
18: SEXP file2ed541644d7( SEXP x, SEXP y ){
19:
20: return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ;
21:
22: Rf_warning(âyour C++ program does not return anythingâ);
23: return R_NilValue ;
24: }
25:
26:
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! In file included from file2ed541644d7.cpp:3:
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:50:
/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;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:749:12: note: âfiniteâ declared here
extern int finite(double)
^
In file included from file2ed541644d7.cpp:3:
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:50:
/Library/Developer/CommandLineTools/usr/include/c++
1 :
2 : // includes from the plugin
3 : #include <R.h>
4 : #include <Rdefines.h>
5 : #include <R_ext/Error.h>
6 :
7 :
8 : // user includes
9 :
10 :
11 : // declarations
12 : extern âCâ {
13 : SEXP file2ed201aa62( SEXP x, SEXP y) ;
14 : }
15 :
16 : // definition
17 :
18 : SEXP file2ed201aa62( SEXP x, SEXP y ){
19 :
20 : return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ;
21 :
22 : Rf_warning(âyour C++ program does not return anythingâ);
23 : return R_NilValue ;
24 : }
25 :
26 :
Compilation argument:
/Library/Frameworks/R.framework/Resources/bin/R CMD SHLIB file2ed201aa62.cpp 2> file2ed201aa62.cpp.err.txt
clang++ -std=c++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -isystem /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -fPIC -Wall -g -O2 -c file2ed201aa62.cpp -o file2ed201aa62.o
In file included from file2ed201aa62.cpp:3:
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:50:
/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;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:749:12: note: âfiniteâ declared here
extern int finite(double)
^
In file included from file2ed201aa62.cpp:3:
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:50:
/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:551: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:551: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:551:37: error: expected unqualified-id
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:563: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:563: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:561:17: note: declared here
template
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:563:63: error: definition or redeclaration of âvalueâ cannot name the global scope
_LIBCPP_CONSTEXPR typename enable_if<!is_floating_point<_A1>::value, bool>::type
~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [file2ed201aa62.o] Error 1
ERROR(s) during compilation: source code errors or compiler configuration errors!
Program source:
1:
2: // includes from the plugin
3: #include <R.h>
4: #include <Rdefines.h>
5: #include <R_ext/Error.h>
6:
7:
8: // user includes
9:
10:
11: // declarations
12: extern âCâ {
13: SEXP file2ed201aa62( SEXP x, SEXP y) ;
14: }
15:
16: // definition
17:
18: SEXP file2ed201aa62( SEXP x, SEXP y ){
19:
20: return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ;
21:
22: Rf_warning(âyour C++ program does not return anythingâ);
23: return R_NilValue ;
24: }
25:
26:
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! In file included from file2ed201aa62.cpp:3:
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:50:
/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;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:749:12: note: âfiniteâ declared here
extern int finite(double)
^
In file included from file2ed201aa62.cpp:3:
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:50:
/Library/Developer/CommandLineTools/usr/include/c++/v
Is there a .pkg at /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14. pkg
or perhaps with some minor difference in the numbers in the filename?