[mpich-discuss] Fedora 12 compiling issues

rcx11 at yahoo.com rcx11 at yahoo.com
Sat Feb 20 15:28:38 CST 2010


$ mpicc -show
bash: mpicc: command not found

It has to do with the way that the Fedora Project chose to compile and package MPICH2. I simply installed MPICH2 from the Fedora repository. My issue is getting the Fedora-style configuration to work for this application. As previously stated, the installation instructions for MCNPX explicitly call for the -lmpich tag anyway.


--- 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, 3:18 PM
> 
> On 02/20/2010 03:09 PM, rcx11 at yahoo.com
> wrote:
> > 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.
> 
> I don't quite follow the problem here. mpicc is nothing but
> a wrapper
> that internally just calls gcc with the appropriate compile
> and link
> flags. Similarly, mpif90 is a wrapper that internally calls
> gfortran. If
> you use gcc or gfortran directly, you need to specify
> -lmpich. If you
> use mpicc/mpif90, they'll automatically specify -lmpich
> (and all the
> other required libraries) for you.
> 
> Though not ideal, if you decide to not use this method, you
> can do:
> 
> % mpicc -show
> 
> .. to see all the libraries it is using and link them
> manually using
> --with-MPILIB. But note that this can again change in the
> future.
> 
>  -- 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