<div dir="ltr">Hi Miguel,<div><br></div><div>Please send the complete configure.log and make.log to <a href="mailto:petsc-maint@mcs.anl.gov">petsc-maint@mcs.anl.gov</a></div><div><br></div><div>Are you able to build with --with-shared=0?</div>
<div><br></div><div>A<br><div><br><div class="gmail_quote">On Wed, May 25, 2011 at 1:38 PM, Miguel Fosas <span dir="ltr">&lt;<a href="mailto:miguel.fosas@gmail.com">miguel.fosas@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
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" target="_blank">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><font color="#888888"><br>Miguel.<br>
</font></blockquote></div><br></div></div></div>