* installing *source* package 'torch' ... ** using staged installation ** libs using C++ compiler: 'g++.exe (GCC) 13.2.0' *** Skip building lantern. *** Renaming init "D:/RCompile/recent/R/bin/x64/Rscript" "../tools/renameinit.R" g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c RcppExports.cpp -o RcppExports.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c amp.cpp -o amp.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c autograd.cpp -o autograd.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c backends.cpp -o backends.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c codegen.cpp -o codegen.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c contrib.cpp -o contrib.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c cuda.cpp -o cuda.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c device.cpp -o device.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c dimname_list.cpp -o dimname_list.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c dtype.cpp -o dtype.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c gen-namespace.cpp -o gen-namespace.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c generator.cpp -o generator.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c indexing.cpp -o indexing.o indexing.cpp: In function 'void list2env(Rcpp::Environment, Rcpp::List)': indexing.cpp:46:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 46 | for (auto i = 0; i < nms.size(); i++) { | ~~^~~~~~~~~~~~ indexing.cpp: In function 'std::vector > evaluate_slices(std::vector >, Rcpp::List)': indexing.cpp:61:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 61 | for (auto i = 0; i < quosures.size(); i++) { | ~~^~~~~~~~~~~~~~~~~ indexing.cpp: In function 'std::vector slices_to_index(std::vector >, bool)': indexing.cpp:286:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 286 | for (auto i = 0; i < slices.size(); i++) { | ~~^~~~~~~~~~~~~~~ indexing.cpp:296:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 296 | bool last_dim = i >= (slices.size() - 1); | ~~^~~~~~~~~~~~~~~~~~~~~~ g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c ivalue.cpp -o ivalue.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c jit-compile.cpp -o jit-compile.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c jit-execute.cpp -o jit-execute.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c lantern.cpp -o lantern.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c layout.cpp -o layout.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c memory_format.cpp -o memory_format.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c nn_utils_rnn.cpp -o nn_utils_rnn.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c qscheme.cpp -o qscheme.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c quantization.cpp -o quantization.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c reduction.cpp -o reduction.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c save.cpp -o save.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c scalar.cpp -o scalar.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c script_module.cpp -o script_module.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c stack.cpp -o stack.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c storage.cpp -o storage.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c tensor.cpp -o tensor.o tensor.cpp: In function 'void cpp_torch_tensor_print(torch::Tensor, int)': tensor.cpp:33:19: warning: comparison of integer expressions of different signedness: 'std::vector >::size_type' {aka 'long long unsigned int'} and 'int' [-Wsign-compare] 33 | if (cont.size() > n && n > 1) { | ~~~~~~~~~~~~^~~ tensor.cpp:39:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 39 | for (int i = 0; i < cont.size(); i++) { | ~~^~~~~~~~~~~~~ tensor.cpp:42:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 42 | if (i != (cont.size() - 1)) result += "\n"; | ~~^~~~~~~~~~~~~~~~~~~~ tensor.cpp:44:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 44 | if (i == (cont.size() - 2) && truncated) | ~~^~~~~~~~~~~~~~~~~~~~ tensor.cpp: In function 'std::vector stride_from_dim(std::vector)': tensor.cpp:82:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 82 | for (int i = 1; i < x.size(); i++) { | ~~^~~~~~~~~~ g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c tensor_list.cpp -o tensor_list.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c torch_api.cpp -o torch_api.o torch_api.cpp: In function 'XPtrTorchTensorOptions from_sexp_tensor_options(SEXP)': torch_api.cpp:369:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 369 | for (auto i = 0; i < names.size(); ++i) { | ~~^~~~~~~~~~~~~~ torch_api.cpp: In function 'XPtrTorchDimnameList from_sexp_dimname_list(SEXP)': torch_api.cpp:611:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 611 | for (int i = 0; i < names.size(); i++) { | ~~^~~~~~~~~~~~~~ torch_api.cpp: In function 'XPtrTorchvector_string from_sexp_vector_string(SEXP)': torch_api.cpp:776:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 776 | for (int i = 0; i < strings.size(); i++) { | ~~^~~~~~~~~~~~~~~~ torch_api.cpp: In function 'SEXPREC* operator_sexp_named_tuple_helper(const XPtrTorchNamedTupleHelper*)': torch_api.cpp:1293:21: warning: comparison of integer expressions of different signedness: 'std::vector >::size_type' {aka 'long long unsigned int'} and 'R_xlen_t' {aka 'long long int'} [-Wsign-compare] 1293 | if (names_.size() != elements_.size()) return elements_; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ torch_api.cpp: In function 'XPtrTorchNamedTupleHelper from_sexp_named_tuple_helper(SEXP)': torch_api.cpp:1308:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 1308 | for (int i = 0; i < names.size(); i++) { | ~~^~~~~~~~~~~~~~ torch_api.cpp: In function 'XPtrTorchIntArrayRef from_sexp_int_array_ref(SEXP, bool, bool)': torch_api.cpp:1446:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 1446 | for (int i = 0; i < vec.size(); i++) { | ~~^~~~~~~~~~~~ torch_api.cpp: In function 'XPtrTorchOptionalIntArrayRef from_sexp_optional_int_array_ref(SEXP, bool)': torch_api.cpp:1524:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 1524 | for (int i = 0; i < data.size(); i++) { | ~~^~~~~~~~~~~~~ g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c torch_exports.cpp -o torch_exports.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c trace.cpp -o trace.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c utils.cpp -o utils.o utils.cpp: In function 'Rcpp::List transpose2(Rcpp::List)': utils.cpp:77:24: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long long unsigned int'} and 'const long long int' [-Wsign-compare] 77 | for (size_t j = 0; j < size; j++) { | ~~^~~~~~ g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c variable_list.cpp -o variable_list.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c xptr.cpp -o xptr.o g++ -std=gnu++17 -shared -s -static-libgcc -o torch.dll tmp.def RcppExports.o amp.o autograd.o backends.o codegen.o contrib.o cuda.o device.o dimname_list.o dtype.o gen-namespace.o generator.o indexing.o ivalue.o jit-compile.o jit-execute.o lantern.o layout.o memory_format.o nn_utils_rnn.o qscheme.o quantization.o reduction.o save.o scalar.o script_module.o stack.o storage.o tensor.o tensor_list.o torch_api.o torch_exports.o trace.o utils.o variable_list.o xptr.o -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 *** Renaming torch lib to torchpkg "D:/RCompile/recent/R/bin/x64/Rscript" "../tools/renamelib.R" *** Renaming init "D:/RCompile/recent/R/bin/x64/Rscript" "../tools/renameinit.R" g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/ -DRCPP_NO_UNWIND_PROTECT -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c RcppExports.cpp -o RcppExports.o installing to d:/RCompile/CRANincoming/R-devel/lib/00LOCK-torch/00new/torch/libs/x64 ** R ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices *** copying figures ** building package indices ** installing vignettes ** testing if installed package can be loaded from temporary location ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (torch)