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+0x1e3): undefined reference to `tbb::internal::allocate_continuation_proxy::allocate(unsigned int) const'
  distance.o:distance.cpp:(.text+0x20c): undefined reference to `tbb::internal::allocate_child_proxy::allocate(unsigned int) const'
  distance.o:distance.cpp:(.text+0x6e0): undefined reference to `tbb::internal::allocate_continuation_proxy::allocate(unsigned int) const'
  distance.o:distance.cpp:(.text+0x709): undefined reference to `tbb::internal::allocate_child_proxy::allocate(unsigned int) const'
  distance.o:distance.cpp:(.text+0xb0f): undefined reference to `tbb::task_group_context::is_group_execution_cancelled() const'
  distance.o:distance.cpp:(.text+0x230e): undefined reference to `tbb::task_group_context::init()'
  distance.o:distance.cpp:(.text+0x2328): undefined reference to `tbb::internal::allocate_root_with_context_proxy::allocate(unsigned int) const'
  distance.o:distance.cpp:(.text+0x235c): undefined reference to `tbb::internal::get_initial_auto_partitioner_divisor()'
  distance.o:distance.cpp:(.text+0x238b): undefined reference to `tbb::task_group_context::~task_group_context()'
  distance.o:distance.cpp:(.text+0x265c): undefined reference to `tbb::task_group_context::~task_group_context()'
  distance.o:distance.cpp:(.text+0x290f): undefined reference to `tbb::internal::allocate_root_with_context_proxy::free(tbb::task&) const'
  distance.o:distance.cpp:(.rdata$_ZTVN3tbb10interface98internal9flag_taskE[__ZTVN3tbb10interface98internal9flag_taskE]+0x14): undefined reference to `tbb::task::note_affinity(unsigned short)'
  collect2.exe: error: ld returned 1 exit status
  make[1]: Entering directory `/cygdrive/d/temp/RtmpGa3kvH/sourceCpp-i386-w64-mingw32-1.0.4/sourcecpp_cd5c667f6ca5'
  d:/Compiler/gcc-4.9.3/mingw_32/bin/g++ -std=gnu++11  -I"D:/RCompile/recent/R/include" -DNDEBUG   -I"D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/Rcpp/include" -I"D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/RcppParallel/include" -I"D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/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_32/bin/g++ -std=gnu++11 -shared -s -static-libgcc -o sourceCpp_2.dll tmp.def distance.o -Ld:/Compiler/gcc-4.9.3/local330/lib/i386 -Ld:/Compiler/gcc-4.9.3/local330/lib -LD:/RCompile/recent/R/bin/i386 -lR
  make[1]: Leaving directory `/cygdrive/d/temp/RtmpGa3kvH/sourceCpp-i386-w64-mingw32-1.0.4/sourcecpp_cd5c667f6ca5'
  make[1]: Entering directory `/cygdrive/d/temp/RtmpGa3kvH/sourceCpp-i386-w64-mingw32-1.0.4/sourcecpp_cd5c667f6ca5'
  make[1]: Leaving directory `/cygdrive/d/temp/RtmpGa3kvH/sourceCpp-i386-w64-mingw32-1.0.4/sourcecpp_cd5c667f6ca5'
  Error in sourceCpp(system.file("tests/cpp/distance.cpp", package = "RcppParallel")) : 
    Error occurred building shared library.
  innerproduct.o:innerproduct.cpp:(.text+0x2b9): undefined reference to `tbb::internal::allocate_continuation_proxy::allocate(unsigned int) const'
  innerproduct.o:innerproduct.cpp:(.text+0x2d6): undefined reference to `tbb::internal::allocate_child_proxy::allocate(unsigned int) const'
  innerproduct.o:innerproduct.cpp:(.text+0x55b): undefined reference to `tbb::internal::allocate_continuation_proxy::allocate(unsigned int) const'
  innerproduct.o:innerproduct.cpp:(.text+0x578): undefined reference to `tbb::internal::allocate_child_proxy::allocate(unsigned int) const'
  innerproduct.o:innerproduct.cpp:(.text+0x722): undefined reference to `tbb::task_group_context::is_group_execution_cancelled() const'
  innerproduct.o:innerproduct.cpp:(.text+0x17e1): undefined reference to `tbb::task_group_context::init()'
  innerproduct.o:innerproduct.cpp:(.text+0x17f9): undefined reference to `tbb::internal::allocate_root_with_context_proxy::allocate(unsigned int) const'
  innerproduct.o:innerproduct.cpp:(.text+0x182d): undefined reference to `tbb::internal::get_initial_auto_partitioner_divisor()'
  innerproduct.o:innerproduct.cpp:(.text+0x1860): undefined reference to `tbb::task_group_context::~task_group_context()'
  innerproduct.o:innerproduct.cpp:(.text+0x1c26): undefined reference to `tbb::internal::allocate_root_with_context_proxy::free(tbb::task&) const'
  innerproduct.o:innerproduct.cpp:(.text+0x1c36): undefined reference to `tbb::task_group_context::~task_group_context()'
  innerproduct.o:innerproduct.cpp:(.rdata+0x78c): undefined reference to `tbb::task::note_affinity(unsigned short)'
  innerproduct.o:innerproduct.cpp:(.rdata$_ZTVN3tbb10interface98internal9flag_taskE[__ZTVN3tbb10interface98internal9flag_taskE]+0x14): undefined reference to `tbb::task::note_affinity(unsigned short)'
  collect2.exe: error: ld returned 1 exit status
  make[1]: Entering directory `/cygdrive/d/temp/RtmpGa3kvH/sourceCpp-i386-w64-mingw32-1.0.4/sourcecpp_cd5c6a0237f2'
  d:/Compiler/gcc-4.9.3/mingw_32/bin/g++ -std=gnu++11  -I"D:/RCompile/recent/R/include" -DNDEBUG   -I"D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/Rcpp/include" -I"D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/RcppParallel/include" -I"D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/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_32/bin/g++ -std=gnu++11 -shared -s -static-libgcc -o sourceCpp_4.dll tmp.def innerproduct.o -Ld:/Compiler/gcc-4.9.3/local330/lib/i386 -Ld:/Compiler/gcc-4.9.3/local330/lib -LD:/RCompile/recent/R/bin/i386 -lR
  make[1]: Leaving directory `/cygdrive/d/temp/RtmpGa3kvH/sourceCpp-i386-w64-mingw32-1.0.4/sourcecpp_cd5c6a0237f2'
  make[1]: Entering directory `/cygdrive/d/temp/RtmpGa3kvH/sourceCpp-i386-w64-mingw32-1.0.4/sourcecpp_cd5c6a0237f2'
  make[1]: Leaving directory `/cygdrive/d/temp/RtmpGa3kvH/sourceCpp-i386-w64-mingw32-1.0.4/sourcecpp_cd5c6a0237f2'
  Error in sourceCpp(system.file("tests/cpp/innerproduct.cpp", package = "RcppParallel")) : 
    Error occurred building shared library.
  sum.o:sum.cpp:(.text+0x2b9): undefined reference to `tbb::internal::allocate_continuation_proxy::allocate(unsigned int) const'
  sum.o:sum.cpp:(.text+0x2d6): undefined reference to `tbb::internal::allocate_child_proxy::allocate(unsigned int) const'
  sum.o:sum.cpp:(.text+0x533): undefined reference to `tbb::internal::allocate_continuation_proxy::allocate(unsigned int) const'
  sum.o:sum.cpp:(.text+0x550): undefined reference to `tbb::internal::allocate_child_proxy::allocate(unsigned int) const'
  sum.o:sum.cpp:(.text+0x6bc): undefined reference to `tbb::task_group_context::is_group_execution_cancelled() const'
  sum.o:sum.cpp:(.text+0x16b1): undefined reference to `tbb::task_group_context::init()'
  sum.o:sum.cpp:(.text+0x16c9): undefined reference to `tbb::internal::allocate_root_with_context_proxy::allocate(unsigned int) const'
  sum.o:sum.cpp:(.text+0x16fd): undefined reference to `tbb::internal::get_initial_auto_partitioner_divisor()'
  sum.o:sum.cpp:(.text+0x1730): undefined reference to `tbb::task_group_context::~task_group_context()'
  sum.o:sum.cpp:(.text+0x1a0a): undefined reference to `tbb::internal::allocate_root_with_context_proxy::free(tbb::task&) const'
  sum.o:sum.cpp:(.text+0x1a1a): undefined reference to `tbb::task_group_context::~task_group_context()'
  sum.o:sum.cpp:(.rdata+0x784): undefined reference to `tbb::task::note_affinity(unsigned short)'
  sum.o:sum.cpp:(.rdata$_ZTVN3tbb10interface98internal9flag_taskE[__ZTVN3tbb10interface98internal9flag_taskE]+0x14): undefined reference to `tbb::task::note_affinity(unsigned short)'
  collect2.exe: error: ld returned 1 exit status
  make[1]: Entering directory `/cygdrive/d/temp/RtmpGa3kvH/sourceCpp-i386-w64-mingw32-1.0.4/sourcecpp_cd5c69117646'
  d:/Compiler/gcc-4.9.3/mingw_32/bin/g++ -std=gnu++11  -I"D:/RCompile/recent/R/include" -DNDEBUG   -I"D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/Rcpp/include" -I"D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/RcppParallel/include" -I"D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/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_32/bin/g++ -std=gnu++11 -shared -s -static-libgcc -o sourceCpp_6.dll tmp.def sum.o -Ld:/Compiler/gcc-4.9.3/local330/lib/i386 -Ld:/Compiler/gcc-4.9.3/local330/lib -LD:/RCompile/recent/R/bin/i386 -lR
  make[1]: Leaving directory `/cygdrive/d/temp/RtmpGa3kvH/sourceCpp-i386-w64-mingw32-1.0.4/sourcecpp_cd5c69117646'
  make[1]: Entering directory `/cygdrive/d/temp/RtmpGa3kvH/sourceCpp-i386-w64-mingw32-1.0.4/sourcecpp_cd5c69117646'
  make[1]: Leaving directory `/cygdrive/d/temp/RtmpGa3kvH/sourceCpp-i386-w64-mingw32-1.0.4/sourcecpp_cd5c69117646'
  Error in sourceCpp(system.file("tests/cpp/sum.cpp", package = "RcppParallel")) : 
    Error occurred building shared library.
  transform.o:transform.cpp:(.text+0x1bf): undefined reference to `tbb::internal::allocate_continuation_proxy::allocate(unsigned int) const'
  transform.o:transform.cpp:(.text+0x1e8): undefined reference to `tbb::internal::allocate_child_proxy::allocate(unsigned int) const'
  transform.o:transform.cpp:(.text+0x41a): undefined reference to `tbb::internal::allocate_continuation_proxy::allocate(unsigned int) const'
  transform.o:transform.cpp:(.text+0x443): undefined reference to `tbb::internal::allocate_child_proxy::allocate(unsigned int) const'
  transform.o:transform.cpp:(.text+0x4cf): undefined reference to `tbb::task_group_context::is_group_execution_cancelled() const'
  transform.o:transform.cpp:(.text+0x1aae): undefined reference to `tbb::task_group_context::init()'
  transform.o:transform.cpp:(.text+0x1ac8): undefined reference to `tbb::internal::allocate_root_with_context_proxy::allocate(unsigned int) const'
  transform.o:transform.cpp:(.text+0x1afc): undefined reference to `tbb::internal::get_initial_auto_partitioner_divisor()'
  transform.o:transform.cpp:(.text+0x1b2b): undefined reference to `tbb::task_group_context::~task_group_context()'
  transform.o:transform.cpp:(.text+0x1dfc): undefined reference to `tbb::task_group_context::~task_group_context()'
  transform.o:transform.cpp:(.text+0x20b1): undefined reference to `tbb::internal::allocate_root_with_context_proxy::free(tbb::task&) const'
  transform.o:transform.cpp:(.rdata$_ZTVN3tbb10interface98internal9flag_taskE[__ZTVN3tbb10interface98internal9flag_taskE]+0x14): undefined reference to `tbb::task::note_affinity(unsigned short)'
  collect2.exe: error: ld returned 1 exit status
  make[1]: Entering directory `/cygdrive/d/temp/RtmpGa3kvH/sourceCpp-i386-w64-mingw32-1.0.4/sourcecpp_cd5c222dd1b'
  d:/Compiler/gcc-4.9.3/mingw_32/bin/g++ -std=gnu++11  -I"D:/RCompile/recent/R/include" -DNDEBUG   -I"D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/Rcpp/include" -I"D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/RcppParallel/include" -I"D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/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_32/bin/g++ -std=gnu++11 -shared -s -static-libgcc -o sourceCpp_8.dll tmp.def transform.o -Ld:/Compiler/gcc-4.9.3/local330/lib/i386 -Ld:/Compiler/gcc-4.9.3/local330/lib -LD:/RCompile/recent/R/bin/i386 -lR
  make[1]: Leaving directory `/cygdrive/d/temp/RtmpGa3kvH/sourceCpp-i386-w64-mingw32-1.0.4/sourcecpp_cd5c222dd1b'
  make[1]: Entering directory `/cygdrive/d/temp/RtmpGa3kvH/sourceCpp-i386-w64-mingw32-1.0.4/sourcecpp_cd5c222dd1b'
  make[1]: Leaving directory `/cygdrive/d/temp/RtmpGa3kvH/sourceCpp-i386-w64-mingw32-1.0.4/sourcecpp_cd5c222dd1b'
  Error in sourceCpp(system.file("tests/cpp/transform.cpp", package = "RcppParallel")) : 
    Error occurred building shared library.
  > 
  > ## Print results
  > printTextProtocol(tests)
  RUNIT TEST PROTOCOL -- Mon Apr 06 16:14:01 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/RtmpOskEFD/RLIBS_1390c35935dcf/RcppParallel/tests/runit.distance.R: Error while sourcing  D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/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/RtmpOskEFD/RLIBS_1390c35935dcf/RcppParallel/tests/runit.innerproduct.R: Error while sourcing  D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/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/RtmpOskEFD/RLIBS_1390c35935dcf/RcppParallel/tests/runit.sum.R: Error while sourcing  D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/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/RtmpOskEFD/RLIBS_1390c35935dcf/RcppParallel/tests/runit.transform.R: Error while sourcing  D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/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/RtmpOskEFD/RLIBS_1390c35935dcf/RcppParallel/tests 
  --------------------------- 
  Test file: D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/RcppParallel/tests/runit.distance.R 
  D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/RcppParallel/tests/runit.distance.R: ERROR !! 
  Error while sourcing  D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/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/RtmpOskEFD/RLIBS_1390c35935dcf/RcppParallel/tests/runit.innerproduct.R 
  D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/RcppParallel/tests/runit.innerproduct.R: ERROR !! 
  Error while sourcing  D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/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/RtmpOskEFD/RLIBS_1390c35935dcf/RcppParallel/tests/runit.sum.R 
  D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/RcppParallel/tests/runit.sum.R: ERROR !! 
  Error while sourcing  D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/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/RtmpOskEFD/RLIBS_1390c35935dcf/RcppParallel/tests/runit.transform.R 
  D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/RcppParallel/tests/runit.transform.R: ERROR !! 
  Error while sourcing  D:/temp/RtmpOskEFD/RLIBS_1390c35935dcf/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