Skip to content

complie fail from source! #35

@xpf7622

Description

@xpf7622

Whether I install from cran or locally, there is the following error:

install.packages("G:/pbdSLAP_0.2-7.tar.gz", repos = NULL, type = "source")

  • installing source package 'pbdSLAP' ...
    ** 成功将'pbdSLAP'程序包解包并MD5和检查
    ** using staged installation
    ** libs

*** arch - i386
错误: package or namespace load failed for 'pbdMPI':
loadNamespace()里算'pbdMPI'时.onLoad失败了,详细内容:
调用: inDL(x, as.logical(local), as.logical(now), ...)
错误: 无法载入共享目标对象‘D:/R-3.6.1/library/pbdMPI/libs/i386/pbdMPI.dll’::
LoadLibrary failure: 找不到指定的模块。
停止执行
错误: package or namespace load failed for 'pbdMPI':
loadNamespace()里算'pbdMPI'时.onLoad失败了,详细内容:
调用: inDL(x, as.logical(local), as.logical(now), ...)
错误: 无法载入共享目标对象‘D:/R-3.6.1/library/pbdMPI/libs/i386/pbdMPI.dll’::
LoadLibrary failure: 找不到指定的模块。
停止执行
错误: package or namespace load failed for 'pbdMPI':
loadNamespace()里算'pbdMPI'时.onLoad失败了,详细内容:
调用: inDL(x, as.logical(local), as.logical(now), ...)
错误: 无法载入共享目标对象‘D:/R-3.6.1/library/pbdMPI/libs/i386/pbdMPI.dll’::
LoadLibrary failure: 找不到指定的模块。
停止执行
错误: package or namespace load failed for 'pbdMPI':
loadNamespace()里算'pbdMPI'时.onLoad失败了,详细内容:
调用: inDL(x, as.logical(local), as.logical(now), ...)
错误: 无法载入共享目标对象‘D:/R-3.6.1/library/pbdMPI/libs/i386/pbdMPI.dll’::
LoadLibrary failure: 找不到指定的模块。
停止执行
错误: package or namespace load failed for 'pbdMPI':
loadNamespace()里算'pbdMPI'时.onLoad失败了,详细内容:
调用: inDL(x, as.logical(local), as.logical(now), ...)
错误: 无法载入共享目标对象‘D:/R-3.6.1/library/pbdMPI/libs/i386/pbdMPI.dll’::
LoadLibrary failure: 找不到指定的模块。
停止执行
echo 'MPI_ROOT = ' > Makeconf
echo 'MPI_INCLUDE = ' >> Makeconf
echo 'MPI_LIB = ' >> Makeconf
echo 'MY_CC = D:/Rtools/mingw_32/bin/gcc ' >> Makeconf
echo 'MY_FC = D:/Rtools/mingw_32/bin/gfortran ' >> Makeconf
echo 'PKG_CPPFLAGS = -I""' >> Makeconf
echo 'PKG_CFLAGS = ' >> Makeconf
echo 'PKG_FFLAGS = ' >> Makeconf
echo 'PKG_LIBS = -L"D:/R-3.6.1/bin/i386" -lRlapack -L"D:/R-3.6.1/bin/i386" -lRblas -lgfortran -lm -lquadmath ""' >> Makeconf
echo 'SLAP_FFLAGS = -O2 -msse2 -mfpmath=sse' >> Makeconf
echo 'R_SLAP = lib/i386/libslap.a' >> Makeconf
错误: package or namespace load failed for 'pbdMPI':
loadNamespace()里算'pbdMPI'时.onLoad失败了,详细内容:
调用: inDL(x, as.logical(local), as.logical(now), ...)
错误: 无法载入共享目标对象‘D:/R-3.6.1/library/pbdMPI/libs/i386/pbdMPI.dll’::
LoadLibrary failure: 找不到指定的模块。
停止执行
错误: package or namespace load failed for 'pbdMPI':
loadNamespace()里算'pbdMPI'时.onLoad失败了,详细内容:
调用: inDL(x, as.logical(local), as.logical(now), ...)
错误: 无法载入共享目标对象‘D:/R-3.6.1/library/pbdMPI/libs/i386/pbdMPI.dll’::
LoadLibrary failure: 找不到指定的模块。
停止执行
echo '### Added by Makevars' > SLmake.inc
echo 'MPI_ROOT = ' >> SLmake.inc
echo 'MPI_INCLUDE = ' >> SLmake.inc
echo 'MY_CC = D:/Rtools/mingw_32/bin/gcc ' >> SLmake.inc
echo 'MY_FC = D:/Rtools/mingw_32/bin/gfortran ' >> SLmake.inc
echo 'R_SLAP = libslap.a' >> SLmake.inc
echo 'include D:/R-3.6.1/etc/i386/Makeconf' >> SLmake.inc
( cd BLACS; /Rtools/bin/make )
make[1]: Entering directory '/cygdrive/c/Users/PFXIE1.DES/AppData/Local/Temp/RtmpsharzJ/R.INSTALL1cec5a5248a8/pbdSLAP/src-i386/BLACS'
D:/Rtools/mingw_32/bin/gcc -o BI_HypBS.fo -c -DAdd_ -I"D:/R-3.6.1/include" -DNDEBUG -I"" -O3 -Wall -std=gnu99 -mtune=generic -O3 BI_HypBS.c
In file included from Bdef.h:12:0,
from BI_HypBS.c:1:
Bconfig.h:16:17: fatal error: mpi.h: No such file or directory
#include <mpi.h>
^
compilation terminated.
make[1]: *** [Makefile:98: BI_HypBS.fo] Error 1
make[1]: Leaving directory '/cygdrive/c/Users/PFXIE
1.DES/AppData/Local/Temp/RtmpsharzJ/R.INSTALL1cec5a5248a8/pbdSLAP/src-i386/BLACS'
make: *** [Makevars.win:71: libslap.a] Error 2
ERROR: compilation failed for package 'pbdSLAP'

  • removing 'D:/R-3.6.1/library/pbdSLAP'
  • restoring previous 'D:/R-3.6.1/library/pbdSLAP'
    Warning in install.packages :
    installation of package ‘G:/pbdSLAP_0.2-7.tar.gz’ had non-zero exit status

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions