I tried to compile PESTC using this configuration:
./configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran --download-f-blas-lapack=1 --download-openmpi --with-shared-libraries
make PETSC_DIR=/tmp/petsc-3.3-p7 PETSC_ARCH=arch-linux2-c-debug all
But when compiling my lib that uses petsc, even though I linked all petsc libs it's complain at runtime of: undefined symbol: _Z10VecGetSizeP6_p_VecPi
, and after some search in the interne I came across some .so that my petsc didn't build, libs like libpetscvec.so
or libpetscsnes.so
.
I also found that it will generate some .mod
with the same name of these non-generated libs (ex: /tmp/petsc-3.3-p7/arch-linux2-c-debug/include/petscsnes.mod
).
so I'm not sure if I'm missing a flag that should tell the compiler to give me libs no modules, or maybe if they are in some external packages, and that I should install with --download-SOMEPACKAGE
.
Here is the .so
libs that are generated in the $PETSC_DIR/$PETSC_ARCH/lib
:
libmca_common_sm.so
libmca_common_sm.so.1
libmca_common_sm.so.1.0.2
libmpi.so
libmpi.so.0
libmpi.so.0.0.4
libmpi_cxx.so
libmpi_cxx.so.0
libmpi_cxx.so.0.0.1
libmpi_f77.so
libmpi_f77.so.0
libmpi_f77.so.0.0.3
libmpi_f90.so
libmpi_f90.so.0
libmpi_f90.so.0.1.0
libopen-pal.so
libopen-pal.so.0
libopen-pal.so.0.0.0
libopen-rte.so
libopen-rte.so.0
libopen-rte.so.0.0.0
libopenmpi_malloc.so
libopenmpi_malloc.so.0
libopenmpi_malloc.so.0.0.0
libpetsc.so