如何在编译R中解决软件包构建问题

时间:2019-08-24 15:20:56

标签: r compilation

我的问题是关于如何在Windows上编译R。

我尝试使用Rtools 3.5在Windows 10 x64上通过命令make distribution编译R 3.6.1 OpenBLAS 0.3.7,但是由于错误,进程停止了:

D:/Programmes/Rtools/mingw_64/bin/gcc -std=gnu99  -shared  -o ../../../modules/x64/internet.dll internet.o libcurl.o nanoftp.o nanohttp.o sockconn.o Rhttpd.o Rsock.o sock.o dllversion.o internet.def -L../../../bin/x64 -lR -lRgraphapp -lwininet -lws2_32
making Lapack.d from Lapack.c
D:/Programmes/Rtools/mingw_64/bin/gfortran  -O3 -march=native -pipe -ffloat-store -c dlamch.f -o dlamch.o
D:/Programmes/Rtools/mingw_64/bin/gfortran  -O3 -march=native -pipe  -c dlapack.f -o dlapack.o
D:/Programmes/Rtools/mingw_64/bin/gfortran  -O3 -march=native -pipe  -c cmplx.f -o cmplx.o
D:/Programmes/Rtools/mingw_64/bin/gcc -std=gnu99  -I../../include -DHAVE_CONFIG_H  -O3 -Wall -pedantic -march=native -pipe   -c init_win.c -o init_win.o
D:/Programmes/Rtools/mingw_64/bin/windres    -i Rlapackrc.rc -o Rlapackrc.o
D:/Programmes/Rtools/mingw_64/bin/gcc -std=gnu99  -shared -s -o ../../../bin/x64/Rlapack.dll dlamch.o dlapack.o cmplx.o init_win.o Rlapackrc.o -L../../../bin/x64 -lR -lRblas -lgfortran -lquadmath
D:/Programmes/Rtools/mingw_64/bin/gcc -std=gnu99  -I../../include -DHAVE_CONFIG_H  -O3 -Wall -pedantic -march=native -pipe   -c Lapack.c -o Lapack.o
D:/Programmes/Rtools/mingw_64/bin/windres    -i dllversion.rc -o dllversion.o
D:/Programmes/Rtools/mingw_64/bin/gcc -std=gnu99  -shared -s  -o lapack.dll lapack.def Lapack.o dllversion.o -L../../../bin/x64 -lRlapack -lRblas -lR
cp lapack.dll ../../../modules/x64/lapack.dll
building package 'base'
sh: line 7: /tmp/R7108: No such file or directory
mv: cannot stat '/tmp/R7108': No such file or directory
make[4]: *** [../../../share/make/basepkg.mk:28: mkR1] Error 1
make[3]: *** [Makefile.win:21: all] Error 2
make[2]: *** [Makefile.win:32: R] Error 1
make[1]: *** [Makefile:18: all] Error 2
make: *** [Makefile:396: distribution] Error 2

我尝试按照此处的说明重新运行该过程:https://www.avrahamadler.com/r-tips/build-openblas-for-windows-r64/ 但是问题还在重复。唯一的区别是“ / tmp / R”每次都不同之后的数字。

也许有人告诉我该如何解决?预先谢谢你。

0 个答案:

没有答案