[petsc-users] Configure with IBM XL toolchain quietly ignores request to build shared libraries

Alp Dener alp at dener.me
Wed Jul 30 19:49:34 CDT 2014


Hi,

I’m trying to build PETSc 3.4.5 on an IBM BlueGene/Q at the moment using the XL toolchain. I need to build the PETSc shared library and to accomplish that, I use the following configure options:

./configure \
    --with-shared-libraries=1 \
    --with-debugging=1 \
    --with-fortran-interfaces=1 \
    --with-mpi=/bgsys/drivers/ppcfloor/comm \
    --with-blas-lib="-L/gpfs/u/software/bgq/lapack/xl/3.5.0/lib -lblas" \
    --with-lapack-lib="-L/gpfs/u/software/bgq/lapack/xl/3.5.0/lib -llapack" \
    --with-metis-include=/gpfs/u/software/bgq/parmetis/xl/4.0.2/include \
    --with-metis-lib="-L/gpfs/u/software/bgq/parmetis/xl/4.0.2/lib -lmetis" \
    --with-parmetis-include=/gpfs/u/software/bgq/parmetis/xl/4.0.2/include \
    --with-parmetis-lib="-L/gpfs/u/software/bgq/parmetis/xl/4.0.2/lib -lparmetis" \
    --download-superlu=/gpfs/u/barn/ODLC/shared/src/PETSc/superlu_4.3.tar.gz \
    --download-superlu_dist=/gpfs/u/barn/ODLC/shared/src/PETSc/superlu_dist_3.3.tar.gz \
    --prefix=/gpfs/u/barn/ODLC/shared/xl/petsc/3.4.5 \
    --PETSC_ARCH=xl-dbg \
    FFLAGS="-qextname”

Despite specifying the “—with-shared-libraries” option, the configuration report shows “shared libraries : disabled”. The configure log doesn’t appear to contain any warnings or errors about this (or maybe I couldn’t find it).

Normally, compiling shared objects with XL compilers require a -qmkshrobj flag. I’ve attempted passing this to PETSc using LDFLAGS but this causes the configuration to fail with an error, stating that it cannot run executables created with the C compiler.

This problem seems to be persistent across a number of PETSc versions. I need to use 3.4.5 for compatibility reasons, but I’ve attempted the same build with 3.5, 3.3 and 3.0 with the exact same results.

Would really appreciate it if anyone can offer guidance on how to force PETSc to build its shared library. The configure log from the above options is provided in the attachment.

Thanks!
——————————————————
Alp Dener
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: application/octet-stream
Size: 3494103 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140730/ae3c8fce/attachment-0001.obj>


More information about the petsc-users mailing list