[MPICH] example failed to link for mpich2 with pgf90(v6.2) and gcc

Rajeev Thakur thakur at mcs.anl.gov
Thu Mar 15 15:01:01 CDT 2007


Make sure you also specify the F77 compiler as PGI before running configure.
For example,
setenv F77 pgf77 (or pgf90)
setenv F90 pgf90
configure ...
 
Rajeev


> -----Original Message-----
> From: owner-mpich-discuss at mcs.anl.gov 
> [mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of Jinyou Liang
> Sent: Thursday, March 15, 2007 2:02 PM
> To: mpich-discuss-digest at mcs.anl.gov
> Subject: [MPICH] example failed to link for mpich2 with 
> pgf90(v6.2) and gcc
> 
> Dear mpi nerds,
> 
> Has anyone succeeded in the example of 
> mpich2-1.0.5p3/examples/f90(f77) 
> using the combination of gcc and pgf90(version 6.2) ?
> 
> I got the error message like
> {  fpi.f: (...): undefined reference to 'mpi_init_' }
>    ... and for all other mpi subroutines.
> 
> The same code worked fine with pgf90 (v6.1) + gcc, so I guess it is a 
> compilation option problem.  FYI, my LINUX machine has the following 
> output for 'uname -a' command: 
> Linux auster 2.6.19-1.2288.fc5smp #1 SMP Feb 10 ... 2007 i686 
> i686 i386 
> GNU/Linux
> 
> Your setup for environment variables and configure options would be 
> helpful, if you succeeded in this case.
> 
> 
> Thanks,
> Jinyou
> 




More information about the mpich-discuss mailing list