[petsc-users] Installation With MSYS2 and MinGW Compilers

Satish Balay balay at mcs.anl.gov
Mon Dec 5 20:52:30 CST 2022


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://petsc.org/release/install/windows/

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>
> Sent: Monday, December 5, 2022 1:15 PM
> To: Singh, Rajesh K <rajesh.singh at pnnl.gov>
> Cc: 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>> 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://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.18.2.tar.gz<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%7C6ca621eb7f004c35be5f08dad705d997%7Cd6faa5f90ae240338c0130048a38deeb%7C0%7C0%7C638058718442399693%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=grwrIpVDLyzREtA6zRERjN%2FkqaCxkWY51Ade5WtSbTU%3D&reserved=0>?
> 
> Thanks,
> Pierre
> 
> 
> Regards
> Rajesh
> 
> From: Pierre Jolivet <pierre at joliv.et<mailto: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>>
> Cc: petsc-users at mcs.anl.gov<mailto: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>> 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
> 
> 



More information about the petsc-users mailing list