<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Lucida Console";
        panose-1:2 11 6 9 4 5 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi Pierre,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you again for prompt response. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">1) MinGW does not handle %td and %zu, so a default build triggers tons of warnings. Rajesh, you can add CFLAGS="-Wno-format-extra-args -Wno-stringop-overflow -Wformat=0" CXXFLAGS="-Wno-format-extra-args -Wno-stringop-overflow -Wformat=0"
 to have much fewer gibberish printed on screen<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:blue">           Where should I add these FLAGS? In make file or somewhere else.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I also followed steps suggested by Sathish. I got errors. <o:p>
</o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt;font-family:"Lucida Console";color:#1CA800">Sing***@WE*****
</span><span style="font-size:12.0pt;font-family:"Lucida Console";color:#B148C6">MINGW64</span><span style="font-size:12.0pt;font-family:"Lucida Console"">
<span style="color:#C0A000">~/petsc-3.18.2/src/snes/tutorials<o:p></o:p></span></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt;font-family:"Lucida Console"">$ mpiexe -n 2 ex5f90.exe<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt;font-family:"Lucida Console"">bash: mpiexe: command not found<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Then I tried command <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt;font-family:"Lucida Console"">mpif90.exe -n 2 ./ex5f90.exe<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I received many errors. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Your helps for fixing these issue would be appreciated.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Rajesh<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Pierre Jolivet <pierre@joliv.et> <br>
<b>Sent:</b> Tuesday, December 6, 2022 12:01 AM<br>
<b>To:</b> petsc-users <petsc-users@mcs.anl.gov><br>
<b>Cc:</b> Singh, Rajesh K <rajesh.singh@pnnl.gov><br>
<b>Subject:</b> Re: [petsc-users] Installation With MSYS2 and MinGW Compilers<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">On 6 Dec 2022, at 6:43 AM, Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">The build log looks fine. Its not clear why these warnings [and<br>
errors] are coming up in make check [while there are no such warnings<br>
in the build].<o:p></o:p></p>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">1) MinGW does not handle %td and %zu, so a default build triggers tons of warnings. Rajesh, you can add CFLAGS="-Wno-format-extra-args -Wno-stringop-overflow -Wformat=0" CXXFLAGS="-Wno-format-extra-args -Wno-stringop-overflow -Wformat=0"
 to have much fewer gibberish printed on screen<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">2) I’m able to reproduce the “Circular […] dependency dropped.” warnings after doing two successive make, but I know too little about Fortran (or Sowing?) to understand what could trigger this.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">But I agree with Satish, the build looks good otherwise and should work.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I made the necessary changes to Sowing, I hope I’ll be able to finish the MR (<a href="https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitlab.com%2Fpetsc%2Fpetsc%2F-%2Fmerge_requests%2F5903%2F&data=05%7C01%7Crajesh.singh%40pnnl.gov%7Cf969bc9a874347cccf5408dad7601bee%7Cd6faa5f90ae240338c0130048a38deeb%7C0%7C0%7C638059108381044976%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2Fk%2BlOijLXiL8Lf0O82B2naOW8cDEIFvWwjNB2SG%2BfpE%3D&reserved=0">https://gitlab.com/petsc/petsc/-/merge_requests/5903/</a>)
 by the end of the day so you can switch back to using the repository, if need be.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Pierre<o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal">Since you are using PETSc fromfortran - Can you try compiling/running<br>
a test manually and see if that works.<br>
<br>
cd src/snes/tutorials<br>
make ex5f90<br>
./ex5f90<br>
mpiexec -n 2 ./ex5f90<br>
<br>
Satish<br>
<br>
On Tue, 6 Dec 2022, Singh, Rajesh K wrote:<br>
<br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hi Satish,<br>
<br>
Thank you so much for offering help for installing PETSc in MSYS2 and mingw64. Attached are configure.log and make.log files. I am newb in this. Please let me know if you need further information. I will be glad to provide.
<br>
<br>
Regards,<br>
Rajesh<br>
<br>
-----Original Message-----<br>
From: Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> <br>
Sent: Monday, December 5, 2022 6:53 PM<br>
To: Singh, Rajesh K <<a href="mailto:rajesh.singh@pnnl.gov">rajesh.singh@pnnl.gov</a>><br>
Cc: Pierre Jolivet <<a href="mailto:pierre@joliv.et">pierre@joliv.et</a>>; <a href="mailto:petsc-users@mcs.anl.gov">
petsc-users@mcs.anl.gov</a><br>
Subject: Re: [petsc-users] Installation With MSYS2 and MinGW Compilers<br>
<br>
Can you send corresponding configure.log and make.log? [should be in PETSC_DIR/PETSC_ARCH/lib/petsc/conf<br>
<br>
Also what is your requirement wrt using PETSc on windows?<br>
- need to link with other MS compiler libraries?<br>
- Can you use WSL?<br>
<br>
Our primary instructions for windows usage is with MS/Intel compilers [with cygwin tools] not MSYS2.
<br>
<br>
<a href="https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpetsc.org%2Frelease%2Finstall%2Fwindows%2F&amp;data=05%7C01%7Crajesh.singh%40pnnl.gov%7Ccf1975f0691a4a6f77a808dad734eec8%7Cd6faa5f90ae240338c0130048a38deeb%7C0%7C0%7C638058922771517675%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=hpyNWLZfFlS6NgV5ehRZ0EwyCnkrJw4yYT0HBvrVJF8%3D&amp;reserved=0">https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpetsc.org%2Frelease%2Finstall%2Fwindows%2F&amp;data=05%7C01%7Crajesh.singh%40pnnl.gov%7Ccf1975f0691a4a6f77a808dad734eec8%7Cd6faa5f90ae240338c0130048a38deeb%7C0%7C0%7C638058922771517675%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=hpyNWLZfFlS6NgV5ehRZ0EwyCnkrJw4yYT0HBvrVJF8%3D&amp;reserved=0</a><br>
<br>
But As Pierre mentioned - MSYS2 should also work.<br>
<br>
Satish<br>
<br>
On Mon, 5 Dec 2022, Singh, Rajesh K via petsc-users wrote:<br>
<br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hi Pierre,<br>
<br>
I got following error while compiling PETSc.<br>
<br>
make all check<br>
<br>
[<a href="cid:image001.png@01D908C1.7267DCE0">cid:image001.png@01D908C1.7267DCE0</a>]<br>
<br>
Help for this would be appreciated.<br>
<br>
Thanks,<br>
Rajesh<br>
<br>
From: Pierre Jolivet <<a href="mailto:pierre@joliv.et">pierre@joliv.et</a>><br>
Sent: Monday, December 5, 2022 1:15 PM<br>
To: Singh, Rajesh K <<a href="mailto:rajesh.singh@pnnl.gov">rajesh.singh@pnnl.gov</a>><br>
Cc: <a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a><br>
Subject: Re: [petsc-users] Installation With MSYS2 and MinGW Compilers<br>
<br>
<br>
On 5 Dec 2022, at 9:50 PM, Singh, Rajesh K <<a href="mailto:rajesh.singh@pnnl.gov%3cmailto:rajesh.singh@pnnl.gov">rajesh.singh@pnnl.gov<mailto:rajesh.singh@pnnl.gov</a>>> wrote:<br>
<br>
Hi Pierre,<br>
<br>
Thank you so much for prompt response. I will run FORTRAN based code with PETSc. Therefore I guess I will need Fortran binding.<br>
<br>
OK, so, two things:<br>
1) as said earlier, Sowing is broken with MinGW, but I'm sadly one of <br>
the few PETSc people using this environment, so I'm one of the few who <br>
can fix it, but I can't tell you when I'll be able to deliver<br>
2) if you stick to an official tarball, the Fortran bindings should be shipped in. While I work on 1), could you stick to, e.g.,
<a href="https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fftp.mcs.anl.gov%2Fpub%2Fpetsc%2Frelease-snapshots%2Fpetsc-3.18.2.tar.gz&amp;data=05%7C01%7Crajesh.singh%40pnnl.gov%7Ccf1975f0691a4a6f77a808dad734eec8%7Cd6faa5f90ae240338c0130048a38deeb%7C0%7C0%7C638058922771517675%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=3gU1u2WRKKvNlBMbq%2FL6RZwvp%2FcRY%2BcLx5i9gJbp9nI%3D&amp;reserved=0%3chttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fftp.mcs.anl.gov%2Fpub%2Fpetsc%2Frelease-snapshots%2Fpetsc-3.18.2.tar.gz&amp;data=05%7C01%7Crajesh.singh%40pnnl.gov%7Ccf1975f0691a4a6f77a808dad734eec8%7Cd6faa5f90ae240338c0130048a38deeb%7C0%7C0%7C638058922771517675%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=3gU">
https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fftp.mcs.anl.gov%2Fpub%2Fpetsc%2Frelease-snapshots%2Fpetsc-3.18.2.tar.gz&amp;data=05%7C01%7Crajesh.singh%40pnnl.gov%7Ccf1975f0691a4a6f77a808dad734eec8%7Cd6faa5f90ae240338c0130048a38deeb%7C0%7C0%7C638058922771517675%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=3gU1u2WRKKvNlBMbq%2FL6RZwvp%2FcRY%2BcLx5i9gJbp9nI%3D&amp;reserved=0<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fftp.mcs.anl.gov%2Fpub%2Fpetsc%2Frelease-snapshots%2Fpetsc-3.18.2.tar.gz&amp;data=05%7C01%7Crajesh.singh%40pnnl.gov%7Ccf1975f0691a4a6f77a808dad734eec8%7Cd6faa5f90ae240338c0130048a38deeb%7C0%7C0%7C638058922771517675%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=3gU</a><o:p></o:p></p>
</blockquote>
</blockquote>
<p class="MsoNormal">1u2WRKKvNlBMbq%2FL6RZwvp%2FcRY%2BcLx5i9gJbp9nI%3D&amp;reserved=0>?<br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
Thanks,<br>
Pierre<br>
<br>
<br>
Regards<br>
Rajesh<br>
<br>
From: Pierre Jolivet <<a href="mailto:pierre@joliv.et%3cmailto:pierre@joliv.et">pierre@joliv.et<mailto:pierre@joliv.et</a>>><br>
Sent: Monday, December 5, 2022 12:41 PM<br>
To: Singh, Rajesh K <br>
<<a href="mailto:rajesh.singh@pnnl.gov%3cmailto:rajesh.singh@pnnl.gov">rajesh.singh@pnnl.gov<mailto:rajesh.singh@pnnl.gov</a>>><br>
Cc: <a href="mailto:petsc-users@mcs.anl.gov%3cmailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov<mailto:petsc-users@mcs.anl.gov</a>><br>
Subject: Re: [petsc-users] Installation With MSYS2 and MinGW Compilers<br>
<br>
Check twice before you click! This email originated from outside PNNL.<br>
<br>
Hello Rajesh,<br>
Do you need Fortran bindings?<br>
Otherwise, ./configure --with-fortran-bindings=0 should do the trick.<br>
Sowing compilation is broken with MinGW compiler.<br>
If you need Fortran bindings, we could try to fix it.<br>
<br>
Thanks,<br>
Pierre<br>
<br>
<br>
<br>
On 5 Dec 2022, at 9:22 PM, Singh, Rajesh K via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov%3cmailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov<mailto:petsc-users@mcs.anl.gov</a>>> wrote:<br>
<br>
Dear All:<br>
<br>
I am having diffisulty to install PETSC on the window system. I went through the the steps esplained in the web site and got following error.<br>
<br>
<image001.png><br>
<br>
Help for resolving this issue would be really appricaited.<br>
<br>
Thanks,<br>
Rajesh<br>
<br>
<o:p></o:p></p>
</blockquote>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
</blockquote>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>