sw5cc编译mpich代码出错
-
@swmore
因为系统自带的mpich好像不支持Fortran 2003,我在尝试利用sw5cc配置mpich时,出现下面Fortran和C不兼容的错误checking whether /myhome/mpich-3.3.1/confdb/compile sw5cc -std=gnu99 links with FLIBS found by autoconf... yes checking whether Fortran 77 and C objects are compatible... no checking for file... file configure: error: **** Incompatible Fortran and C Object File Types! **** F77 Object File Type produced by "sw5f77 -host " is : : cannot open (No such file or directory). C Object File Type produced by "/myhome/mpich-3.3.1/confdb/compile sw5cc -std=gnu99 -host -O2" is : : ELF 64-bit LSB relocatable, version 1 (SYSV), not stripped.
configure命令是
CC=sw5cc CFLAGS="-host" FC=sw5fort FFLAGS="-host" LD="sw5fort -hybrid" ./configure --prefix=/myhome/mpich-3.3.1/installdir cross_compiling=yes --host=alpha --enable-cxx --enable-fortran=all --enable-threads=multiple F77=sw5f77 FFLAGS="-host"
而且我用swgfortran和swgcc编译也遇到同样问题,不知道这是什么原因
-
sw5fort改成sw5f90试试吧