[petsc-users] Undefined symbols 'petscstack' and 'PetscMemzero'

Miguel Fosas miguel.fosas at gmail.com
Wed May 25 05:38:45 CDT 2011


Dear all,

I'm trying to compile PETSc (3.1-p8) on an SGI Altix using Intel C/C++
compilers (the exact configure line is shown below). When trying to perform
the tests, the compilation of the examples fails because the linker is not
able to find the symbols 'petscstack' and "PetscMemzero'. On top of that, nm
returns:

$ nm $PETSC_DIR/lib/*.so | grep PetscMemzero | c++filt
                 U PetscMemzero(void*, unsigned long)

$ nm $PETSC_DIR/lib/*.so | grep petscstack
                 U petscstack

The output of nm is the same for *.a

The compilation of the examples returns:
~/local/petsc/lib/libpetsc.so: undefined reference to `petscstack'
~/local/petsc/lib/libpetsc.so: undefined reference to `PetscMemzero(void*,
unsigned long)'

and the configuration line is:

./configure --prefix=$HOME/local/petsc --with-clanguage=c++ --with-mpi=yes
--with-mpi-shared=1 --with-scalar-type=complex --with-fortran
--with-fortran-kernels=1 --with-cc=icc --with-fc=ifort --with-cxx=icpc
--with-debugging=0 --with-blas-lapack-dir=/usr/local/intel/mkl/
10.2.2.025/lib/64 --with-shared=1 -with-x=1 --with-batch=1
--known-mpi-shared=0 --COPTFLAGS=-O2 --CXXOPTFLAGS=-O2 --FOPTFLAGS=-O2
--with-hdf5-dir=$HOME/local

Is there any option that might be causing this problem?

Thanks,

Miguel.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110525/d9665fdb/attachment.htm>


More information about the petsc-users mailing list