Dear all,<br><br>I&#39;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 &#39;petscstack&#39; and &quot;PetscMemzero&#39;. On top of that, nm returns:<br>

<br>$ nm $PETSC_DIR/lib/*.so | grep PetscMemzero | c++filt<br>                 U PetscMemzero(void*, unsigned long)<br><br>$ nm $PETSC_DIR/lib/*.so | grep petscstack<br>                 U petscstack<br><br>The output of nm is the same for *.a<br>

<br>The compilation of the examples returns:<br>~/local/petsc/lib/libpetsc.so: undefined reference to `petscstack&#39;<br>~/local/petsc/lib/libpetsc.so: undefined reference to `PetscMemzero(void*, unsigned long)&#39;<br>
<br>
and the configuration line is:<br><br>./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/<a href="http://10.2.2.025/lib/64">10.2.2.025/lib/64</a> --with-shared=1 -with-x=1 --with-batch=1 --known-mpi-shared=0 --COPTFLAGS=-O2 --CXXOPTFLAGS=-O2 --FOPTFLAGS=-O2 --with-hdf5-dir=$HOME/local<br>

<br>Is there any option that might be causing this problem?<br><br>Thanks,<br><br>Miguel.<br>