Here is the output from Terminal:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3350k 100 3350k 0 0 1682k 0 0:00:01 0:00:01 --:–:-- 1682k
- installing to library ‘/Users/valterciocca/Library/R/arm64/4.4/library’
- installing source package ‘Rcpp’ …
** package ‘Rcpp’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘Apple clang version 15.0.0 (clang-1500.3.9.4)’
using SDK: ‘MacOSX14.4.sdk’
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I…/inst/include/ -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c api.cpp -o api.o
In file included from api.cpp:26:
In file included from …/inst/include/Rcpp.h:27:
In file included from …/inst/include/RcppCommon.h:30:
In file included from …/inst/include/Rcpp/r/headers.h:62:
In file included from …/inst/include/Rcpp/platform/compiler.h:100:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:321:5: error: tried including <math.h> but didn’t find libc++'s <math.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.
error tried including <math.h> but didn’t find libc++'s <math.h> header. \
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:588:17: error: expected unqualified-id
return std::isnan(__lcpp_x);
^
/usr/local/include/math.h:166:5: note: expanded from macro ‘isnan’
( sizeof(x) == sizeof(float) ? __inline_isnanf((float)(x))
^
In file included from api.cpp:26:
In file included from …/inst/include/Rcpp.h:27:
In file included from …/inst/include/RcppCommon.h:30:
In file included from …/inst/include/Rcpp/r/headers.h:62:
In file included from …/inst/include/Rcpp/platform/compiler.h:100:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:608:17: error: expected unqualified-id
return std::isinf(__lcpp_x);
^
/usr/local/include/math.h:161:5: note: expanded from macro ‘isinf’
( sizeof(x) == sizeof(float) ? __inline_isinff((float)(x))
^
In file included from api.cpp:26:
In file included from …/inst/include/Rcpp.h:27:
In file included from …/inst/include/RcppCommon.h:30:
In file included from …/inst/include/Rcpp/r/headers.h:62:
In file included from …/inst/include/Rcpp/platform/compiler.h:100:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:724:15: error: no template named ‘numeric_limits’
return -numeric_limits<_Tp>::infinity();
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:728:14: error: no template named ‘numeric_limits’
return numeric_limits<_Tp>::infinity();
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:731:14: error: no template named ‘numeric_limits’
return numeric_limits<_Tp>::quiet_NaN();
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:735:19: error: no template named ‘numeric_limits’
while (__x >= numeric_limits<_Tp>::radix) {
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:736:14: error: no template named ‘numeric_limits’
__x /= numeric_limits<_Tp>::radix;
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:759:14: error: no template named ‘numeric_limits’
return numeric_limits<_Tp>::quiet_NaN();
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:763:16: error: no template named ‘numeric_limits’
__mult = numeric_limits<_Tp>::radix;
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:768:17: error: no template named ‘numeric_limits’
__mult /= numeric_limits<_Tp>::radix;
^
In file included from api.cpp:26:
In file included from …/inst/include/Rcpp.h:27:
In file included from …/inst/include/RcppCommon.h:30:
In file included from …/inst/include/Rcpp/r/headers.h:62:
In file included from …/inst/include/Rcpp/platform/compiler.h:100:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:834:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:425:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/add_pointer.h:17:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/remove_reference.h:13:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstddef:46:5: error: tried including <stddef.h> but didn’t find libc++'s <stddef.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.
error tried including <stddef.h> but didn’t find libc++'s <stddef.h> header. \
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstddef:59:9: error: no member named ‘nullptr_t’ in the global namespace
using ::nullptr_t;
^~~~~~~
In file included from api.cpp:26:
In file included from …/inst/include/Rcpp.h:27:
In file included from …/inst/include/RcppCommon.h:30:
In file included from …/inst/include/Rcpp/r/headers.h:62:
In file included from …/inst/include/Rcpp/platform/compiler.h:100:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:834:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:456:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_compound.h:14:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_fundamental.h:14:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_null_pointer.h:26:28: error: use of undeclared identifier ‘nullptr_t’; did you mean ‘nullptr’?
struct __is_nullptr_t_impl<nullptr_t> : public true_type {};
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_null_pointer.h:26:28: error: template argument for template type parameter must be a type
struct __is_nullptr_t_impl<nullptr_t> : public true_type {};
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_null_pointer.h:23:17: note: template parameter is declared here
template
^
In file included from api.cpp:26:
In file included from …/inst/include/Rcpp.h:27:
In file included from …/inst/include/RcppCommon.h:30:
In file included from …/inst/include/Rcpp/r/headers.h:62:
In file included from …/inst/include/Rcpp/platform/compiler.h:100:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:834:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:508:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_trivially_copyable.h:14:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdint:149:5: error: tried including <stdint.h> but didn’t find libc++'s <stdint.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.
error tried including <stdint.h> but didn’t find libc++'s <stdint.h> header. \
^
In file included from api.cpp:26:
In file included from …/inst/include/Rcpp.h:27:
In file included from …/inst/include/RcppCommon.h:30:
In file included from …/inst/include/Rcpp/r/headers.h:62:
In file included from …/inst/include/Rcpp/platform/compiler.h:153:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_map:592:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__hash_table:18:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/hash.h:28:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstring:66:5: error: tried including <string.h> but didn’t find libc++'s <string.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.
error tried including <string.h> but didn’t find libc++'s <string.h> header. \
^
In file included from api.cpp:26:
In file included from …/inst/include/Rcpp.h:27:
In file included from …/inst/include/RcppCommon.h:30:
In file included from …/inst/include/Rcpp/r/headers.h:62:
In file included from …/inst/include/Rcpp/platform/compiler.h:153:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_map:592:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__hash_table:18:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/hash.h:646:34: error: use of undeclared identifier ‘nullptr_t’; did you mean ‘nullptr’?
struct _LIBCPP_TEMPLATE_VIS hash<nullptr_t>
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/hash.h:646:34: error: template argument for template type parameter must be a type
struct _LIBCPP_TEMPLATE_VIS hash<nullptr_t>
^~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/hash.h:638:17: note: template parameter is declared here
template
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [api.o] Error 1
ERROR: compilation failed for package ‘Rcpp’
- removing ‘/Users/valterciocca/Library/R/arm64/4.4/library/Rcpp’
- restoring previous ‘/Users/valterciocca/Library/R/arm64/4.4/library/Rcpp’
I do not have any other toolchain installed as far as I can tell.
Thank you