On Wed, Sep 22, 2010 at 3:03 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</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;">
<br>
<br>
   There is a problem with our design.<br>
<br>
   If the user has used --download-xxxx and then later deletes everything in $PETSC_ARCH/lib then the next use of --download-xxx will fail because it will find the file<br>
in $PETSC_ARCH/conf/xxxx that indicates the last download succeeded but the libraries won't exist so the check for the packages libraries fails with a not particularlly useful error message.<br>
<br>
   How can we fix this? Not just check for $PETSC_ARCH/conf/xxxx but also check for $PETSC_ARCH/lib/libs associated with xxxx before deciding to rebuild? Shoot the user who deletes everything in $PETSC_ARCH/lib?<br></blockquote>
<div><br></div><div>I am against additional checks, which are always fragile and provoke more pain than they dismiss. However, we</div><div>can improve the error message. After the 'conf' check, we remember that the library should be installed. If its not</div>
<div>found, we can</div><div><br></div><div>  a) have a nice error that says "it looks like you deleted 'lib'. Please remove $PETSC_ARCH and rerun configure"</div><div>      with a picture of a paperclip.</div>
<div><br></div><div>  b) delete the parmetis file in 'conf' and call install again.</div><div><br></div><div>Votes?</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;">

   Barry<br>
<br>
<div class="im"><br>
On Sep 22, 2010, at 2:54 PM, Verena Kuhlemann wrote:<br>
<br>
</div><div><div></div><div class="h5">> Here is the configure.log that I got when<br>
> --download-parmetis=/home/vkuhlem/research/ParMetis-3.1.1.tar.gz<br>
> was used.<br>
><br>
> On Wed, Sep 22, 2010 at 3:25 PM, Barry Smith <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>> wrote:<br>
><br>
>><br>
>>  It would be helpful if you mailed us the configure.log file from the case<br>
>> where you tried --download-parmetis and it failed.<br>
>><br>
>> Barry<br>
>><br>
>><br>
>> On Sep 22, 2010, at 2:05 PM, Verena Kuhlemann wrote:<br>
>><br>
>>> Hello,<br>
>>><br>
>>> I am trying to configure petsc with parmetis. I was able to configure it<br>
>> on<br>
>>> a laptop without any problems.<br>
>>> Now I am trying to install it on a cluster.<br>
>>><br>
>>> I tried using --download-parmetis=1 and<br>
>>> --download-parmetis=whereIsavedparmetis/parmetis.tar.gz<br>
>>> but both didn't work.<br>
>>><br>
>>> Then I installed parmetis and tried:<br>
>> --with-parmetis-dir=whereIsavedparmetis<br>
>>><br>
>>> --with-parmetis-includer=whereIsavedparmetis and<br>
>>> --with-parmetis-lib=whereIsavedparmetis/libparmetis.a<br>
>>><br>
>>> Here I got the error message:<br>
>>><br>
>> *******************************************************************************<br>
>>>        UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for<br>
>>> details):<br>
>>><br>
>> -------------------------------------------------------------------------------<br>
>>> --with-parmetis-dir=/home/vkuhlem/research/ParMetis-3.1.1/ did not work<br>
>>><br>
>> *******************************************************************************<br>
>>><br>
>>><br>
>>> From what I've read I may have compiled parmetis with a different<br>
>> compiler<br>
>>> than the one I use in petsc. How can I check which one<br>
>>> I used in petsc?<br>
>>><br>
>>> I attached configure.log and hope someone can give me any tips.<br>
>>><br>
>>> Thanks,<br>
>>> Verena<br>
>>><br>
>>> Hello,<br>
>>><br>
>>> I am trying to configure petsc with parmetis. I was able to configure it<br>
>> on a laptop without any problems.<br>
>>> Now I am trying to install it on a cluster.<br>
>>><br>
>>> I tried using --download-parmetis=1 and<br>
>> --download-parmetis=whereIsavedparmetis/parmetis.tar.gz<br>
>>> but both didn't work.<br>
>>><br>
>>> Then I installed parmetis and tried:<br>
>> --with-parmetis-dir=whereIsavedparmetis<br>
>>><br>
>> --with-parmetis-includer=whereIsavedparmetis and<br>
>> --with-parmetis-lib=whereIsavedparmetis/libparmetis.a<br>
>>><br>
>>> Here I got the error message:<br>
>>><br>
>> *******************************************************************************<br>
>>>         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for<br>
>> details):<br>
>>><br>
>> -------------------------------------------------------------------------------<br>
>>> --with-parmetis-dir=/home/vkuhlem/research/ParMetis-3.1.1/ did not work<br>
>>><br>
>> *******************************************************************************<br>
>>><br>
>>><br>
>>> From what I've read I may have compiled parmetis with a different<br>
>> compiler than the one I use in petsc. How can I check which one<br>
>>> I used in petsc?<br>
>>><br>
>>> I attached configure.log and hope someone can give me any tips.<br>
>>><br>
>>> Thanks,<br>
>>> Verena<br>
>>><br>
>>> <configure.log><br>
>><br>
>><br>
><br>
> Here is the configure.log that I got when --download-parmetis=/home/vkuhlem/research/ParMetis-3.1.1.tar.gz<br>
> was used.<br>
><br>
> On Wed, Sep 22, 2010 at 3:25 PM, Barry Smith <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>> wrote:<br>
><br>
>   It would be helpful if you mailed us the configure.log file from the case where you tried --download-parmetis and it failed.<br>
><br>
>  Barry<br>
><br>
><br>
> On Sep 22, 2010, at 2:05 PM, Verena Kuhlemann wrote:<br>
><br>
> > Hello,<br>
> ><br>
> > I am trying to configure petsc with parmetis. I was able to configure it on<br>
> > a laptop without any problems.<br>
> > Now I am trying to install it on a cluster.<br>
> ><br>
> > I tried using --download-parmetis=1 and<br>
> > --download-parmetis=whereIsavedparmetis/parmetis.tar.gz<br>
> > but both didn't work.<br>
> ><br>
> > Then I installed parmetis and tried: --with-parmetis-dir=whereIsavedparmetis<br>
> ><br>
> > --with-parmetis-includer=whereIsavedparmetis and<br>
> > --with-parmetis-lib=whereIsavedparmetis/libparmetis.a<br>
> ><br>
> > Here I got the error message:<br>
> > *******************************************************************************<br>
> >         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for<br>
> > details):<br>
> > -------------------------------------------------------------------------------<br>
> > --with-parmetis-dir=/home/vkuhlem/research/ParMetis-3.1.1/ did not work<br>
> > *******************************************************************************<br>
> ><br>
> ><br>
> > From what I've read I may have compiled parmetis with a different compiler<br>
> > than the one I use in petsc. How can I check which one<br>
> > I used in petsc?<br>
> ><br>
> > I attached configure.log and hope someone can give me any tips.<br>
> ><br>
> > Thanks,<br>
> > Verena<br>
> ><br>
> > Hello,<br>
> ><br>
> > I am trying to configure petsc with parmetis. I was able to configure it on a laptop without any problems.<br>
> > Now I am trying to install it on a cluster.<br>
> ><br>
> > I tried using --download-parmetis=1 and --download-parmetis=whereIsavedparmetis/parmetis.tar.gz<br>
> > but both didn't work.<br>
> ><br>
> > Then I installed parmetis and tried: --with-parmetis-dir=whereIsavedparmetis<br>
> >                                                    --with-parmetis-includer=whereIsavedparmetis and --with-parmetis-lib=whereIsavedparmetis/libparmetis.a<br>
> ><br>
> > Here I got the error message:<br>
> > *******************************************************************************<br>
> >          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):<br>
> > -------------------------------------------------------------------------------<br>
> > --with-parmetis-dir=/home/vkuhlem/research/ParMetis-3.1.1/ did not work<br>
> > *******************************************************************************<br>
> ><br>
> ><br>
> > From what I've read I may have compiled parmetis with a different compiler than the one I use in petsc. How can I check which one<br>
> > I used in petsc?<br>
> ><br>
> > I attached configure.log and hope someone can give me any tips.<br>
> ><br>
> > Thanks,<br>
> > Verena<br>
> ><br>
> > <configure.log><br>
><br>
><br>
</div></div>> <configure.log><br>
<br>
</blockquote></div><br><br clear="all"><br>-- <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>