* using log directory 'd:/Rcompile/CRANpkg/local/4.5/rtrend.Rcheck' * using R Under development (unstable) (2024-12-21 r87453 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'rtrend/DESCRIPTION' ... OK * this is package 'rtrend' version '0.1.5' * package encoding: UTF-8 * 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 'rtrend' can be installed ... ERROR Installation failed. See 'd:/Rcompile/CRANpkg/local/4.5/rtrend.Rcheck/00install.out' for details. * DONE The installation logfile: * installing *source* package 'rtrend' ... ** package 'rtrend' successfully unpacked and MD5 sums checked ** using staged installation ** libs using C++ compiler: 'g++.exe (GCC) 13.3.0' make[1]: Entering directory '/d/temp/2024_12_22_01_50_00_26287/RtmpempYBU/R.INSTALL10e4867231218/rtrend/src' g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -fopenmp -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c RcppExports.cpp -o RcppExports.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -fopenmp -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c mktrend.cpp -o mktrend.o In file included from D:/RCompile/CRANpkg/lib/4.5/Rcpp/include/RcppCommon.h:76, from D:/RCompile/CRANpkg/lib/4.5/Rcpp/include/Rcpp.h:27, from mktrend.cpp:1: D:/RCompile/recent/R/include/Rmath.h:347:25: error: ambiguating new declaration of 'int Rf_sign(double)' 347 | #define sign Rf_sign | ^~~~~~~ mktrend.cpp:35:5: note: in expansion of macro 'sign' 35 | int sign(double x) { | ^~~~ D:/RCompile/recent/R/include/Rmath.h:601:9: note: old declaration 'double Rf_sign(double)' 601 | double Rf_sign(double); | ^~~~~~~ make[1]: *** [D:/RCompile/recent/R/etc/x64/Makeconf:297: mktrend.o] Error 1 make[1]: Leaving directory '/d/temp/2024_12_22_01_50_00_26287/RtmpempYBU/R.INSTALL10e4867231218/rtrend/src' ERROR: compilation failed for package 'rtrend' * removing 'd:/Rcompile/CRANpkg/lib/4.5/rtrend' * restoring previous 'd:/Rcompile/CRANpkg/lib/4.5/rtrend'