[petsc-users] error while compiling PETSc on windows using cygwin

Barry Smith bsmith at petsc.dev
Thu Nov 2 11:03:19 CDT 2023


   It could be you would benefit from having the latest Microsoft compilers

   If you do not need C++ you could use --with-cxx=0

   Otherwise please send configure.log to petsc-maint at mcs.anl.gov 



> On Nov 2, 2023, at 11:20 AM, Maruthi NH <maruthinh at gmail.com> wrote:
> 
> Hi all,
> 
> I get the following error while trying to compile PETSc version 3.20.1 on Windows
> 
> \petsc\include\petsc/private/cpp/unordered_map.hpp(309): error C2938: 'std::enable_if_t<false,void>' : Failed to specialize alias template
> 
> This is the configuration file I used to compile PETSc
> 
> #!/usr/bin/python
> 
> import os
> petsc_hash_pkgs=os.path.join(os.getenv('HOME'),'petsc-hash-pkgs')
> 
> oadirf='"/cygdrive/c/Program Files (x86)/Intel/oneAPI"'
> oadir=os.popen('cygpath -u '+os.popen('cygpath -ms '+oadirf).read()).read().strip()
> oamkldir=oadir+'/mkl/2022.1.0/lib/intel64'
> oampidir=oadir+'/mpi/2021.6.0'
> 
> if __name__ == '__main__':
>   import sys
>   import os
>   sys.path.insert(0, os.path.abspath('config'))
>   import configure
>   configure_options = [
>     '--package-prefix-hash='+petsc_hash_pkgs,
>     '--with-debugging=0',
>     '--with-shared-libraries=0',
>     '--with-blaslapack-lib=-L'+oamkldir+' mkl_intel_lp64_dll.lib mkl_sequential_dll.lib mkl_core_dll.lib',
>     '--with-cc=win32fe cl',
>     '--with-cxx=win32fe cl',
>     '--with-fc=win32fe ifort',
>     'FOPTFLGS=-O3 -fp-model=precise',
>     '--with-mpi-include='+oampidir+'/include',
>     '--with-mpi-lib='+oampidir+'/lib/release/impi.lib',
>     '-with-mpiexec='+oampidir+'/bin/mpiexec -localonly',
>   ]
>   configure.petsc_configure(configure_options)
> 
> Regards,
> Maruthi



More information about the petsc-users mailing list