[petsc-users] Error in configuring PETSc with Cygwin on Windows by using Intel MPI
Barry Smith
bsmith at petsc.dev
Sun Nov 12 21:19:23 CST 2023
The configure is failing while testing the Intel Fortran compiler
Executing: /cygdrive/g/mypetsc/petsc-3.19.2/lib/petsc/bin/win32fe/win_ifort -c -o /tmp/petsc-61cxbt4e/config.setCompilers/conftest.o -I/tmp/petsc-61cxbt4e/config.compilers -I/tmp/petsc-61cxbt4e/config.setCompilers -MT -Z7 -Od /tmp/petsc-61cxbt4e/config.setCompilers/conftest.F90
Successful compile:
Source:
program main
end
Executing: /cygdrive/g/mypetsc/petsc-3.19.2/lib/petsc/bin/win32fe/win_ifort -o /tmp/petsc-61cxbt4e/config.setCompilers/conftest.exe -MT -Z7 -Od /tmp/petsc-61cxbt4e/config.setCompilers/conftest.o
stdout: LINK : û���ҵ� G:\cygwin\tmp\PE9718~1\CONFIG~1.SET\conftest.exe ����һ����������û��������������ִ����ȫ����
Linker output before filtering:
LINK : û���ҵ� G:\cygwin\tmp\PE9718~1\CONFIG~1.SET\conftest.exe ����һ����������û��������������ִ����ȫ����
Linker output after filtering:
LINK : û���ҵ� G:\cygwin\tmp\PE9718~1\CONFIG~1.SET\conftest.exe ����һ����������û��������������ִ����ȫ����
Can you please try changing the compiler to print its messages in English and then attempt to compile the trivial program above as indicated and send all the output.
Barry
> On Nov 12, 2023, at 9:02 PM, 程奔 <ctchengben at mail.scut.edu.cn> wrote:
>
> Sorry for replying to your email so late, and I find configure.log
>
>
> -----原始邮件-----
> 发件人: "Barry Smith" <bsmith at petsc.dev>
> 发送时间: 2023-11-08 23:42:30 (星期三)
> 收件人: 程奔 <ctchengben at mail.scut.edu.cn>
> 抄送: petsc-users at mcs.anl.gov
> 主题: Re: [petsc-users] Error in configuring PETSc with Cygwin on Windows by using Intel MPI
>
>
> 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/20231112/e708b796/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: application/octet-stream
Size: 1251493 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20231112/e708b796/attachment-0002.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20231112/e708b796/attachment-0004.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log.bkp
Type: application/octet-stream
Size: 1251477 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20231112/e708b796/attachment-0003.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20231112/e708b796/attachment-0005.html>
More information about the petsc-users
mailing list