[petsc-users] Errors during PETSC installation (complex version)

Evan Um evanum at gmail.com
Sat Sep 15 13:19:24 CDT 2018


Dear PETSC users,

My colleague and I found an complex number related error (passing arguments
of PetscMax and PetscMin) during PETSC installation. If you have a similar
experience, could you suggest a trouble shooting?

Thanks,
Evan


Installation configuration:

d=${HOME}/usr/lib/petsc-3.9.3
./configure PETSC_DIR=$d PETSC_ARCH=linux-intel
--prefix=${HOME}/usr/lib/petsc-3.9.3-intel-mumps
--with-mpi-dir=/global/software/sl-6.x86_64/modules/
intel/2013_sp1.4.211/openmpi/1.6.5-intel --with-scalar-type=complex
--download-fblaslapack=${d}/fblaslapack-3.1.1.tar.gz
--download-superlu_dist --download-metis --download-parmetis
--download-scotch --download-ptscotch --with-fortran-kernels=yes
--with-openmp --download-mumps --with-precision=double --download-superlu
--with-cxx-dialect=C++11 --download-scalapack --with-debugging=0

Errors:

          CC linux-intel/obj/ksp/pc/impls/kaczmarz/kaczmarz.o
          CC linux-intel/obj/ksp/pc/impls/galerkin/galerkin.o
/data1/home/mcommer/usr/lib/petsc-3.9.3/src/ksp/pc/impls/tfs/ivec.c(601):
error: complex type is not allowed
      *arg1 = PetscMax(*arg1,*arg2);
              ^

/data1/home/mcommer/usr/lib/petsc-3.9.3/src/ksp/pc/impls/tfs/ivec.c(625):
error: complex type is not allowed
      *arg1 = PetscMin(*arg1,*arg2);
              ^

compilation aborted for /data1/home/mcommer/usr/lib/
petsc-3.9.3/src/ksp/pc/impls/tfs/ivec.c (code 2)
gmake[2]: *** [linux-intel/obj/ksp/pc/impls/tfs/ivec.o] Error 2
gmake[2]: *** Waiting for unfinished jobs....
gmake[2]: Leaving directory `/data1/home/mcommer/usr/lib/petsc-3.9.3'
gmake[1]: *** [gnumake] Error 2
gmake[1]: Leaving directory `/data1/home/mcommer/usr/lib/petsc-3.9.3'
**************************ERROR*************************************
  Error during compile, check linux-intel/lib/petsc/conf/make.log
  Send it and linux-intel/lib/petsc/conf/configure.log to
petsc-maint at mcs.anl.gov
********************************************************************
make: *** [all] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20180915/da1235f0/attachment.html>


More information about the petsc-users mailing list