<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=781065313-04062008><FONT face=Arial
color=#0000ff size=2>You have to give a program name after mpicc. For example,
mpicc foo.c. Just mpicc won't work.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=781065313-04062008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=781065313-04062008><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>linzhenhua<BR><B>Sent:</B> Wednesday, June 04, 2008 7:12 AM<BR><B>To:</B>
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> Re:[mpich-discuss] No Fortran 90
compiler<BR></FONT><BR></DIV>
<DIV></DIV>Hello,Xudong<BR>I tried to install mpich2 serveral days ago,I think
I got similiar problems:<BR><BR># mp32-mpicc
<BR>/usr/lib/gcc/i386-redhat-linux/4.3.0/../../../crt1.o: In function
`_start':<BR>(.text+0x18): undefined reference to `main'<BR>collect2: ld 返回
1<BR><BR>I asked the question at another website(redhat bugzilla),who told me
that it's just ok and I do not need to worry about it. Indeed when I try to
use it to compile and run a simple test program,it seems work fine. I also
want to make sure whether it's true or
not.<BR>------------------------------------------------------------<BR><BR><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><pre>在2008-06-04,"倪旭东"
&lt;xd_ni@seu.edu.cn&gt; 写道:<BR>>Hello,mpich-discuss:<BR>> I'm a
beginner of MPICH,and after I install MPICH. I have such problems:
<BR>>[root@cgsp bin]#
./mpif77<BR>>/usr/lib/gcc/x86_64-redhat-linux/3.4.3/libfrtbegin.a(frtbegin.o)(.text+0x1e):
In function `main':<BR>>: undefined reference to `MAIN__'<BR>>collect2:
ld returned 1 exit status<BR>>[root@cgsp bin]# ./mpif90<BR>>No Fortran
90 compiler specified when mpif90 was created,<BR>>or configuration file
does not specify a compiler.<BR>> <BR>>[root@cgsp f90modules]#
./configure <BR>>Configure in /root/mpich-1.2.7p1/f90modules creating cache
./config.cache<BR>>checking for g77... g77<BR>>checking whether the
Fortran 77 compiler (g77 ) works... yes<BR>>checking whether the Fortran 77
compiler (g77 ) is a cross-compiler... no<BR>>checking whether we are using
GNU Fortran 77... yes<BR>>checking whether g77 accepts -g...
yes<BR>>checking for f95... no<BR>>checking for f90...
no<BR>>checking for xlf90... no<BR>>checking for pgf90...
no<BR>>checking for ifc... no<BR>>checking for efc...
no<BR>>configure: warning: no acceptable Fortran 90 compiler found in
$PATH<BR>>checking for a BSD compatible install... /usr/bin/install
-c<BR>>checking whether ln -s works... yes<BR>>checking for ar...
ar<BR>>checking for ranlib... ranlib<BR>>checking for make...
make<BR>>checking whether make echos directory changes... yes using
--no-print-directory<BR>>checking for virtual path format...
VPATH<BR>>checking for module suffix... unknown<BR>>checking for case of
module names... lower<BR>>checking for module directory path flag... cp:
cannot stat `conftest.': No such file or directory<BR>>checking that the
compiler accepts .f90 suffix... no<BR>>checking whether Fortran 90 is
compatible with Fortran 77... no<BR>>configure: error: Fortran 90 and
Fortran 77 compilers are not compatible.<BR>>They generate external symbol
names that are different<BR>><BR>>What's the problem? Thanks a lot.
<BR>><BR>> <BR>>xudong
<BR>><BR>> <BR>> xd_ni@seu.edu.cn<BR>> 2008-06-04<BR>><BR>>----------------------------------------------------------------------<BR>>Xudong
Ni, Ph.D. Candidate<BR>>Jiangsu Provincial Key Laboratory of Network and
Infromation Security<BR>>School of Computer Science and
Engineering<BR>>Southeast University<BR>>Nanjing 210096,
P.R.China<BR>>Tel:86-25-8379
5595<BR>>----------------------------------------------------------------------<BR>><BR></pre><BR><BR><!-- footer --><BR>
<HR>
<FONT style="FONT-SIZE: 12px; LINE-HEIGHT: 15px"></FONT><A
style="FONT-SIZE: 12px; COLOR: blue; LINE-HEIGHT: 15px; TEXT-DECORATION: underline"
href="http://popme.163.com/link/004062_0602_706.html">两两来Win为中国</A></BLOCKQUOTE></BODY></HTML>