This smells to a 32/64 bit libs mismatch, or a g77/g95/gfortran mismatch. Addionally, could you try to run 'ldd' on core PETSc libs and on the PETSc.so extension module? On Thu, Jun 4, 2009 at 7:00 PM, Ondrej Certik <[email protected]> wrote:
Hi,
I am trying to build petsc-3.0.0 inside Sage, for which I want it to use Sage's lapack and blas.
Here is what I do:
./configure --prefix="$SAGE_LOCAL" --with-blas-lapack-dir="$SAGE_LOCAL/lib" --CFLAGS="-fPIC" --CXXFLAGS="-fPIC"
(The -fPIC flags are necessary, otherwise petsc4py fails to build on 64bit when linking with petsc -- that might be another bug)
When I execute the above line, I get:
********************************************************************************* UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details): --------------------------------------------------------------------------------------- You set a value for --with-blas-lapack-dir=<dir>, but /home/ondrej/ext/spd-3.4.2spd3-ubuntu-64bit/local/lib cannot be used *********************************************************************************
and a configure.log is attached. I also tried:
./configure --prefix="$SAGE_LOCAL" --with-lapack-lib="$SAGE_LOCAL/lib/liblapack.a" --with-blas-lib="$SAGE_LOCAL/lib/libblas.a" --CFLAGS="-fPIC" --CXXFLAGS="-fPIC"
but I got the same result. So as a workaround, I configure it with:
./configure --prefix="$SAGE_LOCAL" --with-blas-lapack-dir="/usr/lib" --CFLAGS="-fPIC" --CXXFLAGS="-fPIC"
which works fine, petsc4py also installs fine, but unfortunately it doesn't import:
http://code.google.com/p/femhub/issues/detail?id=30
which I suspect is due to the wrong lapack and blas during petsc build (but I may be wrong, maybe it's another bug).
Does anyone knows what else I can try to get it to work?
Thanks, Ondrej
-- Lisandro Dalcín --------------- Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC) Instituto de Desarrollo Tecnológico para la Industria Química (INTEC) Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET) PTLC - Güemes 3450, (3000) Santa Fe, Argentina Tel/Fax: +54-(0)342-451.1594