Re: [petsc-users] Petsc-3.4.2 with MinGW-w64 on Windows 7

2013-10-04 Thread Satish Balay
On Thu, 3 Oct 2013, Mengda Wu wrote: > Hi Satis, > > I've tried to use mingw distributed with cygwin. And it worked well for > static libraries. > > Another problem I am facing is I cannot build shared libraries with it > even I supplied with "--with-shared-libraries=1". Only .a libs are > g

Re: [petsc-users] Petsc-3.4.2 with MinGW-w64 on Windows 7

2013-10-03 Thread Mengda Wu
Hi Satis, I've tried to use mingw distributed with cygwin. And it worked well for static libraries. Another problem I am facing is I cannot build shared libraries with it even I supplied with "--with-shared-libraries=1". Only .a libs are generated and there are no dlls. There was a message sa

Re: [petsc-users] Petsc-3.4.2 with MinGW-w64 on Windows 7

2013-10-01 Thread Satish Balay
On Tue, 1 Oct 2013, Mengda Wu wrote: > Hi Satish, > >Thanks a lot for your reply! > >Is there a way to use the mingw64 which is not shipped with cygwin? For > example, use windows native paths when testing the compiler. Nope - I don't think it will work. Our build tools are primarily wo

Re: [petsc-users] Petsc-3.4.2 with MinGW-w64 on Windows 7

2013-10-01 Thread Mengda Wu
Hi Satish, Thanks a lot for your reply! Is there a way to use the mingw64 which is not shipped with cygwin? For example, use windows native paths when testing the compiler. Thanks, Mengda On Tue, Oct 1, 2013 at 5:55 PM, Satish Balay wrote: > Looks like this mingw install is not from cy

Re: [petsc-users] Petsc-3.4.2 with MinGW-w64 on Windows 7

2013-10-01 Thread Satish Balay
mingw64 from cygwin[32] appears to work fine with /tmp. Satish balay@msnehalem2 ~/junk $ which x86_64-w64-mingw32-gcc.exe /usr/bin/x86_64-w64-mingw32-gcc.exe balay@msnehalem2 ~/junk $ cygcheck -f /usr/bin/x86_64-w64-mingw32-gcc.exe mingw64-x86_64-gcc-core-4.7.3-1 balay@msnehalem2 ~/jun

Re: [petsc-users] Petsc-3.4.2 with MinGW-w64 on Windows 7

2013-10-01 Thread Satish Balay
Looks like this mingw install is not from cygwin - and does not work with cygwin paths. Suggest using mingw from cygwin - or install and use cygwin64 [which has non-mingw gcc-64] You might need the following patch https://bitbucket.org/petsc/petsc/commits/e4773d96ef73f1e0b315c5b0194cae499d71e207

[petsc-users] Petsc-3.4.2 with MinGW-w64 on Windows 7

2013-10-01 Thread Mengda Wu
Hello all, I am trying to compile 64 bit version of petsc-3.4.2 using MinGW-w64 (latest version 4.8.1 installed with http://sourceforge.net/projects/mingwbuilds/files/mingw-builds-install/mingw-builds-install.exe/download) on Windows 7 64 bit. I have cygwin, python (under cygwin) installed.