2015-03-31 444 views
0

工作的专家:在尝试配置MPICH-3.2b1使用此命令:无法配置MPICH。所选的Fortran 90编译程序gfortran不与选定的Fortran 77编译器gfortran

./configure --prefix=/usr/local/mpi64-32-mpich CFLAGS="-m64" FFLAGS="-m64" CC=gcc FC=gfortran

...

configure: error: The selected Fortran 90 compiler gfortran does not work with the selected Fortran 77 compiler gfortran. Use the environment variables FC and F77 respectively to select compatible Fortran compilers. The check here tests to see if a main program compiled with the Fortran 90 compiler can link with a subroutine compiled with the Fortran 77 compiler.

我已经试过各种调用FO FC和F77变量。这是我们(定制)gcc/gfortran 4.8版本的缺陷吗?

回答

1

autoconf生成的配置脚本(MPICH使用它)在config.log中记录大量信息。当配置脚本以奇怪的方式运行时,请查看config.log以获取线索。

这里需要小心一点,因为config.log在检查时会报告很多故障,例如,其中一个系统调用的行为类似于HP-UX 10.4版本(不会)。

但是,寻找'gfortran'和其他上下文,所以你可以找到测试。有时候这种类型的错误是由于缺少库或头文件导致的:也许你只需要更新一个环境变量。

+0

Rob,我认为这将与环境或构建脚本的错综复杂有关。将不得不多花一点时间。谢谢! – DrLou 2015-10-27 12:16:23