<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><br></div><div><br></div> You can check the build was successful manually.<div><br></div><div> cd src/snes/tutorials</div><div> make ex19</div><div> mpiexec -n 1 ./ex19 -snes_monitor </div><div><br></div><div><br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On Nov 14, 2023, at 11:46 AM, 程奔 <ctchengben@mail.scut.edu.cn> wrote:</div><br class="Apple-interchange-newline"><div><meta charset="UTF-8"><div class="default-font-1699951573088" style="font-size: 14px; font-family: 宋体, arial, Verdana, sans-serif; caret-color: rgb(0, 0, 0); font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><p style="margin: 0px 0px 14px; font-size: 14px;">Hi Barry,</p><p style="margin: 0px 0px 14px; font-size: 14px;"><span>Thanks for the suggestion. It seems good after I change complier to english.Then I begin to configure and make it. </span><br><span>But unfortunate, when I try to make PETSC_DIR=/cygdrive/g/mypetsc/petsc-3.19.2 PETSC_ARCH=arch-mswin-c-debug check</span><br><span>It just happen to an error:</span><br><span>Running check examples to verify correct installation</span><br><span>Using PETSC_DIR=/cygdrive/g/mypetsc/petsc-3.19.2 and PETSC_ARCH=arch-mswin-c-debug</span><br><span>/usr/bin/bash: -c: line 9: unexpected EOF while looking for matching `"'</span><br><span>make[1]: *** [makefile:123: check] Error 2</span><br><span>make: *** [GNUmakefile:17: check] Error 2</span><br><span><br></span><br><span>So I send email to look for you help, and configure.log is attached.</span><br><span><br></span><br><span>sinserely,</span><br><span>Cheng.</span><br><br></p><br><br><blockquote name="replyContent" class="ReferenceQuote" style="font-size: 14px; padding-left: 5px; margin-left: 5px; border-left-width: 2px; border-left-style: solid; border-left-color: rgb(182, 182, 182); margin-right: 0px;">-----原始邮件-----<br><b>发件人:</b><span class="Apple-converted-space"> </span><span id="rc_from">"Barry Smith" <<a href="mailto:bsmith@petsc.dev">bsmith@petsc.dev</a>></span><br><b>发送时间:</b><span class="Apple-converted-space"> </span><span id="rc_senttime">2023-11-13 11:19:23 (星期一)</span><br><b>收件人:</b><span class="Apple-converted-space"> </span>程奔 <<a href="mailto:ctchengben@mail.scut.edu.cn">ctchengben@mail.scut.edu.cn</a>><br><b>抄送:</b><span class="Apple-converted-space"> </span>petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>><br><b>主题:</b><span class="Apple-converted-space"> </span>Re: [petsc-users] Error in configuring PETSc with Cygwin on Windows by using Intel MPI<br><br><div><br></div> The configure is failing while testing the Intel Fortran compiler<div><br></div><div><div>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 </div><div>Successful compile:</div><div>Source:</div><div> program main</div><div><br></div><div> end</div><div><br></div><div>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 </div><div>stdout: LINK : û���ҵ� G:\cygwin\tmp\PE9718~1\CONFIG~1.SET\conftest.exe ����һ����������û��������������ִ����ȫ����</div><div>Linker output before filtering:</div><div>LINK : û���ҵ� G:\cygwin\tmp\PE9718~1\CONFIG~1.SET\conftest.exe ����һ����������û��������������ִ����ȫ����</div><div>Linker output after filtering:</div><div>LINK : û���ҵ� G:\cygwin\tmp\PE9718~1\CONFIG~1.SET\conftest.exe ����һ����������û��������������ִ����ȫ����</div><div><br></div><div>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.</div><div><br></div><div>Barry</div><div><br></div><div><br><blockquote type="cite"><div>On Nov 12, 2023, at 9:02 PM, 程奔 <<a data-auto-link="1" href="mailto:ctchengben@mail.scut.edu.cn">ctchengben@mail.scut.edu.cn</a>> wrote:</div><br class="Apple-interchange-newline"><div><div class="default-font-1699812157464" style="font-size: 14px; font-family: 宋体, arial, Verdana, sans-serif; caret-color: rgb(0, 0, 0); font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span>Sorry for replying to your email so late, and I find configure.log<span class="Apple-converted-space"> </span></span><br><br><br><blockquote name="replyContent" class="ReferenceQuote" style="font-size: 14px; padding-left: 5px; margin-left: 5px; border-left-width: 2px; border-left-style: solid; border-left-color: rgb(182, 182, 182); margin-right: 0px;">-----原始邮件-----<br><b>发件人:</b><span class="Apple-converted-space"> </span><span id="rc_from">"Barry Smith" <<a data-auto-link="1" href="mailto:bsmith@petsc.dev">bsmith@petsc.dev</a>></span><br><b>发送时间:</b><span class="Apple-converted-space"> </span><span id="rc_senttime">2023-11-08 23:42:30 (星期三)</span><br><b>收件人:</b><span class="Apple-converted-space"> </span>程奔 <<a data-auto-link="1" href="mailto:ctchengben@mail.scut.edu.cn">ctchengben@mail.scut.edu.cn</a>><br><b>抄送:</b><span class="Apple-converted-space"> </span><a data-auto-link="1" href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a><br><b>主题:</b><span class="Apple-converted-space"> </span>Re: [petsc-users] Error in configuring PETSc with Cygwin on Windows by using Intel MPI<br><br><div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><br></div> Send the file $PETSC_ARCH/lib/petsc/conf/configure.log <div><br></div><div><br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On Nov 8, 2023, at 12:20 AM, 程奔 <<a data-auto-link="1" href="mailto:ctchengben@mail.scut.edu.cn">ctchengben@mail.scut.edu.cn</a>> wrote:</div><br class="Apple-interchange-newline"><div><div class="default-font-1699420820908" style="font-size: 14px; font-family: 宋体, arial, Verdana, sans-serif; caret-color: rgb(0, 0, 0); font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span style="font-size: 14px;">Hello,</span><br><span style="font-size: 14px;">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:</span><br><span style="font-size: 14px;">1. PETSc: version 3.19.2</span><br><span style="font-size: 14px;">2. VS: version 2022 </span><br><span style="font-size: 14px;">3. Intel MPI: download Intel oneAPI Base Toolkit and HPC Toolkit</span><br><span style="font-size: 14px;">4. Cygwin: see the picture attatched (see picture cygwin)</span><br><span style="font-size: 14px;"><br></span><br><span style="font-size: 14px;">And the compiler option in configuration is:</span><br><span style="font-size: 14px;"> ./configure --prefix=/cygdrive/g/mypetsc/petsc2023 --with-cc='win32fe cl' --with-fc='win32fe ifort' --with-cxx='win32fe cl' </span><span style="font-size: 14px;">--with-shared-libraries=0 </span><br><span style="font-size: 14px;">--with-mpi-include=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/include </span><br><span style="font-size: 14px;">--with-mpi-lib=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/lib</span><span style="font-size: 14px;">Therefore, I write this e-mail to look for your help.</span><br><span style="font-size: 14px;">/release/impi.lib </span><br><span style="font-size: 14px;">--with-mpiexec=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/bin/mpiexec -localonly</span><br><span style="font-size: 14px;"><br></span><br><span style="font-size: 14px;"><br></span><br><span style="font-size: 14px;">but there return an error:</span><br><span style="font-size: 14px;">*********************************************************************************************</span><br><span style="font-size: 14px;"> OSError while running ./configure</span><br><span style="font-size: 14px;">---------------------------------------------------------------------------------------------</span><br><span style="font-size: 14px;"> Cannot run executables created with FC. If this machine uses a batch system</span><br><span style="font-size: 14px;"> to submit jobs you will need to configure using ./configure with the additional option</span><br><span style="font-size: 14px;"> --with-batch.</span><br><span style="font-size: 14px;"> Otherwise there is problem with the compilers. Can you compile and run code with your</span><br><span style="font-size: 14px;"> compiler '/cygdrive/g/mypetsc/petsc-3.19.2/lib/petsc/bin/win32fe/win32fe ifort'?</span><br><span style="font-size: 14px;"> See<span class="Apple-converted-space"> </span><a _href="https://petsc.org/release/faq/#error-libimf"></a><a href="https://petsc.org/release/faq/#error-libimf">https://petsc.org/release/faq/#error-libimf</a></span><br><span style="font-size: 14px;">*********************************************************************************************</span><br><span style="font-size: 14px;"><br></span><p style="margin: 0px 0px 14px; font-size: 14px;"><br></p><p style="margin: 0px 0px 14px; font-size: 14px;">Then I try to open configure.log in petsc, but there turnout an error that I can't open it.(see picture 1)</p><p style="margin: 0px 0px 14px; font-size: 14px;">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)</p><p style="margin: 0px 0px 14px; font-size: 14px;">And it also <span>likely seen “NULL SID” as the top entry in permission lists.</span>(see picture 3)</p><p style="margin: 0px 0px 14px; font-size: 14px;">Then i follow this blog(<span><a _href="https://blog.dhampir.no/content/forcing-cygwin-to-create-sane-permissions-on-windows"></a><a href="https://blog.dhampir.no/content/forcing-cygwin-to-create-sane-permissions-on-windows">https://blog.dhampir.no/content/forcing-cygwin-to-create-sane-permissions-on-windows</a></span>) to <span>edit /etc/fstab in Cygwin, and add “noacl” to the mount options for /cygdrive.</span></p><p style="margin: 0px 0px 14px; font-size: 14px;">But it's not working.</p><p style="margin: 0px 0px 14px; font-size: 14px;">So I can't sent configure.log to you guys, it seems cygwin that installed in my computer happened to some problem.<br></p><p style="margin: 0px 0px 14px; font-size: 14px;">Mayebe the error happened in the configure on petsc just because of this reason.</p><p style="margin: 0px 0px 14px; font-size: 14px;"><br></p><p style="margin: 0px 0px 14px; font-size: 14px;">So I wrrit this email to report my problem and ask for your help. </p><br><span style="font-size: 14px;">Looking forward your reply!</span><br><span style="font-size: 14px;"><br></span><br><span style="font-size: 14px;">sinserely,</span><br><span style="font-size: 14px;">Cheng.</span><br><span style="font-size: 16px;"></span></div><span id="cid:9E104A6C-3583-472D-9B75-734CFB6452E7"><cygwin.png></span><span id="cid:BA65C11B-72C1-4C43-A24E-AEC0381B0BC7"><picture1.jpg></span><span id="cid:723A8703-B7DC-486E-9AB9-330D81FE09D8"><picture2.png></span><span id="cid:1E0C2F95-D8FE-460E-B8BD-725739F4BE8C"><picture3.jpg></span></div></blockquote></div><br></div></div></blockquote></div></div></blockquote></div></div><div><div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><div><blockquote type="cite"><div></div></blockquote></div></div></div></div><div><div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><div><blockquote type="cite"><div></div></blockquote></div><br></div></div></div></blockquote></div></div></blockquote></div></div></body></html>