[mvapich-discuss] mpif77 error

Shuichi Ihara ihara at sun.com
Fri May 23 09:08:13 EDT 2008


Hi

I'm attempting to build mvapich-0.9.9(from OFED-1.2.5.5) with PGI-7.1.
As first, the package was built, but we couldn't see mpif77 and mpif90 in this package.
Here is configure's log. It seems "-B" option is not recognized to pgf77 and it can't
be passed, then pgif77 and pgf90 were skipped.

-snip
checking whether the compiler pgcc runs... yes
checking whether the compiler pgf77 runs... no
Fortran compiler returned non-zero return code
Output from test was
pgf77-Error-Unknown switch: -B
checking for correct handling of conditionals...... yes
-snip

That's ok. I removed "-B" option from CFLAGS in spec file of mvapich.
After that, I could build mvapich which includes mpif77 and mpif90.
However, when I run mpif77 and mpif90 to compile mpi application, I can see
below errors

-bash-3.1$ /usr/mpi/pgi/mvapich-0.9.9/bin/mpif77 hello_f77.f
hello_f77.o: In function `MAIN_':
hello_f77.f:(.text+0x1f): undefined reference to `mpi_comm_rank_'
hello_f77.f:(.text+0x31): undefined reference to `mpi_comm_size_'
hello_f77.f:(.text+0xc1): undefined reference to `mpi_finalize_'

mpicc and mpiCC are no problem. Any ideas?

Thanks,

-Ihara


More information about the mvapich-discuss mailing list