R Under development (unstable) (2025-01-22 r87618 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > 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) > > ## Set a default backend > backend <- Sys.getenv("RCPP_PARALLEL_BACKEND", unset = NA) > if (is.na(backend)) + Sys.setenv(RCPP_PARALLEL_BACKEND = "tinythread") > > writeLines(paste("Using backend:", Sys.getenv("RCPP_PARALLEL_BACKEND"))) Using 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) using C++ compiler: 'g++.exe (GCC) 13.3.0' make[1]: Entering directory '/d/temp/2025_01_23_18_55_16_15270/RtmpSOylzg/sourceCpp-x86_64-w64-mingw32-1.0.14/sourcecpp_165b45cda7f5d' g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I"D:/RCompile/CRANpkg/lib/4.5/Rcpp/include" -I"D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/include" -I"D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/tests/cpp" -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -DRCPP_PARALLEL_USE_TBB=1 -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c distance.cpp -o distance.o g++ -std=gnu++17 -shared -s -static-libgcc -o sourceCpp_2.dll tmp.def distance.o -LD:/RCompile/CRANincoming/R-devel/lib/RcppParallel/lib/x64 -ltbb -ltbbmalloc -Ld:/rtools44/x86_64-w64-mingw32.static.posix/lib/x64 -Ld:/rtools44/x86_64-w64-mingw32.static.posix/lib -LD:/RCompile/recent/R/bin/x64 -lR D:\rtools44\x86_64-w64-mingw32.static.posix\bin/ld.exe: distance.o:distance.cpp:(.text+0x1847): undefined reference to `RcppParallel::tbbParallelFor(unsigned long long, unsigned long long, RcppParallel::Worker&, unsigned long long, int)' collect2.exe: error: ld returned 1 exit status make[1]: Leaving directory '/d/temp/2025_01_23_18_55_16_15270/RtmpSOylzg/sourceCpp-x86_64-w64-mingw32-1.0.14/sourcecpp_165b45cda7f5d' make[1]: Entering directory '/d/temp/2025_01_23_18_55_16_15270/RtmpSOylzg/sourceCpp-x86_64-w64-mingw32-1.0.14/sourcecpp_165b45cda7f5d' make[1]: Leaving directory '/d/temp/2025_01_23_18_55_16_15270/RtmpSOylzg/sourceCpp-x86_64-w64-mingw32-1.0.14/sourcecpp_165b45cda7f5d' Error in sourceCpp(system.file("tests/cpp/distance.cpp", package = "RcppParallel")) : Error occurred building shared library. In addition: Warning messages: 1: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: Marsaglia-Multicarry has poor statistical properties 2: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: severe deviations from normality for Kinderman-Ramage + Marsaglia-Multicarry using C++ compiler: 'g++.exe (GCC) 13.3.0' make[1]: Entering directory '/d/temp/2025_01_23_18_55_16_15270/RtmpSOylzg/sourceCpp-x86_64-w64-mingw32-1.0.14/sourcecpp_165b4677397f' g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I"D:/RCompile/CRANpkg/lib/4.5/Rcpp/include" -I"D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/include" -I"D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/tests/cpp" -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -DRCPP_PARALLEL_USE_TBB=1 -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c innerproduct.cpp -o innerproduct.o In file included from D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/include/RcppParallel/TinyThread.h:7, from D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/include/RcppParallel.h:6, from innerproduct.cpp:18: D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/include/RcppParallel/Common.h: In instantiation of 'int RcppParallel::resolveValue(const char*, T, U) [with T = long long unsigned int; U = int]': D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/include/RcppParallel.h:60:28: required from 'void RcppParallel::parallelReduce(std::size_t, std::size_t, Reducer&, std::size_t, int) [with Reducer = InnerProduct; std::size_t = long long unsigned int]' innerproduct.cpp:57:18: required from here D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/include/RcppParallel/Common.h:16:23: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'int' [-Wsign-compare] 16 | if (requestedValue != defaultValue && requestedValue > 0) | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ g++ -std=gnu++17 -shared -s -static-libgcc -o sourceCpp_4.dll tmp.def innerproduct.o -LD:/RCompile/CRANincoming/R-devel/lib/RcppParallel/lib/x64 -ltbb -ltbbmalloc -Ld:/rtools44/x86_64-w64-mingw32.static.posix/lib/x64 -Ld:/rtools44/x86_64-w64-mingw32.static.posix/lib -LD:/RCompile/recent/R/bin/x64 -lR D:\rtools44\x86_64-w64-mingw32.static.posix\bin/ld.exe: innerproduct.o:innerproduct.c:(.text$_ZN12RcppParallel17tbbParallelReduceI12InnerProductEEvyyRT_yi[_ZN12RcppParallel17tbbParallelReduceI12InnerProductEEvyyRT_yi]+0x108): undefined reference to `RcppParallel::tbbParallelReduceImpl(unsigned long long, unsigned long long, RcppParallel::ReducerWrapper&, unsigned long long, int)' collect2.exe: error: ld returned 1 exit status make[1]: Leaving directory '/d/temp/2025_01_23_18_55_16_15270/RtmpSOylzg/sourceCpp-x86_64-w64-mingw32-1.0.14/sourcecpp_165b4677397f' make[1]: Entering directory '/d/temp/2025_01_23_18_55_16_15270/RtmpSOylzg/sourceCpp-x86_64-w64-mingw32-1.0.14/sourcecpp_165b4677397f' make[1]: Leaving directory '/d/temp/2025_01_23_18_55_16_15270/RtmpSOylzg/sourceCpp-x86_64-w64-mingw32-1.0.14/sourcecpp_165b4677397f' Error in sourceCpp(system.file("tests/cpp/innerproduct.cpp", package = "RcppParallel")) : Error occurred building shared library. In addition: Warning messages: 1: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: Marsaglia-Multicarry has poor statistical properties 2: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: severe deviations from normality for Kinderman-Ramage + Marsaglia-Multicarry using C++ compiler: 'g++.exe (GCC) 13.3.0' make[1]: Entering directory '/d/temp/2025_01_23_18_55_16_15270/RtmpSOylzg/sourceCpp-x86_64-w64-mingw32-1.0.14/sourcecpp_165b478e03cde' g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I"D:/RCompile/CRANpkg/lib/4.5/Rcpp/include" -I"D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/include" -I"D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/tests/cpp" -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -DRCPP_PARALLEL_USE_TBB=1 -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c sum.cpp -o sum.o In file included from D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/include/RcppParallel/TinyThread.h:7, from D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/include/RcppParallel.h:6, from sum.cpp:8: D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/include/RcppParallel/Common.h: In instantiation of 'int RcppParallel::resolveValue(const char*, T, U) [with T = long long unsigned int; U = int]': D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/include/RcppParallel.h:60:28: required from 'void RcppParallel::parallelReduce(std::size_t, std::size_t, Reducer&, std::size_t, int) [with Reducer = Sum; std::size_t = long long unsigned int]' sum.cpp:44:18: required from here D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/include/RcppParallel/Common.h:16:23: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'int' [-Wsign-compare] 16 | if (requestedValue != defaultValue && requestedValue > 0) | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ g++ -std=gnu++17 -shared -s -static-libgcc -o sourceCpp_6.dll tmp.def sum.o -LD:/RCompile/CRANincoming/R-devel/lib/RcppParallel/lib/x64 -ltbb -ltbbmalloc -Ld:/rtools44/x86_64-w64-mingw32.static.posix/lib/x64 -Ld:/rtools44/x86_64-w64-mingw32.static.posix/lib -LD:/RCompile/recent/R/bin/x64 -lR D:\rtools44\x86_64-w64-mingw32.static.posix\bin/ld.exe: sum.o:sum.cpp:(.text$_ZN12RcppParallel17tbbParallelReduceI3SumEEvyyRT_yi[_ZN12RcppParallel17tbbParallelReduceI3SumEEvyyRT_yi]+0x108): undefined reference to `RcppParallel::tbbParallelReduceImpl(unsigned long long, unsigned long long, RcppParallel::ReducerWrapper&, unsigned long long, int)' collect2.exe: error: ld returned 1 exit status make[1]: Leaving directory '/d/temp/2025_01_23_18_55_16_15270/RtmpSOylzg/sourceCpp-x86_64-w64-mingw32-1.0.14/sourcecpp_165b478e03cde' make[1]: Entering directory '/d/temp/2025_01_23_18_55_16_15270/RtmpSOylzg/sourceCpp-x86_64-w64-mingw32-1.0.14/sourcecpp_165b478e03cde' make[1]: Leaving directory '/d/temp/2025_01_23_18_55_16_15270/RtmpSOylzg/sourceCpp-x86_64-w64-mingw32-1.0.14/sourcecpp_165b478e03cde' Error in sourceCpp(system.file("tests/cpp/sum.cpp", package = "RcppParallel")) : Error occurred building shared library. In addition: Warning messages: 1: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: Marsaglia-Multicarry has poor statistical properties 2: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: severe deviations from normality for Kinderman-Ramage + Marsaglia-Multicarry using C++ compiler: 'g++.exe (GCC) 13.3.0' make[1]: Entering directory '/d/temp/2025_01_23_18_55_16_15270/RtmpSOylzg/sourceCpp-x86_64-w64-mingw32-1.0.14/sourcecpp_165b442726541' g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I"D:/RCompile/CRANpkg/lib/4.5/Rcpp/include" -I"D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/include" -I"D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/tests/cpp" -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -DRCPP_PARALLEL_USE_TBB=1 -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c transform.cpp -o transform.o g++ -std=gnu++17 -shared -s -static-libgcc -o sourceCpp_8.dll tmp.def transform.o -LD:/RCompile/CRANincoming/R-devel/lib/RcppParallel/lib/x64 -ltbb -ltbbmalloc -Ld:/rtools44/x86_64-w64-mingw32.static.posix/lib/x64 -Ld:/rtools44/x86_64-w64-mingw32.static.posix/lib -LD:/RCompile/recent/R/bin/x64 -lR D:\rtools44\x86_64-w64-mingw32.static.posix\bin/ld.exe: transform.o:transform.cpp:(.text+0x1096): undefined reference to `RcppParallel::tbbParallelFor(unsigned long long, unsigned long long, RcppParallel::Worker&, unsigned long long, int)' collect2.exe: error: ld returned 1 exit status make[1]: Leaving directory '/d/temp/2025_01_23_18_55_16_15270/RtmpSOylzg/sourceCpp-x86_64-w64-mingw32-1.0.14/sourcecpp_165b442726541' make[1]: Entering directory '/d/temp/2025_01_23_18_55_16_15270/RtmpSOylzg/sourceCpp-x86_64-w64-mingw32-1.0.14/sourcecpp_165b442726541' make[1]: Leaving directory '/d/temp/2025_01_23_18_55_16_15270/RtmpSOylzg/sourceCpp-x86_64-w64-mingw32-1.0.14/sourcecpp_165b442726541' Error in sourceCpp(system.file("tests/cpp/transform.cpp", package = "RcppParallel")) : Error occurred building shared library. In addition: Warning messages: 1: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: Marsaglia-Multicarry has poor statistical properties 2: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: severe deviations from normality for Kinderman-Ramage + Marsaglia-Multicarry Warning messages: 1: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: Marsaglia-Multicarry has poor statistical properties 2: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: severe deviations from normality for Kinderman-Ramage + Marsaglia-Multicarry > > ## Print results > printTextProtocol(tests) RUNIT TEST PROTOCOL -- Thu Jan 23 18:57:53 2025 *********************************************** 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:/RCompile/CRANincoming/R-devel/lib/RcppParallel/tests/runit.distance.R: Error while sourcing D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/tests/runit.distance.R : Error in sourceCpp(system.file("tests/cpp/distance.cpp", package = "RcppParallel")) : Error occurred building shared library. ERROR in D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/tests/runit.innerproduct.R: Error while sourcing D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/tests/runit.innerproduct.R : Error in sourceCpp(system.file("tests/cpp/innerproduct.cpp", package = "RcppParallel")) : Error occurred building shared library. ERROR in D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/tests/runit.sum.R: Error while sourcing D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/tests/runit.sum.R : Error in sourceCpp(system.file("tests/cpp/sum.cpp", package = "RcppParallel")) : Error occurred building shared library. ERROR in D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/tests/runit.transform.R: Error while sourcing D:/RCompile/CRANincoming/R-devel/lib/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:/RCompile/CRANincoming/R-devel/lib/RcppParallel/tests --------------------------- Test file: D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/tests/runit.distance.R D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/tests/runit.distance.R: ERROR !! Error while sourcing D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/tests/runit.distance.R : Error in sourceCpp(system.file("tests/cpp/distance.cpp", package = "RcppParallel")) : Error occurred building shared library. --------------------------- Test file: D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/tests/runit.innerproduct.R D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/tests/runit.innerproduct.R: ERROR !! Error while sourcing D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/tests/runit.innerproduct.R : Error in sourceCpp(system.file("tests/cpp/innerproduct.cpp", package = "RcppParallel")) : Error occurred building shared library. --------------------------- Test file: D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/tests/runit.sum.R D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/tests/runit.sum.R: ERROR !! Error while sourcing D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/tests/runit.sum.R : Error in sourceCpp(system.file("tests/cpp/sum.cpp", package = "RcppParallel")) : Error occurred building shared library. --------------------------- Test file: D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/tests/runit.transform.R D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/tests/runit.transform.R: ERROR !! Error while sourcing D:/RCompile/CRANincoming/R-devel/lib/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