On Fri, Aug 10, 2012 at 7:24 AM, Fabio <span dir="ltr"><<a href="mailto:fabio.pinna.2006@gmail.com" target="_blank">fabio.pinna.2006@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I updated to the last version of Petsc then I used again<br>
<br>
PETSC_DIR=`pwd`; export PETSC_DIR<br>
<br>
then in the petsc directory<br>
./configure --with-cc='win32fe cl' --with-fc=0<br>
--download-f2cblas-lapack --with-mpi-dir=/cygdrive/c/Program\ Files\<br>
\(x86\)/MPICH2<br>
<br>
Now I have an error,<br>
"Nonexistent directory /cygdrive/c/Program\ Files\ \(x86\)/MPICH2"<br>
<br>
The directory anyway is there and cygwin could easily access it<br>
<br>
Also trying with mpi-include/lib gives the same error.<br>
What can I do?<br></blockquote><div><br></div><div>Always send configure.log with a bug report. The path should work, but in order</div><div>to test, can you make a link to a path without spaces and parentheses?</div><div>
<br></div><div> ln -s /cygdrive/c/Program\ Files\ \(x86\)/MPICH2 /cygdrive/c/MPICH2</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
Fabio<br>
<br>
<br>
<br>
<br>
<br>
<br>
2012/8/10 Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>>:<br>
> Why use this very old version petsc-2.3.3?<br>
><br>
> If this old version is really needed - you might want to copy over<br>
> bin/win32fe/* files over from the latest version.<br>
><br>
>> --with-mpi-dir=/cygdrive/c/Program\ Files\ \(x86\)/MPICH2<br>
><br>
> I don't remember if it will handle current mpi - so might want to use<br>
> --with-mpi-include/--with-mpi-lib options. Also the braces in the PATH<br>
> can potentially cause problem.<br>
><br>
> Satish<br>
><br>
> On Fri, 10 Aug 2012, Fabio wrote:<br>
><br>
>> I forgot to say that I start cygwin from the MSVC 2008 Expresse prompt<br>
>> and that running cl does produce some output (basically prviding an<br>
>> help for the cl function)<br>
>><br>
>> 2012/8/10 Fabio <<a href="mailto:fabio.pinna.2006@gmail.com">fabio.pinna.2006@gmail.com</a>>:<br>
>> > I followed your advice and I installed the binary version of MPICH for<br>
>> > win 32 bit.<br>
>> > Than I prepared the envirnmental variable with<br>
>> > PETSC_DIR=`pwd`; export PETSC_DIR<br>
>> ><br>
>> > then in the petsc directory<br>
>> ><br>
>> > ./config/configure.py --with-cc='win32fe cl' --with-fc='win32fe f90'<br>
>> > --download-f-blas-lapack --with-mpi-dir=/cygdrive/c/Program\ Files\<br>
>> > \(x86\)/MPICH2<br>
>> ><br>
>> > and I got the error<br>
>> ><br>
>> > "C compiler you provided -with-cc win32fe cl does not work"<br>
>> ><br>
>> > Part of the log look like this<br>
>> ><br>
>> > sh: /cygdrive/d/Workspace/PETSc/petsc-2.3.3-p13/bin/win32fe/win32fe cl<br>
>> > -c -o conftest.o conftest.c<br>
>> > Executing: /cygdrive/d/Workspace/PETSc/petsc-2.3.3-p13/bin/win32fe/win32fe<br>
>> > cl -c -o conftest.o conftest.c<br>
>> > sh: Warning: win32fe: Path Not Found: C:\PROGRA~2\MICROS~1.0\SharedIDE\BIN<br>
>> ><br>
>> > conftest.c<br>
>> ><br>
>> ><br>
>> > sh: /cygdrive/d/Workspace/PETSc/petsc-2.3.3-p13/bin/win32fe/win32fe cl<br>
>> > -c -o conftest.o conftest.c<br>
>> > Executing: /cygdrive/d/Workspace/PETSc/petsc-2.3.3-p13/bin/win32fe/win32fe<br>
>> > cl -c -o conftest.o conftest.c<br>
>> > sh: Warning: win32fe: Path Not Found: C:\PROGRA~2\MICROS~1.0\SharedIDE\BIN<br>
>> ><br>
>> > conftest.c<br>
>> ><br>
>> ><br>
>> > Pushing language C<br>
>> > Popping language C<br>
>> > Pushing language Cxx<br>
>> > Popping language Cxx<br>
>> > Pushing language FC<br>
>> > Popping language FC<br>
>> > Pushing language C<br>
>> > Popping language C<br>
>> > sh: /cygdrive/d/Workspace/PETSc/petsc-2.3.3-p13/bin/win32fe/win32fe cl<br>
>> > -o conftest.exe conftest.o<br>
>> > Executing: /cygdrive/d/Workspace/PETSc/petsc-2.3.3-p13/bin/win32fe/win32fe<br>
>> > cl -o conftest.exe conftest.o<br>
>> > sh: Warning: win32fe: Path Not Found: C:\PROGRA~2\MICROS~1.0\SharedIDE\BIN<br>
>> ><br>
>> > LINK : fatal error LNK1104: cannot open file 'kernel32.lib'<br>
>> ><br>
>> ><br>
>> > Possible ERROR while running linker: output: Warning: win32fe: Path<br>
>> > Not Found: C:\PROGRA~2\MICROS~1.0\SharedIDE\BIN<br>
>> ><br>
>> > LINK : fatal error LNK1104: cannot open file 'kernel32.lib'<br>
>> ><br>
>> > ret = 512<br>
>> ><br>
>> ><br>
>> ><br>
>> > so it look like a directory problem, but the installation is standard,<br>
>> > maybe I cannot use it with MS Visual C++ 2008 Express?<br>
>> > Thank you for your time.<br>
>> > Fabio<br>
>> ><br>
>> ><br>
>> > 2012/8/6 Barry Smith <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>>:<br>
>> >><br>
>> >> On Aug 5, 2012, at 5:19 PM, Fabio <<a href="mailto:fabio.pinna.2006@gmail.com">fabio.pinna.2006@gmail.com</a>> wrote:<br>
>> >><br>
>> >>> Thank you for your quick reply,I will try with a reboot.<br>
>> >>><br>
>> >>> Regarding the compiler my idea was to use MSVC express 2008. I thought<br>
>> >>> it was possible to compile both library with gcc under cygwin.<br>
>> >>> From your reply I guess this is not the case.<br>
>> >>> Does this mean I should compile Petsc with MSVC express as well, isn't it?<br>
>> >><br>
>> >> Yes, you need to compile PETSc with the compiler you would like to use and make sure to use the MPICH binary install since that works with the Microsoft compilers.<br>
>> >><br>
>> >> Barry<br>
>> >><br>
>> >>><br>
>> >>><br>
>> >>> Fabio.<br>
>> >>><br>
>> >>><br>
>> >>><br>
>> >>> 2012/8/5 Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>>:<br>
>> >>>> On Sun, 5 Aug 2012, Fabio wrote:<br>
>> >>>><br>
>> >>>>> Dear all,<br>
>> >>>>> I am new to petsc, and I've been struggling with it for the last days.<br>
>> >>>>><br>
>> >>>>> I want to install it on Windows 7, and first I tried to install the<br>
>> >>>>> Microsoft MPI and then compiling the MPICH. They both seems ok but I<br>
>> >>>>> am not able to compile Petsc with any of them.<br>
>> >>>>> I am mostly interested to MPICH (for portability).<br>
>> >>>>> I used this script to configure<br>
>> >>>>><br>
>> >>>>> ./config/configure.py PETSC_ARCH=win32-gnu --with-fc=0<br>
>> >>>>> --download-f2cblaslapack=1<br>
>> >>>>> –with-mpi-dir=/cygdrive/d/Workspace/MPICH/mpich2-1.4.1p1<br>
>> >>>><br>
>> >>>> What compilers do you plan to use? MS C/C++ or cygwin gcc/g++?<br>
>> >>>><br>
>> >>>> [MS MPI is for use with MS compiler only. MPICH binary install is for<br>
>> >>>> MS compilers, and MPICH source install is for cygwin gcc/g++]<br>
>> >>>><br>
>> >>>>><br>
>> >>>>> and I've got this error,<br>
>> >>>>><br>
>> >>>>> UNABLE to EXECUTE BINARIES for config/configure.py<br>
>> >>>>> ---------------------------------------------------------------------------------------<br>
>> >>>>> [Errno 16] Device or resource busy: 'conftest.exe'<br>
>> >>>>><br>
>> >>>>> This error seems to happen pretty randomly at differente places in the script.<br>
>> >>>>> Any idea to solve this problem?<br>
>> >>>><br>
>> >>>> Its bad file locks on windows. The only suggestion we have is reboot.<br>
>> >>>><br>
>> >>>> For some cygwin issues - you need to run 'rebaseall' but this doesn;t apper to be<br>
>> >>>> that issue.<br>
>> >>>><br>
>> >>>> If you still have issues - send the complete log [and logfile] to petsc-maint.<br>
>> >>>><br>
>> >>>> Satish<br>
>> >>>><br>
>> >>>>> Thank you all<br>
>> >>>>><br>
>> >>>>> Fabio<br>
>> >>>>><br>
>> >><br>
>><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>