[petsc-users] Installation With MSYS2 and MinGW Compilers
Pierre Jolivet
pierre at joliv.et
Tue Dec 6 13:03:39 CST 2022
> On 6 Dec 2022, at 7:50 PM, Singh, Rajesh K <rajesh.singh at pnnl.gov> wrote:
>
> Hi Pierre,
>
> Thank you again for prompt response.
>
> 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
>
> Where should I add these FLAGS? In make file or somewhere else.
On the ./configure command line.
> I also followed steps suggested by Sathish. I got errors.
>
> Sing***@WE***** MINGW64 ~/petsc-3.18.2/src/snes/tutorials
> $ mpiexe -n 2 ex5f90.exe
> bash: mpiexe: command not found
Either add Microsoft MPI to your path, or use /C/Program\ Files/Microsoft\ MPI/Bin/mpiexec.exe instead of mpiexe
Thanks,
Pierre
> Then I tried command
>
> mpif90.exe -n 2 ./ex5f90.exe
>
> I received many errors.
>
> Your helps for fixing these issue would be appreciated.
>
> Thanks,
> Rajesh
>
>
>
>
>
> From: Pierre Jolivet <pierre at joliv.et>
> Sent: Tuesday, December 6, 2022 12:01 AM
> To: petsc-users <petsc-users at mcs.anl.gov>
> Cc: Singh, Rajesh K <rajesh.singh at pnnl.gov>
> Subject: Re: [petsc-users] Installation With MSYS2 and MinGW Compilers
>
>
> On 6 Dec 2022, at 6:43 AM, Satish Balay <balay at mcs.anl.gov <mailto:balay at mcs.anl.gov>> wrote:
>
> The build log looks fine. Its not clear why these warnings [and
> errors] are coming up in make check [while there are no such warnings
> in the build].
>
> 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
> 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.
> But I agree with Satish, the build looks good otherwise and should work.
> I made the necessary changes to Sowing, I hope I’ll be able to finish the MR (https://gitlab.com/petsc/petsc/-/merge_requests/5903/ <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>) by the end of the day so you can switch back to using the repository, if need be.
>
> Thanks,
> Pierre
>
>
> Since you are using PETSc fromfortran - Can you try compiling/running
> a test manually and see if that works.
>
> cd src/snes/tutorials
> make ex5f90
> ./ex5f90
> mpiexec -n 2 ./ex5f90
>
> Satish
>
> On Tue, 6 Dec 2022, Singh, Rajesh K wrote:
>
>
> Hi Satish,
>
> 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.
>
> Regards,
> Rajesh
>
> -----Original Message-----
> From: Satish Balay <balay at mcs.anl.gov <mailto:balay at mcs.anl.gov>>
> Sent: Monday, December 5, 2022 6:53 PM
> To: Singh, Rajesh K <rajesh.singh at pnnl.gov <mailto:rajesh.singh at pnnl.gov>>
> Cc: Pierre Jolivet <pierre at joliv.et <mailto:pierre at joliv.et>>; petsc-users at mcs.anl.gov <mailto:petsc-users at mcs.anl.gov>
> Subject: Re: [petsc-users] Installation With MSYS2 and MinGW Compilers
>
> Can you send corresponding configure.log and make.log? [should be in PETSC_DIR/PETSC_ARCH/lib/petsc/conf
>
> Also what is your requirement wrt using PETSc on windows?
> - need to link with other MS compiler libraries?
> - Can you use WSL?
>
> Our primary instructions for windows usage is with MS/Intel compilers [with cygwin tools] not MSYS2.
>
> https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpetsc.org%2Frelease%2Finstall%2Fwindows%2F&data=05%7C01%7Crajesh.singh%40pnnl.gov%7Ccf1975f0691a4a6f77a808dad734eec8%7Cd6faa5f90ae240338c0130048a38deeb%7C0%7C0%7C638058922771517675%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=hpyNWLZfFlS6NgV5ehRZ0EwyCnkrJw4yYT0HBvrVJF8%3D&reserved=0
>
> But As Pierre mentioned - MSYS2 should also work.
>
> Satish
>
> On Mon, 5 Dec 2022, Singh, Rajesh K via petsc-users wrote:
>
>
> Hi Pierre,
>
> I got following error while compiling PETSc.
>
> make all check
>
> [cid:image001.png at 01D908C1.7267DCE0]
>
> Help for this would be appreciated.
>
> Thanks,
> Rajesh
>
> From: Pierre Jolivet <pierre at joliv.et <mailto:pierre at joliv.et>>
> Sent: Monday, December 5, 2022 1:15 PM
> To: Singh, Rajesh K <rajesh.singh at pnnl.gov <mailto:rajesh.singh at pnnl.gov>>
> Cc: petsc-users at mcs.anl.gov <mailto:petsc-users at mcs.anl.gov>
> Subject: Re: [petsc-users] Installation With MSYS2 and MinGW Compilers
>
>
> On 5 Dec 2022, at 9:50 PM, Singh, Rajesh K <rajesh.singh at pnnl.gov<mailto:rajesh.singh at pnnl.gov <mailto:rajesh.singh at pnnl.gov%3cmailto:rajesh.singh at pnnl.gov>>> wrote:
>
> Hi Pierre,
>
> Thank you so much for prompt response. I will run FORTRAN based code with PETSc. Therefore I guess I will need Fortran binding.
>
> OK, so, two things:
> 1) as said earlier, Sowing is broken with MinGW, but I'm sadly one of
> the few PETSc people using this environment, so I'm one of the few who
> can fix it, but I can't tell you when I'll be able to deliver
> 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., https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fftp.mcs.anl.gov%2Fpub%2Fpetsc%2Frelease-snapshots%2Fpetsc-3.18.2.tar.gz&data=05%7C01%7Crajesh.singh%40pnnl.gov%7Ccf1975f0691a4a6f77a808dad734eec8%7Cd6faa5f90ae240338c0130048a38deeb%7C0%7C0%7C638058922771517675%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=3gU1u2WRKKvNlBMbq%2FL6RZwvp%2FcRY%2BcLx5i9gJbp9nI%3D&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&data=05%7C01%7Crajesh.singh%40pnnl.gov%7Ccf1975f0691a4a6f77a808dad734eec8%7Cd6faa5f90ae240338c0130048a38deeb%7C0%7C0%7C638058922771517675%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&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&data=05%7C01%7Crajesh.singh%40pnnl.gov%7Ccf1975f0691a4a6f77a808dad734eec8%7Cd6faa5f90ae240338c0130048a38deeb%7C0%7C0%7C638058922771517675%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=3gU1u2WRKKvNlBMbq%2FL6RZwvp%2FcRY%2BcLx5i9gJbp9nI%3D&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&data=05%7C01%7Crajesh.singh%40pnnl.gov%7Ccf1975f0691a4a6f77a808dad734eec8%7Cd6faa5f90ae240338c0130048a38deeb%7C0%7C0%7C638058922771517675%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=3gU>
> 1u2WRKKvNlBMbq%2FL6RZwvp%2FcRY%2BcLx5i9gJbp9nI%3D&reserved=0>?
>
>
> Thanks,
> Pierre
>
>
> Regards
> Rajesh
>
> From: Pierre Jolivet <pierre at joliv.et<mailto:pierre at joliv.et <mailto:pierre at joliv.et%3cmailto:pierre at joliv.et>>>
> Sent: Monday, December 5, 2022 12:41 PM
> To: Singh, Rajesh K
> <rajesh.singh at pnnl.gov<mailto:rajesh.singh at pnnl.gov <mailto:rajesh.singh at pnnl.gov%3cmailto:rajesh.singh at pnnl.gov>>>
> Cc: petsc-users at mcs.anl.gov<mailto:petsc-users at mcs.anl.gov <mailto:petsc-users at mcs.anl.gov%3cmailto:petsc-users at mcs.anl.gov>>
> Subject: Re: [petsc-users] Installation With MSYS2 and MinGW Compilers
>
> Check twice before you click! This email originated from outside PNNL.
>
> Hello Rajesh,
> Do you need Fortran bindings?
> Otherwise, ./configure --with-fortran-bindings=0 should do the trick.
> Sowing compilation is broken with MinGW compiler.
> If you need Fortran bindings, we could try to fix it.
>
> Thanks,
> Pierre
>
>
>
> On 5 Dec 2022, at 9:22 PM, Singh, Rajesh K via petsc-users <petsc-users at mcs.anl.gov<mailto:petsc-users at mcs.anl.gov <mailto:petsc-users at mcs.anl.gov%3cmailto:petsc-users at mcs.anl.gov>>> wrote:
>
> Dear All:
>
> 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.
>
> <image001.png>
>
> Help for resolving this issue would be really appricaited.
>
> Thanks,
> Rajesh
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20221206/12b0dbd8/attachment-0001.html>
More information about the petsc-users
mailing list