[MPICH] mpif90 issues

Rajeev Thakur thakur at mcs.anl.gov
Thu Sep 1 13:04:20 CDT 2005


I don't know what f90main.o is, but it is possible that it might have been
compiled with pgcc or requires some pgcc libraries. Just guessing.
 
Rajeev


  _____  

From: owner-mpich-discuss at mcs.anl.gov
[mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of Mike Zupan
Sent: Thursday, September 01, 2005 12:54 PM
To: mpich-discuss at mcs.anl.gov
Subject: Re: [MPICH] mpif90 issues


I am thinking this might be a pgi 6.0 error?? I just used mpich2 on both a
32bit machine and 64bit machine and got this again

[wind at fcst3 mpich2-1.0.2p1]$ ./bin/mpif90 
/usr/local/pgi-6.0/linux86/6.0/lib/f90main.o(.text+0x77): In function
`main':
: undefined reference to `MAIN_'


I am just setting these enviroment vars

export F90="pgf90"  
export FC="pgf77"  
export F77="pgf77"

we don't have the license for the C pgi compiler

mike


On 9/1/05, Anthony Chan <chan at mcs.anl.gov> wrote: 



On Thu, 1 Sep 2005, Rajeev Thakur wrote:

> You might want to try using MPICH2 instead. In MPICH2, you can specify the
> PG compilers by setting the environment variables CC, CXX, F77, and F90,
> instead of the command-line arguments to configure. 

An analogous way like your old configure command is

<moich2-1.0.2p1_dir>/configure CC=pgcc CXX=pgCC F77=pgf77 F90=pgf90 ...

All the "environmental" variables can be specified as part of configure 
command.

PS. Advantages of putting the env. variables as part of configure
command are 1) the env variables won't corrupt your working environment,
so you can configure MPICH2 with different set of compilers in the same 
shell. 2) the exact configure command and options can be retrieved by a
grep on config.status, e.g.

grep -A 5 configured config.status

or

./config.status --recheck (hits control-c as soon as it runs). 

A.Chan

>   _____
>
> From: owner-mpich-discuss at mcs.anl.gov
> [mailto:owner-mpich-discuss at mcs.anl.gov
<mailto:owner-mpich-discuss at mcs.anl.gov> ] On Behalf Of Mike Zupan
> Sent: Thursday, September 01, 2005 8:23 AM
> To: mpich-discuss at mcs.anl.gov
> Subject: [MPICH] mpif90 issues
>
>
> We are having some issues building mpif90 against pgi6 the 64bit version.
>
> Here are my env vars for pgi
>
> PGI=/usr/local/pgi-6.0
> PGI2=/usr/local/pgi-6.0/linux86-64/6.0
> export PGI PGI2 
> MANPATH=/usr/man:$PGI2/man:/usr/share/man
> export MANPATH
>
PATH=$PATH:$HOME/bin:/usr/local/pgi-6.0/linux86-64/6.0/bin:/usr/sbin:/sbin:/
> usr/local/bin:/etc:/usr/local/sbin/:.
>
> Here is how i compiled mpich 
>
> ./configure -cc=pgcc -f90=pgf90 -fc=pgf77
>
> Then when i run mpif90 i get this
> [wind at testing mpich-1.2.7]$ ./bin/mpif90
> /usr/local/pgi-6.0/linux86-64/6.0/lib/f90main.o(.text+0x42): In function 
> `main':
> : undefined reference to `MAIN_'
>
> has anyone seen this? This is a centOS 4.1 system with just the 64bit
> compiler/libraries installed
>
> thanks
>
>
> --
> http://www.zcentric.com/wiki
> My Linux Howto/Tips Wiki
>
>





-- 
http://www.zcentric.com/wiki
My Linux Howto/Tips Wiki 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20050901/3ff427a9/attachment.htm>


More information about the mpich-discuss mailing list