[petsc-users] Petsc-3.2 with superlu_dist building error

Ping Rong ping.rong at tuhh.de
Thu Oct 27 13:34:13 CDT 2011

Hello all,

I was trying to compile the PETSc-3.2-p4 with superlu_dist. The machine 
is running with Ubuntu 10.04, gcc 4.4.5 and cmake 2.8.5. the 
configuration looks like the following:
./config/configure.py \
--with-precision=double \
--with-blas-lib=$LIBS_DIR/lapack/lib/libblas.so \
--with-lapack-lib=$LIBS_DIR/lapack/lib/liblapack.so \
--with-scalar-type=complex \
--with-clanguage=c++ \
--with-mpi-dir=$LIBS_DIR/mpich2 \
--download-superlu=yes \
--with-superlu=1 \
--download-parmetis=yes \
--with-parmetis=1 \
--download-superlu_dist=yes \
--with-superlu_dist=1 \
--with-debugging=no \

when I try to run "make all", it throws the error
[ 60%] Building CXX object CMakeFiles/petsc.dir/src/mat/order/amd/amd.c.o
In function ‘PetscErrorCode MatGetFactor_aij_superlu_dist(_p_Mat*, 
MatFactorType, _p_Mat**)’:
error: ‘DOUBLE’ was not declared in this scope
In function ‘PetscErrorCode MatFactorInfo_SuperLU_DIST(_p_Mat*, 
error: ‘DOUBLE’ was not declared in this scope

I have been using this configuration with the dev version before 3.2 is 
released. It worked quite well. I also test the same configuration on a 
redhat machine with gcc 4.4.4-13 and cmake 2.8.5. it works well, too. 
Any ideas what may go wrong? is this compiler related? Thanks!!

Ping Rong, M.Sc.
Hamburg University of Technology
Institut of modelling and computation
Denickestraße 17 (Room 3031)
21073 Hamburg

Tel.: ++49 - (0)40 42878 2749
Fax:  ++49 - (0)40 42878 43533
Email: ping.rong at tuhh.de

More information about the petsc-users mailing list