[mpich-discuss] No Fortran 90 compiler

Rajeev Thakur thakur at mcs.anl.gov
Wed Jun 4 08:53:32 CDT 2008


You have to give a program name after mpicc. For example, mpicc foo.c. Just
mpicc won't work.
 
Rajeev


  _____  

From: owner-mpich-discuss at mcs.anl.gov
[mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of linzhenhua
Sent: Wednesday, June 04, 2008 7:12 AM
To: mpich-discuss at mcs.anl.gov
Subject: Re:[mpich-discuss] No Fortran 90 compiler


Hello,Xudong
I tried to install mpich2 serveral days ago,I think I got similiar problems:

# mp32-mpicc 
/usr/lib/gcc/i386-redhat-linux/4.3.0/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld 返回 1

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.
------------------------------------------------------------

<div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><pre>在
2008-06-04,"倪旭东" &lt;xd_ni at seu.edu.cn&gt; 写道:
>Hello,mpich-discuss:
> I'm a beginner of MPICH,and after I install MPICH. I have such problems: 
>[root at cgsp bin]# ./mpif77
>/usr/lib/gcc/x86_64-redhat-linux/3.4.3/libfrtbegin.a(frtbegin.o)(.text+0x1e
): In function `main':
>: undefined reference to `MAIN__'
>collect2: ld returned 1 exit status
>[root at cgsp bin]# ./mpif90
>No Fortran 90 compiler specified when mpif90 was created,
>or configuration file does not specify a compiler.
> 
>[root at cgsp f90modules]# ./configure 
>Configure in /root/mpich-1.2.7p1/f90modules creating cache ./config.cache
>checking for g77... g77
>checking whether the Fortran 77 compiler (g77 ) works... yes
>checking whether the Fortran 77 compiler (g77 ) is a cross-compiler... no
>checking whether we are using GNU Fortran 77... yes
>checking whether g77 accepts -g... yes
>checking for f95... no
>checking for f90... no
>checking for xlf90... no
>checking for pgf90... no
>checking for ifc... no
>checking for efc... no
>configure: warning: no acceptable Fortran 90 compiler found in $PATH
>checking for a BSD compatible install... /usr/bin/install -c
>checking whether ln -s works... yes
>checking for ar... ar
>checking for ranlib... ranlib
>checking for make... make
>checking whether make echos directory changes... yes using
--no-print-directory
>checking for virtual path format... VPATH
>checking for module suffix... unknown
>checking for case of module names... lower
>checking for module directory path flag... cp: cannot stat `conftest.': No
such file or directory
>checking that the compiler accepts .f90 suffix... no
>checking whether Fortran 90 is compatible with Fortran 77... no
>configure: error: Fortran 90 and Fortran 77 compilers are not compatible.
>They generate external symbol names that are different
>
>What's the problem? Thanks a lot. 
>
>     
>xudong 
>
>       
>        xd_ni at seu.edu.cn
>          2008-06-04
>
>----------------------------------------------------------------------
>Xudong Ni, Ph.D. Candidate
>Jiangsu Provincial Key Laboratory of Network and Infromation Security
>School of Computer Science and Engineering
>Southeast University
>Nanjing 210096, P.R.China
>Tel:86-25-8379 5595
>----------------------------------------------------------------------
>
</pre>



  _____  

两两来Win为中国 <http://popme.163.com/link/004062_0602_706.html> 

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


More information about the mpich-discuss mailing list