Error: Error: <callr_remote_error: Failed to build source package 'dirtree.elections'>
in process 5304
-->
Failed to build source package 'dirtree.elections', stdout + stderr:
OE> * installing *source* package 'dirtree.elections' ...
OE> staged installation is only possible with locking
OE> ** using non-staged installation
OE> ** libs
OE> g++ -std=gnu++17 -I"C:/R/include" -DNDEBUG -I'D:/a/_temp/Library/Rcpp/include' -I'D:/a/_temp/Library/RcppThread/include' -I'D:/a/_temp/Library/testthat/include' -I"c:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -Wall -pedantic -Wall -pedantic -c RcppExports.cpp -o RcppExports.o
OE> g++ -std=gnu++17 -I"C:/R/include" -DNDEBUG -I'D:/a/_temp/Library/Rcpp/include' -I'D:/a/_temp/Library/RcppThread/include' -I'D:/a/_temp/Library/testthat/include' -I"c:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -Wall -pedantic -Wall -pedantic -c RcppIRV.cpp -o RcppIRV.o
OE> g++ -std=gnu++17 -I"C:/R/include" -DNDEBUG -I'D:/a/_temp/Library/Rcpp/include' -I'D:/a/_temp/Library/RcppThread/include' -I'D:/a/_temp/Library/testthat/include' -I"c:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -Wall -pedantic -Wall -pedantic -c distributions.cpp -o distributions.o
OE> g++ -std=gnu++17 -I"C:/R/include" -DNDEBUG -I'D:/a/_temp/Library/Rcpp/include' -I'D:/a/_temp/Library/RcppThread/include' -I'D:/a/_temp/Library/testthat/include' -I"c:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -Wall -pedantic -Wall -pedantic -c irv_ballot.cpp -o irv_ballot.o
OE> g++ -std=gnu++17 -I"C:/R/include" -DNDEBUG -I'D:/a/_temp/Library/Rcpp/include' -I'D:/a/_temp/Library/RcppThread/include' -I'D:/a/_temp/Library/testthat/include' -I"c:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -Wall -pedantic -Wall -pedantic -c irv_node.cpp -o irv_node.o
OE> irv_node.cpp: In member function 'void IRVParameters::calculateDepthFactors()':
OE> irv_node.cpp:21:15: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
OE> if (depth >= minDepth)
OE> ~~~~~~^~~~~~~~~~~
OE> g++ -std=gnu++17 -I"C:/R/include" -DNDEBUG -I'D:/a/_temp/Library/Rcpp/include' -I'D:/a/_temp/Library/RcppThread/include' -I'D:/a/_temp/Library/testthat/include' -I"c:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -Wall -pedantic -Wall -pedantic -c test-distributions.cpp -o test-distributions.o
OE> g++ -std=gnu++17 -I"C:/R/include" -DNDEBUG -I'D:/a/_temp/Library/Rcpp/include' -I'D:/a/_temp/Library/RcppThread/include' -I'D:/a/_temp/Library/testthat/include' -I"c:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -Wall -pedantic -Wall -pedantic -c test-pirvdirichlettree.cpp -o test-pirvdirichlettree.o
OE> g++ -std=gnu++17 -I"C:/R/include" -DNDEBUG -I'D:/a/_temp/Library/Rcpp/include' -I'D:/a/_temp/Library/RcppThread/include' -I'D:/a/_temp/Library/testthat/include' -I"c:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -Wall -pedantic -Wall -pedantic -c test-runner.cpp -o test-runner.o
OE> In file included from D:/a/_temp/Library/testthat/include/testthat.h:1,
OE> from test-runner.cpp:7:
OE> D:/a/_temp/Library/testthat/include/testthat/testthat.h: In function 'std::ostream& Catch::cout()':
OE> D:/a/_temp/Library/testthat/include/testthat/testthat.h:145:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes]
OE> }
OE> ^
OE> D:/a/_temp/Library/testthat/include/testthat/testthat.h: In function 'std::ostream& Catch::cerr()':
OE> D:/a/_temp/Library/testthat/include/testthat/testthat.h:152:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes]
OE> }
OE> ^
OE> g++ -shared -s -static-libgcc -o dirtree.elections.dll tmp.def RcppExports.o RcppIRV.o distributions.o irv_ballot.o irv_node.o test-distributions.o test-pirvdirichlettree.o test-runner.o -Lc:/rtools42/x86_64-w64-mingw32.static.posix/lib/x64 -Lc:/rtools42/x86_64-w64-mingw32.static.posix/lib -LC:/R/bin/x64 -lR
OE> installing to C:/Users/RUNNER~1/AppData/Local/Temp/RtmpSWJs5d/pkg-lib14b8388495/dirtree.elections/libs/x64
OE> ** R
OE> ** byte-compile and prepare package for lazy loading
OE> ** help
OE> *** installing help indices
OE> ** building package indices
OE> ** testing if installed package can be loaded
OE> ERROR: loading failed
OE> * removing 'C:/Users/RUNNER~1/AppData/Local/Temp/RtmpSWJs5d/pkg-lib14b8388495/dirtree.elections'
Stack trace:
12. (function (...) ...
13. base:::withCallingHandlers(cli_message = function(msg) { ...
14. get("pkg_install_do_plan", asNamespace("pak"))(...)
15. pkgdepends::install_package_plan(plan = plan, lib = lib, num_workers = num_ ...
16. base:::withCallingHandlers({ ...
17. pkgdepends:::handle_events(state, events)
18. pkgdepends:::handle_event(state, i)
19. pkgdepends:::stop_task(state, worker)
20. pkgdepends:::stop_task_build(state, worker)
21. base:::throw(new_pkg_build_error("Failed to build source package {pkg}", ...
22. base:::signalCondition(cond)
23. (function (e) ...
24. base:::stop(e)
25. (function (e) ...
x Failed to build source package 'dirtree.elections'
Execution halted
Error: Process completed with exit code 1.
Note that there are three warnings being displayed, and only one of them is in my source.