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

程奔 ctchengben at mail.scut.edu.cn
Wed Nov 8 01:20:49 CST 2023


Sorry, the configure 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/lib/release/impi.lib 
--with-mpiexec=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/bin/mpiexec -localonly

-----原始邮件-----
发件人:程奔 <ctchengben at mail.scut.edu.cn>
发送时间:2023-11-08 13:20:21 (星期三)
收件人: petsc-users at mcs.anl.gov
主题: Error in configuring PETSc with Cygwin on Windows by using Intel MPI


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20231108/a310b499/attachment.html>


More information about the petsc-users mailing list