[mpich-discuss] Fedora 12 compiling issues

rcx11 at yahoo.com rcx11 at yahoo.com
Sat Feb 20 15:09:23 CST 2010


I would have been using that, but Fedora 12 builds MPICH with gfortran, which is symlinked to f90, and gcc. I don't have symlinks or alias for mpif90 or mpicc. Also, using the mpif90 and mpicc, the installation instructions specify the usage of the -lmpich tag.

--- On Sat, 2/20/10, Pavan Balaji <balaji at mcs.anl.gov> wrote:

> From: Pavan Balaji <balaji at mcs.anl.gov>
> Subject: Re: [mpich-discuss] Fedora 12 compiling issues
> To: mpich-discuss at mcs.anl.gov
> Date: Saturday, February 20, 2010, 10:32 AM
> 
> On 02/20/2010 09:57 AM, rcx11 at yahoo.com
> wrote:
> > $ ./configure --prefix=/usr/local/mcnpx \
> >           
>    --with-FC=f90 \
> >           
>    --with-CC=gcc \
> >           
>    --host=i686-pc-linux \
> >           
>    --with-FFLAGS="-DUNIX=1 -DLINUX=1 -DG95=1"
> \
> >           
>    --with-CFLAGS="-DUNIX=1 -DLINUX=1" \
> >           
>    --with-MPILIB="-L/usr/lib/mpich2/lib
> -lmpich"
> 
> MPICH2 provides a bunch of libraries other than libmpich.a,
> so directly
> using gcc with -lmpich is not safe. You should use the
> mpicc/mpif90
> wrappers instead: Try this:
> 
> $ ./configure --prefix=/usr/local/mcnpx \
>     --with-FC=mpif90 \
>     --with-CC=mpicc \
>     --host=i686-pc-linux \
>     --with-FFLAGS="-DUNIX=1 -DLINUX=1
> -DG95=1" \
>     --with-CFLAGS="-DUNIX=1 -DLINUX=1"
> 
>  -- Pavan
> 
> -- 
> Pavan Balaji
> http://www.mcs.anl.gov/~balaji
> _______________________________________________
> mpich-discuss mailing list
> mpich-discuss at mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
> 


      


More information about the mpich-discuss mailing list