2015-03-31 106 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