安装openmpi时无法确定CHARACTER的大小

时间:2018-03-06 12:12:44

标签: openmpi

我正在尝试在Amazon ec2实例上安装openmpi。我使用 -

卸载了系统中存在的openmpi安装
yum remove -y  openmpi.x86_64 openmpi-devel.x86_64

这将删除openmpi和openmpi开发的2.1.1-1.31.amzn1版本。

我从官方openmpi site下载了tar文件。当我尝试运行configure时,出现以下错误 -

checking if C and Fortran are link compatible... yes
checking to see if Fortran compiler likes the C++ exception flags... skipped (no C++ exceptions flags)
checking to see if mpifort compiler needs additional linker flags... none
checking if Fortran compiler supports CHARACTER... yes
checking size of Fortran CHARACTER... configure: WARNING: Could not determine size of CHARACTER
configure: WARNING: See config.log for details
configure: error: Cannot continue

config.log文件中的错误 -

configure:37098: $? = 0 configure:37111: result: yes configure:37146: checking size of Fortran CHARACTER configure:37214: /usr/lib/a-4.2.0-py-3.5.3-dl-gpu-full/bin/x86_64-conda_cos6-linux-gnu-cc -DNDEBUG -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -finline-functions -fno-strict-aliasing -I. -c conftest.c configure:37221: $? = 0 configure:37231: gfortran conftestf.f90 conftest.o -o conftest -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now /usr/bin/ld: conftest.o: unrecognized relocation (0x29) in section .text' /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status configure:37238: $? = 1 configure:37259: here is the Fortran program: program fsize

我也试过了./configure —disable-fortran,但我也遇到了同样的错误。

任何帮助将不胜感激。

0 个答案:

没有答案