Installation using install_github on Mac (Big Sur 11.5.2) fails with this error:
clang++ -I"/usr/local/Cellar/r/4.0.4/lib/R/include" -DNDEBUG -I'/usr/local/lib/R/4.0/site-library/Rcpp/include' -I'/usr/local/lib/R/4.0/site-library/spacefillr/include' -I'/usr/local/lib/R/4.0/site-library/RcppThread/include' -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/opt/xz/include -I/usr/local/include -I../src/glm -I../src/glm/gtc -fPIC -g -O2 -c filltri.cpp -o filltri.o
In file included from filltri.cpp:1:
In file included from ./filltri.h:7:
In file included from /usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread.h:9:
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/RMonitor.hpp:44:33: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
RMonitor(RMonitor const&) = delete;
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/RMonitor.hpp:46:22: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
RMonitor(RMonitor&&) = delete;
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/RMonitor.hpp:46:28: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
RMonitor(RMonitor&&) = delete;
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/RMonitor.hpp:48:44: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
RMonitor& operator=(RMonitor const&) = delete;
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/RMonitor.hpp:50:34: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
RMonitor& operator=(RMonitor &&) = delete;
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/RMonitor.hpp:50:40: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
RMonitor& operator=(RMonitor &&) = delete;
^
In file included from filltri.cpp:1:
In file included from ./filltri.h:7:
In file included from /usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread.h:11:
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/Thread.hpp:29:16: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions]
Thread() = default;
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/Thread.hpp:30:23: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
Thread(Thread&) = delete;
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/Thread.hpp:31:29: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
Thread(const Thread&) = delete;
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/Thread.hpp:32:18: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
Thread(Thread&& other)
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/Thread.hpp:37:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template<class Function, class... Args> explicit
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/Thread.hpp:38:20: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
Thread(Function&& f, Args&&... args)
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/Thread.hpp:38:30: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
Thread(Function&& f, Args&&... args)
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/Thread.hpp:49:14: error: expected ';' at end of declaration list
~Thread() noexcept
^
;
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/Thread.hpp:58:29: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
Thread& operator=(Thread&& other)
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/Thread.hpp:66:29: error: expected ';' at end of declaration list
void swap(Thread& other) noexcept
^
;
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/Thread.hpp:40:9: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto f0 = [=] () {
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/Thread.hpp:40:19: error: expected expression
auto f0 = [=] () {
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/Thread.hpp:44:9: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto task = std::packaged_task<void()>(f0);
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/Thread.hpp:46:9: error: use of undeclared identifier 'thread_'
thread_ = std::thread(std::move(task));
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/Thread.hpp:60:13: error: use of undeclared identifier 'thread_'
if (thread_.joinable())
^
In file included from filltri.cpp:1:
In file included from ./filltri.h:7:
In file included from /usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread.h:12:
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/Batch.hpp:33:22: error: expected '(' for function-style cast or type construction
return {Batch{0, 0}};
~~~~~^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/Batch.hpp:45:27: error: expected '(' for function-style cast or type construction
batches[k] = Batch{bBegin, bBegin + bSize};
~~~~~^
In file included from filltri.cpp:1:
In file included from ./filltri.h:7:
In file included from /usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread.h:13:
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:29:26: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
ThreadPool(ThreadPool&&) = delete;
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:29:32: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
ThreadPool(ThreadPool&&) = delete;
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:30:37: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
ThreadPool(const ThreadPool&) = delete;
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:34:18: error: expected ';' at end of declaration list
~ThreadPool() noexcept;
^
;
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:36:48: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
ThreadPool& operator=(const ThreadPool&) = delete;
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:37:37: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
ThreadPool& operator=(ThreadPool&& other) = delete;
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:37:49: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
ThreadPool& operator=(ThreadPool&& other) = delete;
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:39:28: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template<class F, class... Args>
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:40:16: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
void push(F&& f, Args&&... args);
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:40:26: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
void push(F&& f, Args&&... args);
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:42:28: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template<class F, class... Args>
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:43:5: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto pushReturn(F&& f, Args&&... args)
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:43:22: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
auto pushReturn(F&& f, Args&&... args)
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:43:32: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
auto pushReturn(F&& f, Args&&... args)
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:43:5: error: 'auto' not allowed in function return type
auto pushReturn(F&& f, Args&&... args)
^~~~
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:43:43: error: expected ';' at end of declaration list
auto pushReturn(F&& f, Args&&... args)
^
;
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:47:15: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
void map(F&& f, I &&items);
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:47:23: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
void map(F&& f, I &&items);
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:52:30: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
F&& f,
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:56:44: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
inline void parallelForEach(I& items, F&& f, size_t nBatches = 0);
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:64:37: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
void doJob(std::function<void()>&& job);
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:64:21: warning: 'function<void ()>' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations]
void doJob(std::function<void()>&& job);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:1444:27: note: 'function<void ()>' has been explicitly marked deprecated here
template<class _Fp> class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:1439:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION'
__attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type")))
^
In file included from filltri.cpp:1:
In file included from ./filltri.h:7:
In file included from /usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread.h:13:
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:76:36: warning: use of right-shift operator ('>>') in template argument will require parentheses in C++11 [-Wc++11-compat]
std::queue<std::function<void()>> jobs_; // the task que
^
( )
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:76:39: error: use of undeclared identifier 'jobs_'
std::queue<std::function<void()>> jobs_; // the task que
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:76:44: error: expected '>'
std::queue<std::function<void()>> jobs_; // the task que
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:76:29: note: to match this '<'
std::queue<std::function<void()>> jobs_; // the task que
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:76:44: error: expected a type
std::queue<std::function<void()>> jobs_; // the task que
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:76:44: error: expected '>'
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:76:15: note: to match this '<'
std::queue<std::function<void()>> jobs_; // the task que
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:82:12: error: function definition does not declare parameters
size_t numBusy_{0};
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:83:10: error: function definition does not declare parameters
bool stopped_{false};
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:89:5: error: delegating constructors are permitted only in C++11
ThreadPool(std::thread::hardware_concurrency())
^~~~~~~~~~
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/ThreadPool.hpp:103:34: error: expected function body after function declarator
inline ThreadPool::~ThreadPool() noexcept
^
In file included from filltri.cpp:1:
In file included from ./filltri.h:7:
In file included from /usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread.h:14:
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/parallelFor.hpp:43:59: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
inline void parallelFor(ptrdiff_t begin, ptrdiff_t size, F&& f,
^
/usr/local/lib/R/4.0/site-library/RcppThread/include/RcppThread/parallelFor.hpp:81:40: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
inline void parallelForEach(I& items, F&& f,
^
38 warnings and 18 errors generated.
make: *** [filltri.o] Error 1
ERROR: compilation failed for package ‘rayvertex’
Installation using
install_github
on Mac (Big Sur 11.5.2) fails with this error: