[petsc-users] Errors during PETSC installation (complex version)
Satish Balay
balay at mcs.anl.gov
Sat Sep 15 13:54:44 CDT 2018
hm - this sourcefile should not get built when configured with
--with-scalar-type=complex
Suggest starting a fresh build and see if it works. Also make sure
there is no prior install of petsc in the specified --prefix location.
Also - the latest patched version in petsc-3.9 is petsc-3.9.4 - and
the latest version is petsc-3.10.0 - suggest using the later
versions. [when doing the rebuild]
Satish
On Sat, 15 Sep 2018, Evan Um wrote:
> 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
>
More information about the petsc-users
mailing list