Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] mpif77 report Old-style type declaration
From: Terry Frankcombe (terry_at_[hidden])
Date: 2008-05-08 06:20:06


It's a function of your underlying compiler. Try:

mpif77 --showme

to see how it's being invoked.

On Thu, 2008-05-08 at 16:55 +0800, Wen Hao Wang wrote:
> Hi all:
>
> I am using openmpi to compile Fortran program on RHEL5.2 x86 machine.
> Open MPI 1.2.5-2 is installed. mpif77 gave following error.
>
> [root_at_xblade08 dtyp]# mpif77 -c -o freal16_f.o freal16_f.f
> In file freal16_f.f:67
>
> real*16 real16
> 1
> Error: Old-style type declaration REAL*16 not supported at (1)
> [root_at_xblade08 dtyp]# vi freal16_f.f
> 67 real*16 real16
> [root_at_xblade08 dtyp]# which mpif77
> /usr/bin/mpif77
> [root_at_xblade08 dtyp]# file /usr/bin/mpif77
> /usr/bin/mpif77: symbolic link to `/etc/alternatives/mpif77'
> [root_at_xblade08 dtyp]# file /etc/alternatives/mpif77
> /etc/alternatives/mpif77: symbolic link to
> `/usr/bin/opal_wrapper-1.2.5-gcc-32'
> [root_at_xblade08 dtyp]# rpm -qf /usr/bin/opal_wrapper-1.2.5-gcc-32
> openmpi-devel-1.2.5-2.el5
> [root_at_xblade08 dtyp]# mpif77 -v
> Using built-in specs.
> Target: i386-redhat-linux
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
> --infodir=/usr/share/info --enable-shared --enable-threads=posix
> --enable-checking=release --with-system-zlib --enable-__cxa_atexit
> --disable-libunwind-exceptions --enable-libgcj-multifile
> --enable-languages=c,c++,objc,obj-c++,java,fortran,ada
> --enable-java-awt=gtk --disable-dssi --enable-plugin
> --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
> --with-cpu=generic --host=i386-redhat-linux
> Thread model: posix
> gcc version 4.1.2 20071124 (Red Hat 4.1.2-41)
>
>
> Since mpif77 is one compiler wrapper, how can I get the detailed
> compiler, environment variables and arguments to the file compile
> freal16_f.f? I have another file named freal8_f.f, with the sentence
> "real*8 real8". But mpif77 can compile it smoothly.
>
> Thanks!
>
> Wen Hao Wang
> Email: wangwhao_at_[hidden]
>
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users