[petsc-dev] Error compiling PETSc on Windows

Smith, Barry F. bsmith at mcs.anl.gov
Thu Jul 5 19:47:14 CDT 2018


  This is not the cause of your problem but you have the wrong version of hypre installed for the version of PETSc.

          CC windows-intel-debug/obj/mat/impls/hypre/mhypre.o
mhypre.c
C:\sources\petsc\src\mat\impls\hypre\mhypre.c(1453): warning C4002: too many actual parameters for macro 'hypre_TFree'

You need to use the same version as is listed in config/BuildSystem/config/packages/hypre.py

If you run code that uses hypre it will crash.

   Barry





> On Jul 5, 2018, at 7:21 PM, Hector E Barrios Molano <hectorb at utexas.edu> wrote:
> 
> Hi PETSc Experts,
> 
> I am compiling PETSc from git repository on Windows 7. I am getting the following error, attached you will find make.log file:
> 
>           CC windows-intel-debug/obj/tao/leastsquares/impls/pounders/gqt.o
> gqt.c
>           FC windows-intel-debug/obj/dm/f90-mod/petscdmplexmod.o
>           FC windows-intel-debug/obj/ksp/f90-mod/petsckspmod.o
>           FC windows-intel-debug/obj/snes/f90-mod/petscsnesmod.o
>           FC windows-intel-debug/obj/ts/f90-mod/petsctsmod.o
>           FC windows-intel-debug/obj/tao/f90-mod/petsctaomod.o
>           AR windows-intel-debug/lib/libpetsc.lib
>       RANLIB windows-intel-debug/lib/libpetsc.lib
> make[2]: Leaving directory '/cygdrive/c/sources/petsc'
> make[1]: Leaving directory '/cygdrive/c/sources/petsc'
> **************************ERROR*************************************
>   Error during compile, check windows-intel-debug/lib/petsc/conf/make.log
>   Send it and windows-intel-debug/lib/petsc/conf/configure.log to petsc-maint at mcs.anl.gov
> ********************************************************************
> make: *** [makefile:36: all] Error 1
> 
> 
> Here is the configure command I am using:
> 
> ./configure --prefix=/cygdrive/c/installed/petsc_git-intel-debug/ --PETSC_DIR=/cygdrive/c/sources/petsc --PETSC_ARCH=windows-intel-debug --with-cc='win32fe cl' --with-fc='win32fe ifort' --with-mpi-include=["/cygdrive/c/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018/windows/mpi/intel64/include"] --with-mpi-lib=["/cygdrive/c/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018/windows/mpi/intel64/lib/release_mt/impi.lib"] --with-openmp=1 --with-parmetis-lib=/cygdrive/c/installed/parmetis/lib/parmetis.lib --with-parmetis-include=/cygdrive/c/installed/parmetis/include --with-metis-lib=/cygdrive/c/installed/parmetis/lib/metis.lib --with-metis-include=/cygdrive/c/installed/parmetis/include --with-zoltan-include=/cygdrive/c/installed/zoltan/include --with-zoltan-lib=/cygdrive/c/installed/zoltan/lib/zoltan.lib --with-hypre-include=/cygdrive/c/installed/hypre/include --with-hypre-lib=/cygdrive/c/installed/hypre/lib/HYPRE.lib --with-blas-lapack-lib=["/cygdrive/c/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018/windows/mkl/lib/intel64/mkl_intel_lp64.lib","/cygdrive/c/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018/windows/mkl/lib/intel64/mkl_core.lib","/cygdrive/c/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018/windows/mkl/lib/intel64/mkl_intel_thread.lib"] --with-scalapack-include="/cygdrive/c/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018/windows/mkl/include" --with-scalapack-lib=["/cygdrive/c/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018/windows/mkl/lib/intel64/mkl_scalapack_lp64.lib","/cygdrive/c/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018/windows/mkl/lib/intel64/mkl_blacs_intelmpi_lp64.lib"] --with-shared-libraries=0 -LIBS="\"/cygdrive/c/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018/windows/mkl/lib/intel64/mkl_intel_lp64.lib\" \"/cygdrive/c/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018/windows/mkl/lib/intel64/mkl_intel_thread.lib\" \"/cygdrive/c/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018/windows/mkl/lib/intel64//mkl_core.lib\" \"/cygdrive/c/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018/windows/mkl/lib/intel64/mkl_scalapack_lp64.lib\" \"/cygdrive/c/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018/windows/mkl/lib/intel64/mkl_blacs_intelmpi_lp64.lib\" libiomp5md.lib"
> 
> What could be the problem?
> 
> Thanks,
> 
> Hector
> 
> 
> <make.log>



More information about the petsc-dev mailing list