[petsc-users] PETSc was configured with one OpenMPI version but now appears to be compiling using a different OpenMPI

Florian Lindner mailinglists at xgm.de
Thu Jun 11 06:23:28 CDT 2015


Hello,

I try to setup petsc on my Arch Linux box.  Download it using git -b maint.

% python2 configure works fine:
[...]
Compilers:                                                                                                                                                                                                                                   
  C Compiler:         mpicc  -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 -O0 
  C++ Compiler:       mpicxx  -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g -O0   -fPIC  
  Fortran Compiler:   mpif90  -fPIC -Wall -Wno-unused-variable -ffree-line-length-0 -g -O0  
Linkers:
  Shared linker:   mpicc  -shared  -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 -O0
  Dynamic linker:   mpicc  -shared  -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 -O0
make:
[...]
xxx=========================================================================xxx
 Configure stage complete. Now build PETSc libraries with (gnumake build):
   make PETSC_DIR=/home/florian/software/petsc PETSC_ARCH=arch-linux2-c-debug all
xxx=========================================================================xxx

Now building:

% make PETSC_DIR=/home/florian/software/petsc PETSC_ARCH=arch-linux2-c-debug all 

yields this error:

"PETSc was configured with one OpenMPI mpi.h version but now appears to be compiling using a different OpenMPI mpi.h version"

I would prefer to use my distributions openmpi 1.8.5, there is no other MPI version installed.

Using configure with --download-mpich and this compiler /home/florian/software/petsc/arch-linux2-c-debug/bin/mpicc seems to work.

Is openmpi 1.8.5 incompatible with petsc? Is used to work fine some time ago, but I'm not sure how my system changed in the last weeks when I haven't used petsc on this machine (Arch is a rolling release).

Thx,
Florian



More information about the petsc-users mailing list