[mpich-discuss] Problem testing mpich2-1.2.1p1

Dave Goodell goodell at mcs.anl.gov
Tue May 25 12:40:43 CDT 2010


If you are using Ubuntu Linux, you should pass "--enable-sharedlibs=gcc", not "osx-gcc".  "osx-gcc" is for Mac OS X.

-Dave

On May 25, 2010 , at 11:26 AM CDT, cpolindara at mecanica.upm.es wrote:

> Hi to all,
> 
> I've been trying to compile the MPI distribution mpich2-1.2.1p1 on my
> Ubuntu 10.4 OS, but I have some problems when trying to configure PETSc.
> Here's what I've done so far:
> 
> 1) I've configured MPI with:
> 
> /usr/local/mpich2-1.2.1p1/configure -prefix=/usr/local/mpi
> --enable-sharedlibs=osx-gcc
> 
> 2) I've executed 'make' and 'make install' and everything goes well
> 
> 3) I've tried to configure PETSc with:
> 
> config/configure.py --with-mpi-dir=/usr/local/mpi --with-cc=gcc
> --with-fc=gfortran --with-cxx=g++ --download-f-blas-lapack=1 
> --with-clanguage=cxx --with-shared=1 --with-dynamic=1
> 
> and I get the following error:
> 
> ---------------------------------------------------------------------------------------
> Shared libraries cannot be built using MPI provided.
> Either rebuild with --with-shared=0 or rebuild MPI with shared library
> support
> *********************************************************************************
> 
> Could you tell me what is it that went wrong. I've compiled MPI using
> shared libraries.
> 
> Thank you,
> 
> César Polindara
> UPM, Madrid
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> 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