Running 'doRUnit.R' [59s]
Running the tests in 'tests/doRUnit.R' failed.
Complete output:
  > stopifnot(require(RUnit, quietly = TRUE))
  > stopifnot(require(Rcpp, quietly = TRUE))
  > stopifnot(require(RcppParallel, quietly = TRUE))
  
  Attaching package: 'RcppParallel'
  
  The following object is masked from 'package:Rcpp':
  
      LdFlags
  
  > 
  > ## Set a seed to make the test deterministic
  > set.seed(42)
  > 
  > # Don't use TBB
  > Sys.setenv(RCPP_PARALLEL_BACKEND = "tinythread")
  > 
  > ## Define tests
  > suite <- defineTestSuite(
  +    name = "RcppParallel Unit Tests",
  +    dirs = system.file("tests", package = "RcppParallel")
  + )
  > 
  > ## Based on practice in Rcpp to avoid some test failures
  > Sys.setenv("R_TESTS" = "")
  > 
  > ## Run tests
  > tests <- runTestSuite(suite)
  distance.o:distance.cpp:(.text+0x26f): undefined reference to `tbb::internal::allocate_continuation_proxy::allocate(unsigned long long) const'
  distance.o:distance.cpp:(.text+0x29a): undefined reference to `tbb::internal::allocate_child_proxy::allocate(unsigned long long) const'
  distance.o:distance.cpp:(.text+0x734): undefined reference to `tbb::internal::allocate_continuation_proxy::allocate(unsigned long long) const'
  distance.o:distance.cpp:(.text+0x767): undefined reference to `tbb::internal::allocate_child_proxy::allocate(unsigned long long) const'
  distance.o:distance.cpp:(.text+0x817): undefined reference to `tbb::task_group_context::is_group_execution_cancelled() const'
  distance.o:distance.cpp:(.text+0x24b8): undefined reference to `tbb::task_group_context::init()'
  distance.o:distance.cpp:(.text+0x24cf): undefined reference to `tbb::internal::allocate_root_with_context_proxy::allocate(unsigned long long) const'
  distance.o:distance.cpp:(.text+0x2505): undefined reference to `tbb::internal::get_initial_auto_partitioner_divisor()'
  distance.o:distance.cpp:(.text+0x2534): undefined reference to `tbb::task_group_context::~task_group_context()'
  distance.o:distance.cpp:(.text+0x2760): undefined reference to `tbb::task_group_context::~task_group_context()'
  distance.o:distance.cpp:(.text+0x2a0d): undefined reference to `tbb::internal::allocate_root_with_context_proxy::free(tbb::task&) const'
  distance.o:distance.cpp:(.rdata$_ZTVN3tbb10interface98internal9flag_taskE[_ZTVN3tbb10interface98internal9flag_taskE]+0x28): undefined reference to `tbb::task::note_affinity(unsigned short)'
  collect2.exe: error: ld returned 1 exit status
  make[1]: Entering directory `/cygdrive/d/temp/RtmpeGr7Z0/sourceCpp-x86_64-w64-mingw32-1.0.4/sourcecpp_125e017bce24'
  d:/Compiler/gcc-4.9.3/mingw_64/bin/g++ -std=gnu++11 -m64 -I"D:/RCompile/recent/R/include" -DNDEBUG   -I"D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/Rcpp/include" -I"D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/include" -I"D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests/cpp"   -I"d:/Compiler/gcc-4.9.3/local330/include"   -DRCPP_PARALLEL_USE_TBB=1   -pedantic -O2 -Wall  -mtune=core2 -c distance.cpp -o distance.o
  d:/Compiler/gcc-4.9.3/mingw_64/bin/g++ -std=gnu++11 -m64 -shared -s -static-libgcc -o sourceCpp_2.dll tmp.def distance.o -Ld:/Compiler/gcc-4.9.3/local330/lib/x64 -Ld:/Compiler/gcc-4.9.3/local330/lib -LD:/RCompile/recent/R/bin/x64 -lR
  make[1]: Leaving directory `/cygdrive/d/temp/RtmpeGr7Z0/sourceCpp-x86_64-w64-mingw32-1.0.4/sourcecpp_125e017bce24'
  make[1]: Entering directory `/cygdrive/d/temp/RtmpeGr7Z0/sourceCpp-x86_64-w64-mingw32-1.0.4/sourcecpp_125e017bce24'
  make[1]: Leaving directory `/cygdrive/d/temp/RtmpeGr7Z0/sourceCpp-x86_64-w64-mingw32-1.0.4/sourcecpp_125e017bce24'
  Error in sourceCpp(system.file("tests/cpp/distance.cpp", package = "RcppParallel")) : 
    Error occurred building shared library.
  innerproduct.o:innerproduct.cpp:(.text+0x323): undefined reference to `tbb::internal::allocate_continuation_proxy::allocate(unsigned long long) const'
  innerproduct.o:innerproduct.cpp:(.text+0x33f): undefined reference to `tbb::internal::allocate_child_proxy::allocate(unsigned long long) const'
  innerproduct.o:innerproduct.cpp:(.text+0x5f8): undefined reference to `tbb::internal::allocate_continuation_proxy::allocate(unsigned long long) const'
  innerproduct.o:innerproduct.cpp:(.text+0x614): undefined reference to `tbb::internal::allocate_child_proxy::allocate(unsigned long long) const'
  innerproduct.o:innerproduct.cpp:(.text+0x7a8): undefined reference to `tbb::task_group_context::is_group_execution_cancelled() const'
  innerproduct.o:innerproduct.cpp:(.text+0x17f8): undefined reference to `tbb::task_group_context::init()'
  innerproduct.o:innerproduct.cpp:(.text+0x180f): undefined reference to `tbb::internal::allocate_root_with_context_proxy::allocate(unsigned long long) const'
  innerproduct.o:innerproduct.cpp:(.text+0x1842): undefined reference to `tbb::internal::get_initial_auto_partitioner_divisor()'
  innerproduct.o:innerproduct.cpp:(.text+0x1875): undefined reference to `tbb::task_group_context::~task_group_context()'
  innerproduct.o:innerproduct.cpp:(.text+0x1bba): undefined reference to `tbb::internal::allocate_root_with_context_proxy::free(tbb::task&) const'
  innerproduct.o:innerproduct.cpp:(.text+0x1bc7): undefined reference to `tbb::task_group_context::~task_group_context()'
  innerproduct.o:innerproduct.cpp:(.rdata+0x7c8): undefined reference to `tbb::task::note_affinity(unsigned short)'
  innerproduct.o:innerproduct.cpp:(.rdata$_ZTVN3tbb10interface98internal9flag_taskE[_ZTVN3tbb10interface98internal9flag_taskE]+0x28): undefined reference to `tbb::task::note_affinity(unsigned short)'
  collect2.exe: error: ld returned 1 exit status
  make[1]: Entering directory `/cygdrive/d/temp/RtmpeGr7Z0/sourceCpp-x86_64-w64-mingw32-1.0.4/sourcecpp_125e038c53e19'
  d:/Compiler/gcc-4.9.3/mingw_64/bin/g++ -std=gnu++11 -m64 -I"D:/RCompile/recent/R/include" -DNDEBUG   -I"D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/Rcpp/include" -I"D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/include" -I"D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests/cpp"   -I"d:/Compiler/gcc-4.9.3/local330/include"   -DRCPP_PARALLEL_USE_TBB=1   -pedantic -O2 -Wall  -mtune=core2 -c innerproduct.cpp -o innerproduct.o
  d:/Compiler/gcc-4.9.3/mingw_64/bin/g++ -std=gnu++11 -m64 -shared -s -static-libgcc -o sourceCpp_4.dll tmp.def innerproduct.o -Ld:/Compiler/gcc-4.9.3/local330/lib/x64 -Ld:/Compiler/gcc-4.9.3/local330/lib -LD:/RCompile/recent/R/bin/x64 -lR
  make[1]: Leaving directory `/cygdrive/d/temp/RtmpeGr7Z0/sourceCpp-x86_64-w64-mingw32-1.0.4/sourcecpp_125e038c53e19'
  make[1]: Entering directory `/cygdrive/d/temp/RtmpeGr7Z0/sourceCpp-x86_64-w64-mingw32-1.0.4/sourcecpp_125e038c53e19'
  make[1]: Leaving directory `/cygdrive/d/temp/RtmpeGr7Z0/sourceCpp-x86_64-w64-mingw32-1.0.4/sourcecpp_125e038c53e19'
  Error in sourceCpp(system.file("tests/cpp/innerproduct.cpp", package = "RcppParallel")) : 
    Error occurred building shared library.
  sum.o:sum.cpp:(.text+0x323): undefined reference to `tbb::internal::allocate_continuation_proxy::allocate(unsigned long long) const'
  sum.o:sum.cpp:(.text+0x33f): undefined reference to `tbb::internal::allocate_child_proxy::allocate(unsigned long long) const'
  sum.o:sum.cpp:(.text+0x5d8): undefined reference to `tbb::internal::allocate_continuation_proxy::allocate(unsigned long long) const'
  sum.o:sum.cpp:(.text+0x5f4): undefined reference to `tbb::internal::allocate_child_proxy::allocate(unsigned long long) const'
  sum.o:sum.cpp:(.text+0x777): undefined reference to `tbb::task_group_context::is_group_execution_cancelled() const'
  sum.o:sum.cpp:(.text+0x16d8): undefined reference to `tbb::task_group_context::init()'
  sum.o:sum.cpp:(.text+0x16ef): undefined reference to `tbb::internal::allocate_root_with_context_proxy::allocate(unsigned long long) const'
  sum.o:sum.cpp:(.text+0x1722): undefined reference to `tbb::internal::get_initial_auto_partitioner_divisor()'
  sum.o:sum.cpp:(.text+0x1755): undefined reference to `tbb::task_group_context::~task_group_context()'
  sum.o:sum.cpp:(.text+0x19dd): undefined reference to `tbb::internal::allocate_root_with_context_proxy::free(tbb::task&) const'
  sum.o:sum.cpp:(.text+0x19ea): undefined reference to `tbb::task_group_context::~task_group_context()'
  sum.o:sum.cpp:(.rdata+0x7a8): undefined reference to `tbb::task::note_affinity(unsigned short)'
  sum.o:sum.cpp:(.rdata$_ZTVN3tbb10interface98internal9flag_taskE[_ZTVN3tbb10interface98internal9flag_taskE]+0x28): undefined reference to `tbb::task::note_affinity(unsigned short)'
  collect2.exe: error: ld returned 1 exit status
  make[1]: Entering directory `/cygdrive/d/temp/RtmpeGr7Z0/sourceCpp-x86_64-w64-mingw32-1.0.4/sourcecpp_125e073c219e7'
  d:/Compiler/gcc-4.9.3/mingw_64/bin/g++ -std=gnu++11 -m64 -I"D:/RCompile/recent/R/include" -DNDEBUG   -I"D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/Rcpp/include" -I"D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/include" -I"D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests/cpp"   -I"d:/Compiler/gcc-4.9.3/local330/include"   -DRCPP_PARALLEL_USE_TBB=1   -pedantic -O2 -Wall  -mtune=core2 -c sum.cpp -o sum.o
  d:/Compiler/gcc-4.9.3/mingw_64/bin/g++ -std=gnu++11 -m64 -shared -s -static-libgcc -o sourceCpp_6.dll tmp.def sum.o -Ld:/Compiler/gcc-4.9.3/local330/lib/x64 -Ld:/Compiler/gcc-4.9.3/local330/lib -LD:/RCompile/recent/R/bin/x64 -lR
  make[1]: Leaving directory `/cygdrive/d/temp/RtmpeGr7Z0/sourceCpp-x86_64-w64-mingw32-1.0.4/sourcecpp_125e073c219e7'
  make[1]: Entering directory `/cygdrive/d/temp/RtmpeGr7Z0/sourceCpp-x86_64-w64-mingw32-1.0.4/sourcecpp_125e073c219e7'
  make[1]: Leaving directory `/cygdrive/d/temp/RtmpeGr7Z0/sourceCpp-x86_64-w64-mingw32-1.0.4/sourcecpp_125e073c219e7'
  Error in sourceCpp(system.file("tests/cpp/sum.cpp", package = "RcppParallel")) : 
    Error occurred building shared library.
  transform.o:transform.cpp:(.text+0x215): undefined reference to `tbb::internal::allocate_continuation_proxy::allocate(unsigned long long) const'
  transform.o:transform.cpp:(.text+0x239): undefined reference to `tbb::internal::allocate_child_proxy::allocate(unsigned long long) const'
  transform.o:transform.cpp:(.text+0x45a): undefined reference to `tbb::internal::allocate_continuation_proxy::allocate(unsigned long long) const'
  transform.o:transform.cpp:(.text+0x485): undefined reference to `tbb::internal::allocate_child_proxy::allocate(unsigned long long) const'
  transform.o:transform.cpp:(.text+0x515): undefined reference to `tbb::task_group_context::is_group_execution_cancelled() const'
  transform.o:transform.cpp:(.text+0x1b58): undefined reference to `tbb::task_group_context::init()'
  transform.o:transform.cpp:(.text+0x1b6f): undefined reference to `tbb::internal::allocate_root_with_context_proxy::allocate(unsigned long long) const'
  transform.o:transform.cpp:(.text+0x1ba5): undefined reference to `tbb::internal::get_initial_auto_partitioner_divisor()'
  transform.o:transform.cpp:(.text+0x1bd4): undefined reference to `tbb::task_group_context::~task_group_context()'
  transform.o:transform.cpp:(.text+0x1e00): undefined reference to `tbb::task_group_context::~task_group_context()'
  transform.o:transform.cpp:(.text+0x20a5): undefined reference to `tbb::internal::allocate_root_with_context_proxy::free(tbb::task&) const'
  transform.o:transform.cpp:(.rdata$_ZTVN3tbb10interface98internal9flag_taskE[_ZTVN3tbb10interface98internal9flag_taskE]+0x28): undefined reference to `tbb::task::note_affinity(unsigned short)'
  collect2.exe: error: ld returned 1 exit status
  make[1]: Entering directory `/cygdrive/d/temp/RtmpeGr7Z0/sourceCpp-x86_64-w64-mingw32-1.0.4/sourcecpp_125e0364d5c59'
  d:/Compiler/gcc-4.9.3/mingw_64/bin/g++ -std=gnu++11 -m64 -I"D:/RCompile/recent/R/include" -DNDEBUG   -I"D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/Rcpp/include" -I"D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/include" -I"D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests/cpp"   -I"d:/Compiler/gcc-4.9.3/local330/include"   -DRCPP_PARALLEL_USE_TBB=1   -pedantic -O2 -Wall  -mtune=core2 -c transform.cpp -o transform.o
  d:/Compiler/gcc-4.9.3/mingw_64/bin/g++ -std=gnu++11 -m64 -shared -s -static-libgcc -o sourceCpp_8.dll tmp.def transform.o -Ld:/Compiler/gcc-4.9.3/local330/lib/x64 -Ld:/Compiler/gcc-4.9.3/local330/lib -LD:/RCompile/recent/R/bin/x64 -lR
  make[1]: Leaving directory `/cygdrive/d/temp/RtmpeGr7Z0/sourceCpp-x86_64-w64-mingw32-1.0.4/sourcecpp_125e0364d5c59'
  make[1]: Entering directory `/cygdrive/d/temp/RtmpeGr7Z0/sourceCpp-x86_64-w64-mingw32-1.0.4/sourcecpp_125e0364d5c59'
  make[1]: Leaving directory `/cygdrive/d/temp/RtmpeGr7Z0/sourceCpp-x86_64-w64-mingw32-1.0.4/sourcecpp_125e0364d5c59'
  Error in sourceCpp(system.file("tests/cpp/transform.cpp", package = "RcppParallel")) : 
    Error occurred building shared library.
  > 
  > ## Print results
  > printTextProtocol(tests)
  RUNIT TEST PROTOCOL -- Sat Apr 04 08:53:27 2020 
  *********************************************** 
  Number of test functions: 4 
  Number of errors: 4 
  Number of failures: 0 
  
   
  1 Test Suite : 
  RcppParallel Unit Tests - 4 test functions, 4 errors, 0 failures
  ERROR in D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests/runit.distance.R: Error while sourcing  D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests/runit.distance.R : Error in sourceCpp(system.file("tests/cpp/distance.cpp", package = "RcppParallel")) : 
    Error occurred building shared library.
  ERROR in D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests/runit.innerproduct.R: Error while sourcing  D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests/runit.innerproduct.R : Error in sourceCpp(system.file("tests/cpp/innerproduct.cpp", package = "RcppParallel")) : 
    Error occurred building shared library.
  ERROR in D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests/runit.sum.R: Error while sourcing  D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests/runit.sum.R : Error in sourceCpp(system.file("tests/cpp/sum.cpp", package = "RcppParallel")) : 
    Error occurred building shared library.
  ERROR in D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests/runit.transform.R: Error while sourcing  D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests/runit.transform.R : Error in sourceCpp(system.file("tests/cpp/transform.cpp", package = "RcppParallel")) : 
    Error occurred building shared library.
  
  
  
  Details 
  *************************** 
  Test Suite: RcppParallel Unit Tests 
  Test function regexp: ^test.+ 
  Test file regexp: ^runit.+\.[rR]$ 
  Involved directory: 
  D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests 
  --------------------------- 
  Test file: D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests/runit.distance.R 
  D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests/runit.distance.R: ERROR !! 
  Error while sourcing  D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests/runit.distance.R : Error in sourceCpp(system.file("tests/cpp/distance.cpp", package = "RcppParallel")) : 
    Error occurred building shared library.
  --------------------------- 
  Test file: D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests/runit.innerproduct.R 
  D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests/runit.innerproduct.R: ERROR !! 
  Error while sourcing  D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests/runit.innerproduct.R : Error in sourceCpp(system.file("tests/cpp/innerproduct.cpp", package = "RcppParallel")) : 
    Error occurred building shared library.
  --------------------------- 
  Test file: D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests/runit.sum.R 
  D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests/runit.sum.R: ERROR !! 
  Error while sourcing  D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests/runit.sum.R : Error in sourceCpp(system.file("tests/cpp/sum.cpp", package = "RcppParallel")) : 
    Error occurred building shared library.
  --------------------------- 
  Test file: D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests/runit.transform.R 
  D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests/runit.transform.R: ERROR !! 
  Error while sourcing  D:/temp/RtmpCg9UC7/RLIBS_10ff42c7754ed/RcppParallel/tests/runit.transform.R : Error in sourceCpp(system.file("tests/cpp/transform.cpp", package = "RcppParallel")) : 
    Error occurred building shared library.
  > 
  > ## Return success or failure to R CMD CHECK
  > if (getErrors(tests)$nFail > 0) {
  +    stop("TEST FAILED!")
  + }
  > 
  > if (getErrors(tests)$nErr > 0) {
  +    stop("TEST HAD ERRORS!")
  + }
  Error: TEST HAD ERRORS!
  Execution halted