<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1515" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=197100318-01092005><FONT face=Arial
color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=197100318-01092005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=197100318-01092005><FONT face=Arial
color=#0000ff size=2>Rajeev</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> owner-mpich-discuss@mcs.anl.gov
[mailto:owner-mpich-discuss@mcs.anl.gov] <B>On Behalf Of </B>Mike
Zupan<BR><B>Sent:</B> Thursday, September 01, 2005 12:54 PM<BR><B>To:</B>
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> Re: [MPICH] mpif90
issues<BR></FONT><BR></DIV>
<DIV></DIV>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<BR><BR>[wind@fcst3
mpich2-1.0.2p1]$ ./bin/mpif90
<BR>/usr/local/pgi-6.0/linux86/6.0/lib/f90main.o(.text+0x77): In function
`main':<BR>: undefined reference to `MAIN_'<BR><BR><BR>I am just setting these
enviroment vars<BR><BR>export F90="pgf90" <BR>export FC="pgf77"
<BR>export F77="pgf77"<BR><BR>we don't have the license for the C pgi
compiler<BR><BR>mike<BR><BR>
<DIV><SPAN class=gmail_quote>On 9/1/05, <B class=gmail_sendername>Anthony
Chan</B> <<A href="mailto:chan@mcs.anl.gov">chan@mcs.anl.gov</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><BR><BR>On
Thu, 1 Sep 2005, Rajeev Thakur wrote:<BR><BR>> You might want to try
using MPICH2 instead. In MPICH2, you can specify the<BR>> PG compilers by
setting the environment variables CC, CXX, F77, and F90,<BR>> instead of
the command-line arguments to configure. <BR><BR>An analogous way like your
old configure command is<BR><BR><moich2-1.0.2p1_dir>/configure CC=pgcc
CXX=pgCC F77=pgf77 F90=pgf90 ...<BR><BR>All the "environmental" variables
can be specified as part of configure <BR>command.<BR><BR>PS. Advantages of
putting the env. variables as part of configure<BR>command are 1) the env
variables won't corrupt your working environment,<BR>so you can configure
MPICH2 with different set of compilers in the same <BR>shell. 2) the exact
configure command and options can be retrieved by a<BR>grep on
config.status, e.g.<BR><BR>grep -A 5 configured
config.status<BR><BR>or<BR><BR>./config.status --recheck (hits control-c as
soon as it runs). <BR><BR>A.Chan<BR><BR>>
_____<BR>><BR>> From: <A
href="mailto:owner-mpich-discuss@mcs.anl.gov">owner-mpich-discuss@mcs.anl.gov</A><BR>>
[mailto:<A
href="mailto:owner-mpich-discuss@mcs.anl.gov">owner-mpich-discuss@mcs.anl.gov
</A>] On Behalf Of Mike Zupan<BR>> Sent: Thursday, September 01, 2005
8:23 AM<BR>> To: <A
href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A><BR>>
Subject: [MPICH] mpif90 issues<BR>><BR>><BR>> We are having some
issues building mpif90 against pgi6 the 64bit version.<BR>><BR>> Here
are my env vars for pgi<BR>><BR>> PGI=/usr/local/pgi-6.0<BR>>
PGI2=/usr/local/pgi-6.0/linux86-64/6.0<BR>> export PGI PGI2 <BR>>
MANPATH=/usr/man:$PGI2/man:/usr/share/man<BR>> export MANPATH<BR>>
PATH=$PATH:$HOME/bin:/usr/local/pgi-6.0/linux86-64/6.0/bin:/usr/sbin:/sbin:/<BR>>
usr/local/bin:/etc:/usr/local/sbin/:.<BR>><BR>> Here is how i compiled
mpich <BR>><BR>> ./configure -cc=pgcc -f90=pgf90
-fc=pgf77<BR>><BR>> Then when i run mpif90 i get this<BR>>
[wind@testing mpich-1.2.7]$ ./bin/mpif90<BR>>
/usr/local/pgi-6.0/linux86-64/6.0/lib/f90main.o(.text+0x42): In function
<BR>> `main':<BR>> : undefined reference to `MAIN_'<BR>><BR>>
has anyone seen this? This is a centOS 4.1 system with just the
64bit<BR>> compiler/libraries installed<BR>><BR>>
thanks<BR>><BR>><BR>> --<BR>> <A
href="http://www.zcentric.com/wiki">http://www.zcentric.com/wiki</A><BR>>
My Linux Howto/Tips Wiki<BR>><BR>><BR></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR><A
href="http://www.zcentric.com/wiki">http://www.zcentric.com/wiki</A><BR>My
Linux Howto/Tips Wiki </BLOCKQUOTE></BODY></HTML>