<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div><span>Satish,</span></div><div><span></span> </div><div><span>As far as I know, cygwin reads the Windows enviromental variable PATH. Can I not change the the setting in in the Windows enviromental variables (since other programs need them), but change the PATH used by cygwin only? Which file should I change?</span></div><div><span></span> </div><div><span>Thanks,</span></div><div><span>Qin</span></div><div style="display: block;" class="yahoo_quoted"> <br> <br> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> On Monday, October 28, 2013 11:16 AM,
 Satish Balay <balay@mcs.anl.gov> wrote:<br> </font> </div>  <div class="y_msg_container">> /cygdrive/c/Windows/SUA/common/rm -f -rf /cygdrive/c/cygwin_cache/petsc-3.4.3/arch-mswin-c-opt/lib/libpetsc*.*<br clear="none"><br clear="none">You appear to have non cygwin stuff in your PATH. Can you remove these<br clear="none">things from your PATH - make sure grep in PATH is from cygwin - and<br clear="none">rerun configure && make<br clear="none"><br clear="none">Satish<br clear="none"><br clear="none"><div id="yqtfd80429" class="yqt9081386869"><br clear="none">On Mon, 28 Oct 2013, Qin Lu wrote:<br clear="none"><br clear="none">> Hi,<br clear="none">>  <br clear="none">> The configuration seemed to work, then I ran "make all" but got errors such as "grep: Cannot open file '/dev/fs/C/cygdrive/c/cygwin_cache/petsc-3.4.3/include/petscversion.h': No such file or directory". See the attached error.log and make.log for details.<br
 clear="none">>  <br clear="none">> I confirmed that c:\cygwin_cache\petsc-3.4.3\include\petscversion.h is there. '\The ''/dev/fs/C' part in the directory seems suspicious. Did I missed anything in the setup?<br clear="none">>  <br clear="none">> Thanks for any hints,<br clear="none">> Qin <br clear="none">>  <br clear="none">>  <br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">> On Thursday, October 24, 2013 2:05 PM, Satish Balay <<a href="mailto:balay@mcs.anl.gov" shape="rect" ymailto="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br clear="none">>   <br clear="none">> pushed ee76e990026b11c1f9c153f288b72cc9b8ebb100 and merged to next.<br clear="none">> <br clear="none">> It will go into 'maint' later..<br clear="none">> <br clear="none">> Satish<br clear="none">> <br clear="none">> <br clear="none">> On Thu, 24
 Oct 2013, Satish Balay wrote:<br clear="none">> <br clear="none">> > Perhaps we should add back the windows-python check?<br clear="none">> > <br clear="none">> > [since we haven't yet added the windows python support]<br clear="none">> > <br clear="none">> > Satish<br clear="none">> > <br clear="none">> > On Thu, 24 Oct 2013, Qin Lu wrote:<br clear="none">> > <br clear="none">> > > Chetan<br clear="none">> > > <br clear="none">> > > Great, that was the problem! I set python point to a copy that was not cygwin's. Now I set it to cygwin's python and it this error is gone! I am waiting to see if the whole building will finish without problems.<br clear="none">> > > <br clear="none">> > > Thanks a lot for all you guys' helps.<br clear="none">> > > <br clear="none">> > > Qin <br clear="none">> > >
 <br clear="none">> > > On Thursday, October 24, 2013 11:28 AM, Chetan Jhurani <<a href="mailto:chetan.jhurani@gmail.com" shape="rect" ymailto="mailto:chetan.jhurani@gmail.com">chetan.jhurani@gmail.com</a>> wrote:<br clear="none">> > > I vaguely recall seeing the "could not locate make" error<br clear="none">> > > when a non-cygwin python is picked up first in path.<br clear="none">> > > So ensure that "which python" points to cygwin python.<br clear="none">> > > <br clear="none">> > > Another issue is that the --with-make argument, if it is<br clear="none">> > > needed, should be /cygdrive/C/cygwin64/bin (or with some<br clear="none">> > > other drive letter in between where cygwin is installed).<br clear="none">> > > <br clear="none">> > > Chetan<br clear="none">> > > <br clear="none">> > > <br clear="none">> > > > -----Original
 Message-----<br clear="none">> > > > From: <a href="mailto:petsc-users-bounces@mcs.anl.gov" shape="rect" ymailto="mailto:petsc-users-bounces@mcs.anl.gov">petsc-users-bounces@mcs.anl.gov</a> [mailto:<a href="mailto:petsc-users-bounces@mcs.anl.gov" shape="rect" ymailto="mailto:petsc-users-bounces@mcs.anl.gov">petsc-users-bounces@mcs.anl.gov</a>] On Behalf Of Qin Lu<br clear="none">> > > > Sent: Thursday, October 24, 2013 8:43 AM<br clear="none">> > > > To: Jed Brown; <a href="mailto:petsc-users@mcs.anl.gov" shape="rect" ymailto="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a><br clear="none">> > > > Subject: Re: [petsc-users] Could not find make when building PETSc in Windows 7<br clear="none">> > > > <br clear="none">> > > > Jed,<br clear="none">> > > > <br clear="none">> > > > As I mentioned, I did add C:\cygwin64\bin (where make.exe is) to Path,
 and also tried to run<br clear="none">> > > > ./configure --with-cc='win32fe icl' --with-fc='win32fe ifort' --with-cxx='win32fe icl' --with-<br clear="none">> > > > make=/cygdrive/cygwin64/bin. It did not work, I just tried what you suggested: adding --download-make<br clear="none">> > > > in confugure, it gave the same error.<br clear="none">> > > > <br clear="none">> > > > Thanks,<br clear="none">> > > > Qin<br clear="none">> > > > <br clear="none">> > > > <br clear="none">> > > > <br clear="none">> > > > On Thursday, October 24, 2013 10:36 AM, Jed Brown <<a href="mailto:jedbrown@mcs.anl.gov" shape="rect" ymailto="mailto:jedbrown@mcs.anl.gov">jedbrown@mcs.anl.gov</a>> wrote:<br clear="none">> > > > Qin Lu <<a href="mailto:lu_qin_2000@yahoo.com" shape="rect"
 ymailto="mailto:lu_qin_2000@yahoo.com">lu_qin_2000@yahoo.com</a>> writes:<br clear="none">> > > > <br clear="none">> > > > > Hello,<br clear="none">> > > > ><br clear="none">> > > > > I am trying to build PETSc in Windows 7 with following steps:<br clear="none">> > > > ><br clear="none">> > > > > 1. Installed cygwin 64-bit with python, make and other default packages under C:\cygwin64<br clear="none">> > > > > 2. Added C:\cygwin64\bin to Windows environmental variable Path.<br clear="none">> > > > > 3. Downloaded and unzipped PETSc 3.4.2.<br clear="none">> > > > > 4. Run mintty.exe to open a cygwin terminal.<br clear="none">> > > > > 5. In the cygwin terminal, under PETSc directory, run:  ./configure --with-cc='win32fe icl' --with-<br clear="none">> > > > fc='win32fe ifort'
 --with-cxx='win32fe icl'<br clear="none">> > > > ><br clear="none">> > > > > However, it gave an error "Could not locate the make utility on your system, make sure it is in your<br clear="none">> > > > path or use --with-make=/fullpathnameofmake and run ./configure again".  I suppose it should use<br clear="none">> > > > C:\cygwin64\bin\make.exe, which is already in path, but I still added  --with-<br clear="none">> > > > make=/cvgdrive/cygwin64/bin in configure's option and run configure again, yet it gave the same error.<br clear="none">> > > > <br clear="none">> > > > You need to pass the full path to the make executable (or add it to your<br clear="none">> > > > path), or you can use --download-make.<br clear="none">> > > > <br clear="none">> > > > <br clear="none">> > > >
 > What should I do to let configure know the path of make?<br clear="none">> > > > ><br clear="none">> > > > > Many thanks for your help,<br clear="none">> > > > ><br clear="none">> > > > > Regard,<br clear="none">> > > > > Qin<br clear="none">> > > <br clear="none">> ><br clear="none"></div><br><br></div>  </div> </div>  </div> </div></body></html>