I have strange problem as usual while building R from source.
I used these recommendations from cran: https://cran.r-project.org/bin/windows/base/howto-R-4.3.html
So, I patched Makefile.win and MkRules.rules:
MkRules.rules
USE_ATLAS ?= YES
ATLAS_PATH ?= /c/Repository/AMD/WinLibs
EOPTS ?= -O3 -march=native -mtune=native -mfpmath=both -mfma
Makefile.win
-L../../../$(IMPDIR) -lR -L"$(ATLAS_PATH)" -fopenmp -lamdblas -lamdlapack
I got an error:
gcc -shared -O2 -Wall -O3 -march=native -mtune=native -mfpmath=both -mfma -s -static-libgcc -o tools.dll tmp.def text.o init.o Rmd5.o md5.o signals.o install.o getfmts.o http.o gramLatex.o gramRd.o pdscan.o ../../../gnuwin32/dllversion.o -LC:/rtools43/x86_64-w64-mingw32.static.posix/lib/x64 -LC:/rtools43/x86_64-w64-mingw32.static.posix/lib -L../../../../bin/x64 -lR
installing 'sysdata.rda'
make[4]: *** [../../../share/make/basepkg.mk:151: sysdata] Error 127
make[3]: *** [Makefile.win:22: all] Error 2
make[2]: *** [Makefile.win:32: R] Error 1
make[1]: *** [Makefile:18: all] Error 2
make: *** [Makefile:399: distribution] Error 2
MSYS2 always run in administrator mode.
Without any patches R building fails with the same reason.
Could anyone explain me the problem?
System: Windows 11 Pro, AMD Ryzen 5950X.
RTools is rtools43-5863-5818.exe