[mpich-discuss] No Fortran 90 compiler

linzhenhua linzhenhua at 163.com
Wed Jun 4 07:11:35 CDT 2008


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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20080604/d7ca6fa7/attachment.htm>


More information about the mpich-discuss mailing list