translation error in a fresh checkout
Hi, I'm experiencing problems when translating pypy from a fresh checkout (when testing the compilation of Debian packages) The translation crashes very early in the process: Loading grammar /home/alf/dev/pypy/dist/pypy/interpreter/pyparser/data/Grammar2.4 ******************** -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ "global name 'HMASK' is not defined" Happened at file /home/alf/dev/pypy/dist/pypy/lib/_classobj.py line 21 v += HMASK This comes from
/home/alf/dev/pypy/dist/pypy/objspace/flow/objspace.py(264)build_flow() -> raise FlowingError(format_global_error(ec.graph, ec.crnt_offset, str(a)))
This used to work last tuesday, but with a checkout from yesterday, the bug occurs. I was puzzled at first because I could only see this during the translation for Debian packages, and not in my usual working checkout which I update on a regular basis. After blaming the Debian package building environment and not finding anything, it turns out that my working checkout has a pypy/_cache directory, which is used. If I rename this directory, translating will fail there too. Can other people confirm the problem ? If I'm correct it should affect the build tool too, since it builds in a fresh checkout. -- Alexandre Fayolle LOGILAB, Paris (France) Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations Développement logiciel sur mesure: http://www.logilab.fr/services Informatique scientifique: http://www.logilab.fr/science Reprise et maintenance de sites CPS: http://www.migration-cms.com/
Hi Alexandre, On Sat, Jan 27, 2007 at 10:08:38AM +0100, Alexandre Fayolle wrote:
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ "global name 'HMASK' is not defined" Happened at file /home/alf/dev/pypy/dist/pypy/lib/_classobj.py line 21
v += HMASK
Oups! Sorry. Fixed in: ------------------------------------------------------------------------ r37422 | arigo | 2007-01-27 11:49:11 +0100 (Sat, 27 Jan 2007) | 5 lines Changed paths: M /pypy/dist/pypy/annotation/test/test_annrpython.py M /pypy/dist/pypy/objspace/flow/objspace.py - fix flow space crash when geninterp'ing: globals containing constants of type long have got very confused because of r37394. - add a test that shows why r37394 was introduced in the first place. - don't each the traceback in an except:reraise. -- Armin
On Sat, Jan 27, 2007 at 11:51:01AM +0100, Armin Rigo wrote:
Hi Alexandre,
Thanks for the rapid fix. -- Alexandre Fayolle LOGILAB, Paris (France) Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations Développement logiciel sur mesure: http://www.logilab.fr/services Informatique scientifique: http://www.logilab.fr/science Reprise et maintenance de sites CPS: http://www.migration-cms.com/
participants (2)
-
Alexandre Fayolle
-
Armin Rigo