Okay, I just looked at the code. This is incredibly embarrassing. All packages seem to use<div>their own code for rebuild determination, even though something general exists in package.py.</div><div>This will have to be rewritten, but it will take a little while to check that everything matches. Argh.</div>
<div><br></div><div>   Matt<br><br><div class="gmail_quote">On Wed, Sep 22, 2010 at 4:20 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
  I vote for a) "remember" that it should have been installed and tell the user to remove and run again.<br>
<font color="#888888"><br>
  Barry<br>
</font><div><div></div><div class="h5"><br>
On Sep 22, 2010, at 3:11 PM, Matthew Knepley wrote:<br>
<br>
> On Wed, Sep 22, 2010 at 3:03 PM, Barry Smith <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>> wrote:<br>
><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>
><br>
> I am against additional checks, which are always fragile and provoke more pain than they dismiss. However, we<br>
> can improve the error message. After the 'conf' check, we remember that the library should be installed. If its not<br>
> found, we can<br>
><br>
>   a) have a nice error that says "it looks like you deleted 'lib'. Please remove $PETSC_ARCH and rerun configure"<br>
>       with a picture of a paperclip.<br>
><br>
>   b) delete the parmetis file in 'conf' and call install again.<br>
><br>
> Votes?<br>
><br>
>    Matt<br>
><br>
>   Barry<br>
><br>
><br>
> On Sep 22, 2010, at 2:54 PM, Verena Kuhlemann wrote:<br>
><br>
> > 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>
> > <configure.log><br>
><br>
><br>
><br>
><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>
<br>
</div></div></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>
</div>