[petsc-users] osx error

Mark Adams mfadams at lbl.gov
Fri Sep 18 06:41:02 CDT 2020


On Thu, Sep 17, 2020 at 11:04 PM Satish Balay <balay at mcs.anl.gov> wrote:

> Mark,
>
> Can you elaborate?
>
> First you tried the change to /etc/hosts. Did it not work? What do you
> have for:
>
> cat /etc/hosts
>

07:37 1 master *= ~/Codes/petsc$ cat /etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
127.0.0.1    MarksMac-5.local
127.0.0.1 243.124.240.10.in-addr.arpa.private.cam.ac.uk
127.0.0.1 MarksMac-302.local
07:37 master *= ~/Codes/petsc$

>
> And after that configure still gave errors for ping test -


I never did the ping test (you didn't ask). I did the sudo command, failed
configuration, patched MPI.py, succeeded configuration.


> but by disabling it in MPI.py - now the tests work? eventhough ping test
> fails?
>
> So this is a false positive for you? [i.e the configure tests fails but
> MPI works?]
>

Let me know if you have more questions.


>
> Satish
>
> On Thu, 17 Sep 2020, Mark Adams wrote:
>
> > On Thu, Sep 17, 2020 at 6:00 PM Satish Balay <balay at mcs.anl.gov> wrote:
> >
> > > But would really like to know if the test is a false positive.
> > >
> >
> > I did the MPI.py fix and that worked.  And make check worked.
>
> On Thu, 17 Sep 2020, Mark Adams wrote:
> >
> > Well, I did your fix and am configuring now.
> >
> >
> > >
> > > Satish
> > >
> > > On Thu, 17 Sep 2020, Satish Balay wrote:
> > >
> > > > Here is a fix:
> > > >
> > > > echo 127.0.0.1 `hostname` | sudo tee -a /etc/hosts
> > > >
> > > > Satish
> > > >
> > > > On Thu, 17 Sep 2020, Matthew Knepley wrote:
> > > >
> > > > > We should have an option to disable the test.
> > > > >
> > > > >    Matt
> > > > >
> > > > > On Thu, Sep 17, 2020 at 5:31 PM Satish Balay via petsc-users <
> > > > > petsc-users at mcs.anl.gov> wrote:
> > > > >
> > > > > > On Thu, 17 Sep 2020, Mark Adams wrote:
> > > > > >
> > > > > > > I rebased over master and started getting this error.
> > > > > > > I did reinstall MPICH (brew) recently.
> > > > > > > Any ideas?
> > > > > > > Thanks,
> > > > > > > Mark
> > > > > >
> > > > > >
> > > > > >
> > >
> -------------------------------------------------------------------------------
> > > > > > Exception: Your hostname will not work with MPI, perhaps you
> have VPN
> > > > > > running whose network settings may not play well with MPI or your
> > > network
> > > > > > is misconfigured
> > > > > >
> > > > > >
> > >
> *******************************************************************************
> > > > > >
> > > > > >
> > > > > > Ok - this is a new test that got added to check for broken
> network
> > > that
> > > > > > breaks MPI.
> > > > > >
> > > > > > Here is the check:
> > > > > >
> > > > > > Executing: ping -c 2 MarksMac-302.local
> > > > > >
> > > > > > The check says you have broken network settings. [as its not
> > > responding to
> > > > > > ping.]
> > > > > >
> > > > > > Does MPI work fine on this box? You can try disabling this check
> > > > > > (manually) - and do the build, and run
> > > > > >
> > > > > > Does MPI run fine?
> > > > > >
> > > > > > Satish
> > > > > >
> > > > > >
> > > > > > >>>>>>>>>>>
> > > > > >
> > > > > > diff --git a/config/BuildSystem/config/packages/MPI.py
> > > > > > b/config/BuildSystem/config/packages/MPI.py
> > > > > > index 2e130fdcfe..8464de6773 100644
> > > > > > --- a/config/BuildSystem/config/packages/MPI.py
> > > > > > +++ b/config/BuildSystem/config/packages/MPI.py
> > > > > > @@ -267,7 +267,7 @@ shared libraries and run with
> > > > > > --known-mpi-shared-libraries=1')
> > > > > >                if ret != 0:
> > > > > >                  raise RuntimeError(errormessage+" Return code
> %s\n"
> > > % ret)
> > > > > >              except:
> > > > > > -              raise RuntimeError("Exception: "+errormessage)
> > > > > > +              pass
> > > > > >            else:
> > > > > >              self.logPrint("Unable to get result from hostname,
> > > skipping
> > > > > > ping check\n")
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200918/d5da33d3/attachment.html>


More information about the petsc-users mailing list