[petsc-users] Error in configuring PETSc with Cygwin on Windows by using Intel MPI
程奔
ctchengben at mail.scut.edu.cn
Tue Nov 7 23:20:21 CST 2023
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/dba339c4/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygwin.png
Type: image/png
Size: 106545 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20231108/dba339c4/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: picture1.jpg
Type: image/jpeg
Size: 44718 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20231108/dba339c4/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: picture2.png
Type: image/png
Size: 4164 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20231108/dba339c4/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: picture3.jpg
Type: image/jpeg
Size: 90655 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20231108/dba339c4/attachment-0003.jpg>
More information about the petsc-users
mailing list