[mpich-discuss] Getting MPICH2 to find/use g95 fortran

PattiMichelle miche1 at earthlink.net
Tue Apr 8 19:46:43 CDT 2008

I tried your suggestion but something went wrong somewhere...  it
couldn't compile it's test program during .configure.  I put STDIO from
./configure into an attached text file...

PattiDesktop:/usr/local/mpich2/mpich2-1.0.7 # alias f77=g95
PattiDesktop:/usr/local/mpich2/mpich2-1.0.7 # alias f90=g95
PattiDesktop:/usr/local/mpich2/mpich2-1.0.7 #
PattiDesktop:/usr/local/mpich2/mpich2-1.0.7 #
PattiDesktop:/usr/local/mpich2/mpich2-1.0.7 # f77
g95: no input files
PattiDesktop:/usr/local/mpich2/mpich2-1.0.7 # F77
bash: F77: command not found
PattiDesktop:/usr/local/mpich2/mpich2-1.0.7 #
PattiDesktop:/usr/local/mpich2/mpich2-1.0.7 # ./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: WARNING: Unable to test Fortran compiler.  Compiling a test
program failed to produce an object file
configure: WARNING: File locks may not work with NFS.  See the
Installation and
users manual for instructions on testing and if necessary fixing this
cat: /etc/ld.so.conf.d/*.conf: No such file or directory
cat: /etc/ld.so.conf.d/*.conf: No such file or directory
configure: WARNING:  Invalid JNI include dir, exit!
configure: WARNING: SLOG2SDK: No sub-package has been configured
configure: WARNING: Could not define Fortran MPI datatypes for C
configure: WARNING: Selecting integer*8 as the Fortran type for MPI_Offset
configure: WARNING: Selecting integer as the Fortran type for MPI_Aint
PattiDesktop:/usr/local/mpich2/mpich2-1.0.7 #

Pavan Balaji wrote:
> You can force MPICH2 to use g95 by setting environment variables at
> configure time:
>   $ F77=/path/to/g95 F90=/path/to/g95 ./configure
> --prefix=/some/place/mpich2-install
>   $ make && make install
>  -- Pavan
> On 04/06/2008 02:08 PM, PattiMichelle wrote:
>> Hello Everyone :-)
>> I have installed g95 on my SuSE 10.2 x86_64 dual core system and want
>> to use MPICH2 to compile a certain parallel-enabled fortran code.  I
>> looked at the MPICH2 configure script file(s) and noticed entries for
>> g95, so as long as I build the code from source (rather than
>> installing from an .rpm file), then it should detect g95, correct? 
>> I'm not sure *how* it actually detects it because g95 can be
>> installed pretty much anywhere according to the g95 docs.  I have set
>> (in bashrc):
>> alias f77=g95
>> alias f90=g95
>> ...and it seems to work...
>> patti at PattiDesktop:~> f77
>> g95: no input files
>> patti at PattiDesktop:~> f90
>> g95: no input files
>> patti at PattiDesktop:~>
>> ...and have removed gfortran so the only fortran on my system
>> *should* be g95...  I would appreciate a comment or three as to
>> whether or not I need to set anything else before running configure /
>> make / make install on the MPICH2 source.
>> PattiMichelle Sheaffer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20080408/a3f9c351/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Configure_MPICH2stdio.txt
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20080408/a3f9c351/attachment.txt>

More information about the mpich-discuss mailing list