[petsc-users] compilation on mac

Barry Smith bsmith at mcs.anl.gov
Thu Feb 25 22:37:28 CST 2016


  Since you are passing mpicc, mpicxx, mpif90 arguments, do NOT pass --with-mpi-include and --with-mpi-lib

  If the problem persists after rebuilding with this change. Send configure.log make.log and $PETSC_ARCH/lib/petsc/conf/petscvariables.

  Barry


> On Feb 25, 2016, at 10:31 PM, Manav Bhatia <bhatiamanav at gmail.com> wrote:
> 
> Hi, 
> 
>    I am attempting to compile petsc 3.6.3 on my mac with the following options: 
> 
> ./configure --prefix=${PWD}/../ --CC=mpicc --CXX=mpicxx  --FC=mpif90  --with-clanguage=c++ --with-fortran=0 --with-mpi-include=/opt/local/include/openmpi-mp  --with-mpiexec=/opt/local/bin/mpiexec  -with-mpi-lib=[/opt/local/lib/openmpi-mp/libmpi_cxx.dylib,/opt/local/lib/openmpi-mp/libmpi.dylib]    --with-shared-libraries=1 --with-x=1 --with-x-dir=/opt/X11 --with-debugging=0 --with-lapack-lib=/usr/lib/liblapack.dylib --with-blas-lib=/usr/lib/libblas.dylib --download-superlu=yes --download-superlu_dist=yes --download-suitesparse=yes --download-mumps=yes --download-scalapack=yes  --download-parmetis=yes  --download-parmetis-shared=1 --download-metis=yes  --download-metis-shared=1  --download-hypre=yes  --download-hypre-shared=1 --download-ml=yes  --download-ml-shared=1  --download-sundials=yes  --download-sundials-shared=1 
> 
>    The configuration script is putting oddly named libraries in hypre and sundials files in the directory arch-darwin-cxx-opt/lib/petsc/conf
> 
> in hypre:   --with-MPI-libs="mpi_cxx.dyl mpi.dyl"
> 
> in sundials: --with-mpi-libs="-lmpi_cxx -lmpi_cxx.dyl -lmpi -lmpi.dyl"
> 
> 
>    This is creating problems elsewhere in compilation. 
> 
>    Are there ways to get around this? 
> 
> Thanks,
> Manav
> 
> 



More information about the petsc-users mailing list