[petsc-users] Error in configuring PETSc with Cygwin on Windows by using Intel MPI

Barry Smith bsmith at petsc.dev
Wed Nov 8 09:42:30 CST 2023


   Send the file $PETSC_ARCH/lib/petsc/conf/configure.log 



> On Nov 8, 2023, at 12:20 AM, 程奔 <ctchengben at mail.scut.edu.cn> wrote:
> 
> Hello,
> Recently I try to install PETSc with Cygwin since I'd like to use PETSc with Visual Studio on Windows10 plateform.For the sake of clarity, I firstly list the softwares/packages used below:
> 1. PETSc: version 3.19.2
> 2. VS: version 2022 
> 3. Intel MPI: download Intel oneAPI Base Toolkit and HPC Toolkit
> 4. Cygwin: see the picture attatched (see picture cygwin)
> 
> 
> And the compiler option in configuration is:
>  ./configure --prefix=/cygdrive/g/mypetsc/petsc2023  --with-cc='win32fe cl' --with-fc='win32fe ifort' --with-cxx='win32fe cl' --with-shared-libraries=0 
> --with-mpi-include=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/include 
> --with-mpi-lib=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/libTherefore, I write this e-mail to look for your help.
> /release/impi.lib 
> --with-mpiexec=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/bin/mpiexec -localonly
> 
> 
> 
> 
> but there return an error:
> *********************************************************************************************
>                               OSError while running ./configure
> ---------------------------------------------------------------------------------------------
>   Cannot run executables created with FC. If this machine uses a batch system
>   to submit jobs you will need to configure using ./configure with the additional option
>   --with-batch.
>   Otherwise there is problem with the compilers. Can you compile and run code with your
>   compiler '/cygdrive/g/mypetsc/petsc-3.19.2/lib/petsc/bin/win32fe/win32fe ifort'?
>   See https://petsc.org/release/faq/#error-libimf
> *********************************************************************************************
> 
> 
> 
> Then I try to open configure.log in petsc, but there turnout an error that I can't open it.(see picture 1)
> 
> And then I right click on properties and click safety,it just turnout "The permissions on test directory are incorrectly ordered.which may cause some entries to be ineffective." (see picture 2)
> 
> And it also likely seen “NULL SID” as the top entry in permission lists.(see picture 3)
> 
> Then i follow this blog(https://blog.dhampir.no/content/forcing-cygwin-to-create-sane-permissions-on-windows) to edit /etc/fstab in Cygwin, and add “noacl” to the mount options for /cygdrive.
> 
> But it's not working.
> 
> So I can't sent configure.log to you guys, it seems cygwin that installed in my computer happened to some problem.
> 
> Mayebe the error happened in the configure on petsc just because of this reason.
> 
> 
> 
> So I wrrit this email to report my problem and ask for your help.  
> 
> 
> Looking forward your reply!
> 
> 
> sinserely,
> Cheng.
> <cygwin.png><picture1.jpg><picture2.png><picture3.jpg>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20231108/2dfb3fb2/attachment-0001.html>


More information about the petsc-users mailing list