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

William Gropp gropp at mcs.anl.gov
Fri Mar 16 09:36:54 CDT 2007


Can you send the output of configure and make, along with the  
config.log file?  That will help us understand where the problem  
lies.  Thanks!

Bill

On Mar 15, 2007, at 3:35 PM, Jinyou Liang wrote:

> Rajeev,
>
> Thanks for your suggestion, and I tried to setenv for F77 and F90  
> but the symptom is still there.  Namely,  it is okay to configure,  
> followed with make, to build the mpich2 library.  However, the  
> resulting library was not recognized properly by fortran program  
> (pgf90 version 6.2), as shown earlier, though earlier version of  
> pgf90 was okay.   I would appreciate your insights.
>
> With best regards,
> Jinyou
>
> Thakur wrote:
>> 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
>>>
>>>
>>
>>
>
> <jliang.vcf>




More information about the mpich-discuss mailing list