No Fortran 77 for mpich3 instalation

Dear PGI users,
I’m installing mpich3 using PGI compiler.
The command is:
./configure CC=pgcc CXX=pgc++ F77=pgfortran FC=pgfortran --prefix=/usr/local/mpich3 2>&1 | tee c.txt

An error came like this:
checking whether Fortran 77 and C objects are compatible… no
checking for file… file
checking for linker for Fortran main program… configure: error: Could not determine a way to link a Fortran test program!

PGI in the system is community edition version 19.10.
I followed some guides in this forum that F77 can be set “pgfortran” instead pgf77 because it is no longer existed in this PGI version.
However, the error came like that. What should I do?

Thanks
HC

Duplicate of mpich3 install fails due to Fortran 77