[petsc-users] make all freezes

Analabha Roy hariseldon99 at gmail.com
Mon Sep 23 09:07:59 CDT 2013


On Sun, Sep 22, 2013 at 10:36 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:

>
>    Thanks for figuring this out.  Normally if there is no network
> available then the code below should just return quickly after trying to
> connect
>
>
Fresh download of petsc-lite-3.4.2.tar.gz. Unpack and set PETSC_DIR to the
location

$PETSC_DIR=$PWD ./configure --with-scalar-type=complex

works no problem

$make PETSC_DIR=$PWD all


works no problem (???)





>     import urllib
>     fd = urllib.urlopen("
> http://www.mcs.anl.gov/petsc/petsc-dev/include/petscversion.h")
>     pv = fd.read()
>     fd.close()
>
>
Executes without errors.on python 2.7

On python 3.3, the second line yields
>>> fd = urllib.urlopen("
http://www.mcs.anl.gov/petsc/petsc-dev/include/petscversion.h")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'urlopen'



> but for some reason it is hanging for you.  Could you try those lines in
> python and see if it hangs?
>
> Then you could try
>
>     import requests
>     pv = requests.get("
> http://www.mcs.anl.gov/petsc/petsc-dev/include/petscversion.h")
>
>  Does that hang?
>
>

On python2.7, first line yields

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named requests



On Python3.3, no errors.

Ubuntu repos do not seem to have python requests for 2.7. They just have
python3-requests.


 the default python links to 2.7

   Barry
>
>
> On Sep 22, 2013, at 10:50 AM, Analabha Roy <hariseldon99 at gmail.com> wrote:
>
> > Strangely enough, make all is now freezing in my desktop. Running "make
> chk_upgrade" also hangs. Running "chk_makej" ok no problem.
> >
> > This is the configure.log from my desktop
> >
> >
> > Does "make chk_upgrade" run "${PETSC_DIR}/bin/petscnagupgrade.py" ?
> >  That's what ${PETSC_DIR}/conf/rules says, and this file is transcluded
> in the root makefile
> >
> > Running "petscnagupgrade.py" in the bin dir from shell also hangs with
> no output.
> >
> > I removed "chk_upgrade" from the root makefile and the compile worked!
> >
> >
> > I reinserted chk_upgrade and commented out the nag upgrade file in
> conf/rules and "make all " worked. I commented out all instances of
> "chk_upgrade" from /conf/rules and all compiles work.
> >
> >
> > Maybe a network problem???
> >
> >
> >
> > On Wed, Sep 18, 2013 at 9:56 AM, Satish Balay <balay at mcs.anl.gov> wrote:
> > On Wed, 18 Sep 2013, Analabha Roy wrote:
> >
> > > On Sep 17, 2013 9:39 PM, "Satish Balay" <balay at mcs.anl.gov> wrote:
> > > >
> > > > This doesn't make any sense..
> > > >
> > > > If the build is hanging - we'd like to know exactly where its
> hanging.
> > > > [perhaps copy/paste]
> > > >
> > >
> > > It didn't dump any output, either to stdout or Stderr. There was
> nothing to
> > > copy/paste.
> >
> > so you type in 'make all' and then see nothing on the screen?
> >
> > >>>>>>>
> > all: chk_makej
> >         @${OMAKE}  PETSC_ARCH=${PETSC_ARCH}  PETSC_DIR=${PETSC_DIR}
> chk_petscdir chk_upgrade | tee ${PETSC_ARCH}/conf/make.log
> > <<<<<<
> >
> > The only thing I can think off is chk_upgrade perhaps misconfigured
> > network is affecting it. [if the behavior is reproduceable - perhaps
> > we can narrow it down by invoking these commands one at a time].
> >
> >
> > > > If the run is hanging - we'd like to see the stack trace [via gdb]
> of the
> > > > location of the hang.
> > > >
> > > > xorg-devel should'nt make a difference [from what we know]..
> > > >
> > >
> > > Doesn't it need xorg headers for rendering graphic output via
> petscdraw?
> > >
> > > Maybe it was one of the dependencies of xorg devel that did the trick.
> >
> > If x11 includes/libs are not found - then petsc is configured without
> X11.
> >
> > > https://dl.dropboxusercontent.com/u/2769707/configure.log>(dropbox)
> >
> > The configure.log above confirms that it did not detect X11. [so none
> > of the X11 stuff was enabled].
> >
> > Even if X11 was enabled - 'make test' does not run any X11 related tests.
> >
> > If some make target caused hang for both 'make all' and 'make test' -
> > then running the examples manually might confirm this. [and then
> > invoking the steps in 'make test' one at a time might narrow down to
> > the location of the hang].
> >
> > Satish
> >
> >
> >
> >
> > --
> > ---
> > Analabha Roy
> > C.S.I.R  Senior Research Associate
> > Saha Institute of Nuclear Physics
> > Section 1, Block AF
> > Bidhannagar, Calcutta 700064
> > India
> > Emails: daneel at physics.utexas.edu, hariseldon99 at gmail.com
> > Webpage: http://www.ph.utexas.edu/~daneel/
>
>


-- 
---
*Analabha Roy*
C.S.I.R <http://www.csir.res.in>  Senior Research
Associate<http://csirhrdg.res.in/poolsra.htm>
Saha Institute of Nuclear Physics <http://www.saha.ac.in>
Section 1, Block AF
Bidhannagar, Calcutta 700064
India
*Emails*: daneel at physics.utexas.edu, hariseldon99 at gmail.com
*Webpage*: http://www.ph.utexas.edu/~daneel/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130923/f72793e8/attachment-0001.html>


More information about the petsc-users mailing list