petsc4py fails to configure with my own lapack/blas
Lisandro Dalcin
dalcinl at gmail.com
Thu Jun 4 18:14:16 CDT 2009
On Thu, Jun 4, 2009 at 7:59 PM, Ondrej Certik <ondrej at certik.cz> wrote:
> On Thu, Jun 4, 2009 at 4:13 PM, Lisandro Dalcin<dalcinl at gmail.com> wrote:
>> 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?
>
> So those core PETSc libs are just .a libraries (not dynamic
> executables). Could that be a problem?
>
That could be a BIG problem. petsc4py does not "officially" support
PETSc builds with static libs, though it could work on some scenarios.
Moreover, even if you get it working, you will not be able to use let
say slepc4py, or any other C code depending on the PETSc libraries
(think of a fast, Cython-implemented Function()/Jacobian() routine for
a nonlinear problem solved with SNES).
I really recommend you to pass '--with-shared' to PETSc's configure.
> As to PETSc.so:
>
> $ ldd lib/linux-gnu-c-debug/PETSc.so
> linux-vdso.so.1 => (0x00007fff551ff000)
> libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f1b4c0c1000)
> libcblas.so.3gf => /usr/lib/libcblas.so.3gf (0x00007f1b4bea2000)
> libf77blas.so.3gf => /usr/lib/libf77blas.so.3gf (0x00007f1b4bc83000)
> libatlas.so.3gf => /usr/lib/libatlas.so.3gf (0x00007f1b4b2fd000)
> libdl.so.2 => /lib/libdl.so.2 (0x00007f1b4b0d9000)
> libmpi.so.0 => /usr/lib/libmpi.so.0 (0x00007f1b4ae36000)
> libopen-rte.so.0 => /usr/lib/libopen-rte.so.0 (0x00007f1b4abee000)
> libopen-pal.so.0 => /usr/lib/libopen-pal.so.0 (0x00007f1b4a982000)
> libnsl.so.1 => /lib/libnsl.so.1 (0x00007f1b4a768000)
> libutil.so.1 => /lib/libutil.so.1 (0x00007f1b4a565000)
> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f1b4a34c000)
> libpthread.so.0 => /lib/libpthread.so.0 (0x00007f1b4a130000)
> libmpi_f90.so.0 => /usr/lib/libmpi_f90.so.0 (0x00007f1b49f2c000)
> libmpi_f77.so.0 => /usr/lib/libmpi_f77.so.0 (0x00007f1b49cf3000)
> libgfortran.so.3 => /usr/lib/libgfortran.so.3 (0x00007f1b49a17000)
> libm.so.6 => /lib/libm.so.6 (0x00007f1b49792000)
> libc.so.6 => /lib/libc.so.6 (0x00007f1b4941f000)
> libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f1b49203000)
> /lib64/ld-linux-x86-64.so.2 (0x00007f1b4d0f7000)
> libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f1b48fff000)
> libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f1b48dfa000)
>
>
> So I don't know...
>
> 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
More information about the petsc-users
mailing list