
Seguí estoguía de instalaciónpara instalar MPICH en mi máquina. Recibí el siguiente error mientras configure
:
configure: error: Unable to configure with Fortran support because configure could not determine the size of a Fortran INTEGER. Consider setting CROSS_F77_SIZEOF_INTEGER to the length in bytes of a Fortran INTEGER
Aquí está elsalida completa y archivo config.log Gracias por cualquier guía o comentario.
Respuesta1
Tuve el mismo problema y necesitaba Fortran. La compilación con algunas bibliotecas MPI diferentes finalmente me llevó a la pista (gracias, openmpi): tenía gcc/gfortran instalado en /usr/local, pero /usr/local/lib64 y /usr/local/lib no estaban en LD_LIBRARY_PATH. El mensaje de error para mpich y mvapich2 no tiene sentido, pero desapareció después de configurar LD_LIBRARY_PATH.
Respuesta2
Dado que no utilizará MPICH con Fortran, también puede desactivar la compatibilidad con Fortran:
$ ./configure --disable-fortran
o
$ ./configure --enable-fortran=none
No olvide agregar también otras opciones que utilizó originalmente, por ejemplo,
$ ./configure --disable-fortran --prefix=some/directory
Respuesta3
Configurando lo siguiente en bashrc
$ exportar F77=/to/my/latest/gcc/installation/bin/gfortran
$ exportar F90=/to/my/latest/gcc/installation/bin/gfortran
Seguido de deshabilitar fortran en la configuración, se resolvió el problema al instalar el último mpich.
$ ./configure --disable-fortran