I have created an rcpp packages which uses rcppeigen. Installing and using it on linux nad macos works just fine but when i try to install it on windows it gets stuck on: ** testing if installed package can be loaded from temporary location
With no error messages or anything
(devtools::install_github("Avriox/BISAM", verbose = TRUE, force = TRUE)
Downloading GitHub repo Avriox/BISAM@HEAD
── R CMD build ──────────────────────────────────────────────────────────────────────────────────────
✔  checking for file 'C:\Users\lkonrad\AppData\Local\Temp\RtmpQ7LKkr\remotes2ae85217126\Avriox-BISAM-516adb1/DESCRIPTION' (656ms)
─  preparing 'BISAM': (392ms)
✔  checking DESCRIPTION meta-information ...
─  cleaning src
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
   Omitted 'LazyData' from DESCRIPTION
─  building 'BISAM_0.0.1.tar.gz'
   
Installing package into ‘C:/SpecProF/R-Libs’
(as ‘lib’ is unspecified)
system (cmd0): C:/PROGRA~1/R/R-44~1.1/bin/x64/R CMD INSTALL
* installing *source* package 'BISAM' ...
** using staged installation
** libs
using C++ compiler: 'G__~1.EXE (GCC) 13.2.0'
using C++17
g++  -std=gnu++17 -I"C:/PROGRA~1/R/R-44~1.1/include" -DNDEBUG  -I'C:/SpecProF/R-Libs/Rcpp/include' -I'C:/SpecProF/R-Libs/RcppEigen/include'   -I"C:/SpecProF/Rtools/x86_64-w64-mingw32.static.posix/include"  -fopenmp -w -O3 -march=native   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c RcppExports.cpp -o RcppExports.o
g++  -std=gnu++17 -I"C:/PROGRA~1/R/R-44~1.1/include" -DNDEBUG  -I'C:/SpecProF/R-Libs/Rcpp/include' -I'C:/SpecProF/R-Libs/RcppEigen/include'   -I"C:/SpecProF/Rtools/x86_64-w64-mingw32.static.posix/include"  -fopenmp -w -O3 -march=native   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c b_ism.cpp -o b_ism.o
g++  -std=gnu++17 -I"C:/PROGRA~1/R/R-44~1.1/include" -DNDEBUG  -I'C:/SpecProF/R-Libs/Rcpp/include' -I'C:/SpecProF/R-Libs/RcppEigen/include'   -I"C:/SpecProF/Rtools/x86_64-w64-mingw32.static.posix/include"  -fopenmp -w -O3 -march=native   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c main.cpp -o main.o
g++  -std=gnu++17 -I"C:/PROGRA~1/R/R-44~1.1/include" -DNDEBUG  -I'C:/SpecProF/R-Libs/Rcpp/include' -I'C:/SpecProF/R-Libs/RcppEigen/include'   -I"C:/SpecProF/Rtools/x86_64-w64-mingw32.static.posix/include"  -fopenmp -w -O3 -march=native   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c model_selection/ms_base.cpp -o model_selection/ms_base.o
g++  -std=gnu++17 -I"C:/PROGRA~1/R/R-44~1.1/include" -DNDEBUG  -I'C:/SpecProF/R-Libs/Rcpp/include' -I'C:/SpecProF/R-Libs/RcppEigen/include'   -I"C:/SpecProF/Rtools/x86_64-w64-mingw32.static.posix/include"  -fopenmp -w -O3 -march=native   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c model_selection/ms_no_optimization.cpp -o model_selection/ms_no_optimization.o
g++  -std=gnu++17 -I"C:/PROGRA~1/R/R-44~1.1/include" -DNDEBUG  -I'C:/SpecProF/R-Libs/Rcpp/include' -I'C:/SpecProF/R-Libs/RcppEigen/include'   -I"C:/SpecProF/Rtools/x86_64-w64-mingw32.static.posix/include"  -fopenmp -w -O3 -march=native   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c model_selection/ms_parallel_z.cpp -o model_selection/ms_parallel_z.o
g++  -std=gnu++17 -I"C:/PROGRA~1/R/R-44~1.1/include" -DNDEBUG  -I'C:/SpecProF/R-Libs/Rcpp/include' -I'C:/SpecProF/R-Libs/RcppEigen/include'   -I"C:/SpecProF/Rtools/x86_64-w64-mingw32.static.posix/include"  -fopenmp -w -O3 -march=native   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c model_selection/ms_split_z.cpp -o model_selection/ms_split_z.o
g++  -std=gnu++17 -I"C:/PROGRA~1/R/R-44~1.1/include" -DNDEBUG  -I'C:/SpecProF/R-Libs/Rcpp/include' -I'C:/SpecProF/R-Libs/RcppEigen/include'   -I"C:/SpecProF/Rtools/x86_64-w64-mingw32.static.posix/include"  -fopenmp -w -O3 -march=native   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c model_selection/sel2selnew_optimization.cpp -o model_selection/sel2selnew_optimization.o
g++  -std=gnu++17 -I"C:/PROGRA~1/R/R-44~1.1/include" -DNDEBUG  -I'C:/SpecProF/R-Libs/Rcpp/include' -I'C:/SpecProF/R-Libs/RcppEigen/include'   -I"C:/SpecProF/Rtools/x86_64-w64-mingw32.static.posix/include"  -fopenmp -w -O3 -march=native   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c mombf/Polynomial.cpp -o mombf/Polynomial.o
g++  -std=gnu++17 -I"C:/PROGRA~1/R/R-44~1.1/include" -DNDEBUG  -I'C:/SpecProF/R-Libs/Rcpp/include' -I'C:/SpecProF/R-Libs/RcppEigen/include'   -I"C:/SpecProF/Rtools/x86_64-w64-mingw32.static.posix/include"  -fopenmp -w -O3 -march=native   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c mombf/PolynomialRootFinder.cpp -o mombf/PolynomialRootFinder.o
g++  -std=gnu++17 -I"C:/PROGRA~1/R/R-44~1.1/include" -DNDEBUG  -I'C:/SpecProF/R-Libs/Rcpp/include' -I'C:/SpecProF/R-Libs/RcppEigen/include'   -I"C:/SpecProF/Rtools/x86_64-w64-mingw32.static.posix/include"  -fopenmp -w -O3 -march=native   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c mombf/crossprodmat.cpp -o mombf/crossprodmat.o
g++  -std=gnu++17 -I"C:/PROGRA~1/R/R-44~1.1/include" -DNDEBUG  -I'C:/SpecProF/R-Libs/Rcpp/include' -I'C:/SpecProF/R-Libs/RcppEigen/include'   -I"C:/SpecProF/Rtools/x86_64-w64-mingw32.static.posix/include"  -fopenmp -w -O3 -march=native   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c mombf/cstat.cpp -o mombf/cstat.o
g++  -std=gnu++17 -I"C:/PROGRA~1/R/R-44~1.1/include" -DNDEBUG  -I'C:/SpecProF/R-Libs/Rcpp/include' -I'C:/SpecProF/R-Libs/RcppEigen/include'   -I"C:/SpecProF/Rtools/x86_64-w64-mingw32.static.posix/include"  -fopenmp -w -O3 -march=native   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c mombf/modelSel_regression.cpp -o mombf/modelSel_regression.o
g++  -std=gnu++17 -I"C:/PROGRA~1/R/R-44~1.1/include" -DNDEBUG  -I'C:/SpecProF/R-Libs/Rcpp/include' -I'C:/SpecProF/R-Libs/RcppEigen/include'   -I"C:/SpecProF/Rtools/x86_64-w64-mingw32.static.posix/include"  -fopenmp -w -O3 -march=native   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c mombf/modselIntegrals.cpp -o mombf/modselIntegrals.o
g++ -shared -s -static-libgcc -o BISAM.dll tmp.def RcppExports.o b_ism.o main.o model_selection/ms_base.o model_selection/ms_no_optimization.o model_selection/ms_parallel_z.o model_selection/ms_split_z.o model_selection/sel2selnew_optimization.o mombf/Polynomial.o mombf/PolynomialRootFinder.o mombf/crossprodmat.o mombf/cstat.o mombf/modelSel_regression.o mombf/modselIntegrals.o -fopenmp -LC:/PROGRA~1/R/R-44~1.1/bin/x64 -lRlapack -LC:/PROGRA~1/R/R-44~1.1/bin/x64 -lRblas -lgfortran -lm -lquadmath -LC:/PROGRA~1/R/R-44~1.1/bin/x64 -lRblas -lRlapack -LC:/SpecProF/Rtools/x86_64-w64-mingw32.static.posix/lib/x64 -LC:/SpecProF/Rtools/x86_64-w64-mingw32.static.posix/lib -LC:/PROGRA~1/R/R-44~1.1/bin/x64 -lR
installing to C:/SpecProF/R-Libs/00LOCK-BISAM/00new/BISAM/libs/x64
** R
** byte-compile and prepare package for lazy loading
** help
No man pages found in package  'BISAM' 
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location)

Here is my makevars.win
CXX_STD = CXX17

PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS) -w -O3 -march=native
PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

# Explicitly link against R's BLAS and LAPACK
PKG_LIBS += -L"$(R_HOME)/bin/x64" -lRblas -lRlapack

# Use R's native compilers
CXX = $(BINPREF)g++ $(LTO)
CC = $(BINPREF)gcc $(LTO)

# Include all .cpp files in src/ and its subdirectories
SOURCES = $(wildcard *.cpp */*.cpp)

# Generate object file names
OBJECTS = $(SOURCES:.cpp=.o)

# Rule to build the shared library
$(SHLIB): $(OBJECTS)

Why does it get stuck and how can i fix it