* using log directory 'd:/Rcompile/CRANpkg/local/4.6/psgp.Rcheck' * using R version 4.6.0 beta (2026-04-16 r89899 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * current time: 2026-04-17 07:04:38 UTC * checking for file 'psgp/DESCRIPTION' ... OK * this is package 'psgp' version '0.3-26' * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'psgp' can be installed ... ERROR Installation failed. See 'd:/Rcompile/CRANpkg/local/4.6/psgp.Rcheck/00install.out' for details. * DONE The installation logfile: * installing *source* package 'psgp' ... ** this is package 'psgp' version '0.3-26' ** package 'psgp' successfully unpacked and MD5 sums checked ** using staged installation ** libs using C compiler: 'gcc.exe (GCC) 14.3.0' using C++ compiler: 'g++.exe (GCC) 14.3.0' make[1]: Entering directory '/d/temp/2026_04_17_01_50_00_1722/RtmpchOd9k/R.INSTALL1820c7800246c/psgp/src' g++ -std=gnu++20 -I"D:/RCompile/recent/R/include" -DNDEBUG -DARMA_64BIT_WORD=1 -I'D:/RCompile/CRANpkg/lib/4.6/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.6/RcppArmadillo/include' -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include" -fopenmp -Wall -Wextra -pedantic -O2 -g -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c AnalyticLikelihood.cpp -o AnalyticLikelihood.o In file included from D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/RcppCommon.h:130, from D:/RCompile/CRANpkg/lib/4.6/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:26, from D:/RCompile/CRANpkg/lib/4.6/RcppArmadillo/include/RcppArmadillo.h:32, from psgp_common.h:10, from LikelihoodType.h:33, from AnalyticLikelihood.h:32, from AnalyticLikelihood.cpp:1: D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'const char* Rcpp::type2name(SEXP)': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'const char* (*)(SEXPREC*)'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:86:26: note: in expansion of macro 'GET_CALLABLE' 86 | static Fun fun = GET_CALLABLE("type2name"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'long unsigned int Rcpp::internal::enterRNGScope()': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'long unsigned int (*)()'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:93:30: note: in expansion of macro 'GET_CALLABLE' 93 | static Fun fun = GET_CALLABLE("enterRNGScope"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'long unsigned int Rcpp::internal::exitRNGScope()': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'long unsigned int (*)()'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:99:30: note: in expansion of macro 'GET_CALLABLE' 99 | static Fun fun = GET_CALLABLE("exitRNGScope"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'long unsigned int Rcpp::internal::beginSuspendRNGSynchronization()': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'long unsigned int (*)()'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:105:30: note: in expansion of macro 'GET_CALLABLE' 105 | static Fun fun = GET_CALLABLE("beginSuspendRNGSynchronization"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'long unsigned int Rcpp::internal::endSuspendRNGSynchronization()': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'long unsigned int (*)()'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:111:30: note: in expansion of macro 'GET_CALLABLE' 111 | static Fun fun = GET_CALLABLE("endSuspendRNGSynchronization"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'double Rcpp::mktime00(tm&)': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'double (*)(tm&)'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:132:26: note: in expansion of macro 'GET_CALLABLE' 132 | static Fun fun = GET_CALLABLE("mktime00"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'tm* Rcpp::gmtime_(const time_t*)': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'tm* (*)(const long long int*)'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:138:27: note: in expansion of macro 'GET_CALLABLE' 138 | static Fun fun = GET_CALLABLE("gmtime_"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'SEXPREC* Rcpp::Rcpp_precious_preserve(SEXP)': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'SEXPREC* (*)(SEXPREC*)'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:154:26: note: in expansion of macro 'GET_CALLABLE' 154 | static Fun fun = GET_CALLABLE("Rcpp_precious_preserve"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'void Rcpp::Rcpp_precious_remove(SEXP)': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'void (*)(SEXPREC*)'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:159:26: note: in expansion of macro 'GET_CALLABLE' 159 | static Fun fun = GET_CALLABLE("Rcpp_precious_remove"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'Rcpp::Rostream& Rcpp::Rcpp_cout_get()': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'Rcpp::Rostream& (*)()'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:165:26: note: in expansion of macro 'GET_CALLABLE' 165 | static Fun fun = GET_CALLABLE("Rcpp_cout_get"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'Rcpp::Rostream& Rcpp::Rcpp_cerr_get()': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'Rcpp::Rostream& (*)()'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:170:26: note: in expansion of macro 'GET_CALLABLE' 170 | static Fun fun = GET_CALLABLE("Rcpp_cerr_get"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'SEXPREC* rcpp_set_stack_trace(SEXP)': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'SEXPREC* (*)(SEXPREC*)'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:188:23: note: in expansion of macro 'GET_CALLABLE' 188 | static Fun fun = GET_CALLABLE("rcpp_set_stack_trace"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'std::string demangle(const std::string&)': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'std::__cxx11::basic_string (*)(const std::__cxx11::basic_string&)'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:194:22: note: in expansion of macro 'GET_CALLABLE' 194 | static Fun fun = GET_CALLABLE("demangle"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'const char* short_file_name(const char*)': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'const char* (*)(const char*)'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:200:22: note: in expansion of macro 'GET_CALLABLE' 200 | static Fun fun = GET_CALLABLE("short_file_name"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'SEXPREC* stack_trace(const char*, int)': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'SEXPREC* (*)(const char*, int)'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:206:22: note: in expansion of macro 'GET_CALLABLE' 206 | static Fun fun = GET_CALLABLE("stack_trace"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'SEXPREC* get_string_elt(SEXP, R_xlen_t)': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'SEXPREC* (*)(SEXPREC*, long long int)'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:212:22: note: in expansion of macro 'GET_CALLABLE' 212 | static Fun fun = GET_CALLABLE("get_string_elt"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'const char* char_get_string_elt(SEXP, R_xlen_t)': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'const char* (*)(SEXPREC*, long long int)'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:218:22: note: in expansion of macro 'GET_CALLABLE' 218 | static Fun fun = GET_CALLABLE("char_get_string_elt"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'void set_string_elt(SEXP, R_xlen_t, SEXP)': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'void (*)(SEXPREC*, long long int, SEXPREC*)'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:224:22: note: in expansion of macro 'GET_CALLABLE' 224 | static Fun fun = GET_CALLABLE("set_string_elt"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'void char_set_string_elt(SEXP, R_xlen_t, const char*)': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'void (*)(SEXPREC*, long long int, const char*)'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:230:22: note: in expansion of macro 'GET_CALLABLE' 230 | static Fun fun = GET_CALLABLE("char_set_string_elt"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'SEXPREC** get_string_ptr(SEXP)': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'SEXPREC** (*)(SEXPREC*)'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:236:22: note: in expansion of macro 'GET_CALLABLE' 236 | static Fun fun = GET_CALLABLE("get_string_ptr"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'SEXPREC* get_vector_elt(SEXP, R_xlen_t)': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'SEXPREC* (*)(SEXPREC*, long long int)'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:242:22: note: in expansion of macro 'GET_CALLABLE' 242 | static Fun fun = GET_CALLABLE("get_vector_elt"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'void set_vector_elt(SEXP, R_xlen_t, SEXP)': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'void (*)(SEXPREC*, long long int, SEXPREC*)'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:248:22: note: in expansion of macro 'GET_CALLABLE' 248 | static Fun fun = GET_CALLABLE("set_vector_elt"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'SEXPREC** get_vector_ptr(SEXP)': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'SEXPREC** (*)(SEXPREC*)'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:254:22: note: in expansion of macro 'GET_CALLABLE' 254 | static Fun fun = GET_CALLABLE("get_vector_ptr"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'const char* char_nocheck(SEXP)': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'const char* (*)(SEXPREC*)'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:260:22: note: in expansion of macro 'GET_CALLABLE' 260 | static Fun fun = GET_CALLABLE("char_nocheck"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'void* dataptr(SEXP)': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'void* (*)(SEXPREC*)'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:266:22: note: in expansion of macro 'GET_CALLABLE' 266 | static Fun fun = GET_CALLABLE("dataptr"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'void setCurrentScope(Rcpp::Module*)': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'void (*)(Rcpp::Module*)'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:278:22: note: in expansion of macro 'GET_CALLABLE' 278 | static Fun fun = GET_CALLABLE("setCurrentScope"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'int* get_cache(int)': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'int* (*)(int)'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:284:22: note: in expansion of macro 'GET_CALLABLE' 284 | static Fun fun = GET_CALLABLE("get_cache"); | ^~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h: In function 'int error_occured()': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:82:35: warning: cast between incompatible function types from 'DL_FUNC' {aka 'void* (*)()'} to 'Fun' {aka 'int (*)()'} [-Wcast-function-type] 82 | #define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/routines.h:296:22: note: in expansion of macro 'GET_CALLABLE' 296 | static Fun fun = GET_CALLABLE("error_occured"); | ^~~~~~~~~~~~ In file included from D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp.h:49, from D:/RCompile/CRANpkg/lib/4.6/RcppArmadillo/include/RcppArmadillo.h:35: D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/Function.h: In constructor 'Rcpp::Function_Impl::Function_Impl(const std::string&, const std::string&)': D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/Function.h:75:65: error: 'R_NamespaceRegistry' was not declared in this scope 75 | Shield env(R_getVarEx(Rf_install(ns.c_str()), R_NamespaceRegistry, FALSE, R_UnboundValue)); | ^~~~~~~~~~~~~~~~~~~ make[1]: *** [D:/RCompile/recent/R/etc/x64/Makeconf:304: AnalyticLikelihood.o] Error 1 make[1]: Leaving directory '/d/temp/2026_04_17_01_50_00_1722/RtmpchOd9k/R.INSTALL1820c7800246c/psgp/src' ERROR: compilation failed for package 'psgp' * removing 'd:/Rcompile/CRANpkg/lib/4.6/psgp' * restoring previous 'd:/Rcompile/CRANpkg/lib/4.6/psgp'