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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<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