[mpich-discuss] Re: Getting MPICH2 to find/use g95 fortran
PattiMichelle
miche1 at earthlink.net
Wed Apr 9 00:18:56 CDT 2008
Thank you again, Pavan. Ah! I see - the F90 and F77 were inputs to the
configure script. Well, it seemed to go well, but the system cannot
find mpif77 or mpif90 - I also tried searching the file system but no luck.
PattiDesktop:/usr/local/mpich2/mpich2-1.0.7 #
F90=/usr/local/g95/g95-install/bin/x86_64-suse-linux-gnu-g95
F77=/usr/local/g95/g95-install/bin/x86_64-suse-linux-gnu-g95 ./configure
--prefix=/usr/local/mpich2/mpich2-install > Configure_MPICH2stdio.txt
configure: WARNING: Structures containing long doubles may be aligned
differently from structures with floats or longs. MPICH2 does not
handle this case automatically and you should avoid assumed extents for
structures containing float types.
configure: error: Fortran integers and C ints are not the same size.
The current Fortran binding does not support this case. Either force
the Fortran compiler to use integers of 4 bytes, or use --disable-f77 on
the configure line for MPICH2.
PattiDesktop:/usr/local/mpich2/mpich2-1.0.7 # make > Make_MPICH2stdio.txt
PattiDesktop:/usr/local/mpich2/mpich2-1.0.7 # make install >
MakeInst_MPICH2stdio.txt
PattiDesktop:/usr/local/mpich2/mpich2-1.0.7 # mpif77
bash: mpif77: command not found
PattiDesktop:/usr/local/mpich2/mpich2-1.0.7 # mpif90
bash: mpif90: command not found
PattiDesktop:/usr/local/mpich2/mpich2-1.0.7 #
This output from make install:
/usr/bin/install -c -m 644 mpicc.conf
/usr/local/mpich2/mpich2-install/etc/mpicc.conf
if [ -s mpicxx ] ; then /usr/bin/install -c mpicxx
/usr/local/mpich2/mpich2-install/bin/mpicxx ; fi
if [ -s mpif77 ] ; then /usr/bin/install -c mpif77
/usr/local/mpich2/mpich2-install/bin/mpif77 ; fi
if [ -s mpif90 ] ; then /usr/bin/install -c mpif90
/usr/local/mpich2/mpich2-install/bin/mpif90 ; fi
if [ -s mpicxx.conf ] ; then /usr/bin/install -c -m 644 mpicxx.conf
/usr/local/mpich2/mpich2-install/etc/mpicxx.conf ; fi
if [ -s mpif77.conf ] ; then /usr/bin/install -c -m 644 mpif77.conf
/usr/local/mpich2/mpich2-install/etc/mpif77.conf ; fi
if [ -s mpif90.conf ] ; then /usr/bin/install -c -m 644 mpif90.conf
/usr/local/mpich2/mpich2-install/etc/mpif90.conf ; fi
...which I believe is supposed to put mpif77 in the
/usr/local/mpich2/mpich2-install/bin directory, but I don't see it there.
Pavan Balaji wrote:
>
>> PattiDesktop:/usr/local/mpich2/mpich2-1.0.7 # alias f77=g95
>> PattiDesktop:/usr/local/mpich2/mpich2-1.0.7 # alias f90=g95
>
> You don't need to set these.
>
>> PattiDesktop:/usr/local/mpich2/mpich2-1.0.7 #
>> F90=/usr/local/g95/g95-install/bin/x86_64-suse-linux-gnu-g95
>> PattiDesktop:/usr/local/mpich2/mpich2-1.0.7 #
>> F77=/usr/local/g95/g95-install/bin/x86_64-suse-linux-gnu-g95
>
> These should be on the same command line as the configure.
>
>> PattiDesktop:/usr/local/mpich2/mpich2-1.0.7 # ./configure
>> --prefix=/usr/local/mpich2/mpich2-install > Configure_MPICH2stdio.txt
>
> Use the following command line:
>
> $ F90=/usr/local/g95/g95-install/bin/x86_64-suse-linux-gnu-g95
> F77=/usr/local/g95/g95-install/bin/x86_64-suse-linux-gnu-g95
> ./configure --prefix=/usr/local/mpich2/mpich2-install
>
> -- Pavan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20080408/f82e7489/attachment.htm>
More information about the mpich-discuss
mailing list