[pypy-dev] translate.py --jit targetpypystandalone: broken?

Simon Burton simon at arrowtheory.com
Mon Apr 9 19:24:23 CEST 2007


On another machine:

[translation:ERROR] Error:
[translation:ERROR]  Traceback (most recent call last):
[translation:ERROR]    File "./translate.py", line 287, in main
[translation:ERROR]     drv.proceed(goals)
[translation:ERROR]    File "/home/simon/site-packages/pypy/translator/driver.py", line 711, in proceed
[translation:ERROR]     return self._execute(goals, task_skip = self._maybe_skip())
[translation:ERROR]    File "/home/simon/site-packages/pypy/translator/tool/taskengine.py", line 112, in _execute
[translation:ERROR]     res = self._do(goal, taskcallable, *args, **kwds)
[translation:ERROR]    File "/home/simon/site-packages/pypy/translator/driver.py", line 260, in _do
[translation:ERROR]     res = func()
[translation:ERROR]    File "/home/simon/site-packages/pypy/translator/driver.py", line 279, in task_annotate
[translation:ERROR]     s = annotator.build_types(self.entry_point, self.inputtypes)
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/annrpython.py", line 101, in build_types
[translation:ERROR]     return self.build_graph_types(flowgraph, inputcells, complete_now=complete_now)
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/annrpython.py", line 192, in build_graph_types
[translation:ERROR]     self.complete()
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/annrpython.py", line 248, in complete
[translation:ERROR]     self.processblock(graph, block)
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/annrpython.py", line 477, in processblock
[translation:ERROR]     self.flowin(graph, block)
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/annrpython.py", line 537, in flowin
[translation:ERROR]     self.consider_op(block.operations[i])
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/annrpython.py", line 744, in consider_op
[translation:ERROR]     raise_nicer_exception(op, str(graph))
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/annrpython.py", line 741, in consider_op
[translation:ERROR]     resultcell = consider_meth(*argcells)
[translation:ERROR]    File "<string>", line 3, in consider_op_getattr
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/unaryop.py", line 519, in getattr
[translation:ERROR]     attrdef = ins.classdef.find_attribute(attr)
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/classdef.py", line 218, in find_attribute
[translation:ERROR]     return self.locate_attribute(attr).attrs[attr]
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/classdef.py", line 213, in locate_attribute
[translation:ERROR]     self.generalize_attr(attr)
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/classdef.py", line 322, in generalize_attr
[translation:ERROR]     self._generalize_attr(attr, s_value)
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/classdef.py", line 303, in _generalize_attr
[translation:ERROR]     newattr.add_constant_source(origin_classdef, source)
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/classdef.py", line 79, in add_constant_source[translation:ERROR]     s_value = source.s_get_value(classdef, self.name)
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/classdef.py", line 435, in s_get_value
[translation:ERROR]     s_value = self.bookkeeper.immutablevalue(v)
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/bookkeeper.py", line 440, in immutablevalue
[translation:ERROR]     self.see_mutable(x)
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/bookkeeper.py", line 543, in see_mutable
[translation:ERROR]     clsdef.add_source_for_attribute(attr, source) # can trigger reflowing
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/classdef.py", line 183, in add_source_for_attribute
[translation:ERROR]     attrdef.add_constant_source(self, source)
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/classdef.py", line 79, in add_constant_source[translation:ERROR]     s_value = source.s_get_value(classdef, self.name)
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/classdef.py", line 435, in s_get_value
[translation:ERROR]     s_value = self.bookkeeper.immutablevalue(v)
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/bookkeeper.py", line 368, in immutablevalue
[translation:ERROR]     result.dictdef.generalize_value(self.immutablevalue(ev))
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/bookkeeper.py", line 440, in immutablevalue
[translation:ERROR]     self.see_mutable(x)
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/bookkeeper.py", line 543, in see_mutable
[translation:ERROR]     clsdef.add_source_for_attribute(attr, source) # can trigger reflowing
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/classdef.py", line 183, in add_source_for_attribute
[translation:ERROR]     attrdef.add_constant_source(self, source)
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/classdef.py", line 79, in add_constant_source[translation:ERROR]     s_value = source.s_get_value(classdef, self.name)
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/classdef.py", line 435, in s_get_value
[translation:ERROR]     s_value = self.bookkeeper.immutablevalue(v)
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/bookkeeper.py", line 368, in immutablevalue
[translation:ERROR]     result.dictdef.generalize_value(self.immutablevalue(ev))
[translation:ERROR]    File "/home/simon/site-packages/pypy/annotation/bookkeeper.py", line 432, in immutablevalue
[translation:ERROR]     elif hasattr(x, '_freeze_') and x._freeze_():
[translation:ERROR]    File "/home/simon/site-packages/pypy/interpreter/mixedmodule.py", line 80, in _freeze_
[translation:ERROR]     self.getdict()
[translation:ERROR]    File "/home/simon/site-packages/pypy/interpreter/mixedmodule.py", line 74, in getdict
[translation:ERROR]     w_value = self.get(name)
[translation:ERROR]    File "/home/simon/site-packages/pypy/interpreter/mixedmodule.py", line 34, in get
[translation:ERROR]     w_value = self.getdictvalue_w(space, name)
[translation:ERROR]    File "/home/simon/site-packages/pypy/interpreter/baseobjspace.py", line 24, in getdictvalue_w[translation:ERROR]     return self.getdictvalue(space, space.wrap(attr))
[translation:ERROR]    File "/home/simon/site-packages/pypy/interpreter/mixedmodule.py", line 54, in getdictvalue
[translation:ERROR]     w_value = loader(space)
[translation:ERROR]    File "/home/simon/site-packages/pypy/interpreter/mixedmodule.py", line 203, in afileloader
[translation:ERROR]     return app.wget(space, attrname)
[translation:ERROR]    File "/home/simon/site-packages/pypy/interpreter/gateway.py", line 769, in wget
[translation:ERROR]     w_globals = self.getwdict(space)
[translation:ERROR]    File "/home/simon/site-packages/pypy/interpreter/gateway.py", line 760, in getwdict
[translation:ERROR]     return space.fromcache(ApplevelCache).getorbuild(self)
[translation:ERROR]    File "/home/simon/site-packages/pypy/tool/cache.py", line 43, in getorbuild
[translation:ERROR]     result = self._build(key)
[translation:ERROR]    File "/home/simon/site-packages/pypy/interpreter/baseobjspace.py", line 145, in _build
[translation:ERROR]     return self.build(key)
[translation:ERROR]    File "/home/simon/site-packages/pypy/interpreter/gateway.py", line 820, in build
[translation:ERROR]     return PyPyCacheDir.build_applevelinterp_dict(app, self.space)
[translation:ERROR]    File "/home/simon/site-packages/pypy/interpreter/gateway.py", line 874, in build_applevelinterp_dict
[translation:ERROR]     self.code, self.filename, self.modname)
[translation:ERROR]    File "/home/simon/local/pypy/pypy/translator/geninterplevel.py", line 1525, in translate_as_module
[translation:ERROR]     gen.gen_source(tmpname, file=_file)
[translation:ERROR]    File "/home/simon/local/pypy/pypy/translator/geninterplevel.py", line 1010, in gen_source
[translation:ERROR]     self.gen_source_temp()
[translation:ERROR]    File "/home/simon/local/pypy/pypy/translator/geninterplevel.py", line 1091, in gen_source_temp
[translation:ERROR]     self.gen_rpyfunction(func)
[translation:ERROR]    File "/home/simon/local/pypy/pypy/translator/geninterplevel.py", line 1173, in gen_rpyfunction
[translation:ERROR]     body = list(self.rpyfunction_body(graph, localscope))
[translation:ERROR]    File "/home/simon/local/pypy/pypy/translator/geninterplevel.py", line 1391, in rpyfunction_body
[translation:ERROR]     for line in render_block(block):
[translation:ERROR]    File "/home/simon/local/pypy/pypy/translator/geninterplevel.py", line 1313, in render_block
[translation:ERROR]     for line in self.oper(op, localscope).split("\n"):
[translation:ERROR]    File "/home/simon/local/pypy/pypy/translator/geninterplevel.py", line 249, in oper
[translation:ERROR]     exv = self.expr(v, localscope)
[translation:ERROR]    File "/home/simon/local/pypy/pypy/translator/geninterplevel.py", line 216, in expr
[translation:ERROR]     debug=('Constant in the graph of', self.currentfunc))
[translation:ERROR]    File "/home/simon/local/pypy/pypy/translator/geninterplevel.py", line 407, in nameof
[translation:ERROR]     name = meth(obj)
[translation:ERROR]    File "/home/simon/local/pypy/pypy/translator/geninterplevel.py", line 914, in nameof_type
[translation:ERROR]     self.currentfunc.__name__ or "*no function at all*"))
[translation:ERROR]  AssertionError': built-in class <type 'Struct'> not found in typename_mapping while compiling _compile
[translation:ERROR]     .. v4273 = getattr(self_312, ('w_dict'))
[translation:ERROR]     .. '(pypy.interpreter.mixedmodule:43)MixedModule.getdictvalue'
[translation:ERROR] Processing block:
[translation:ERROR]  block at 3 is a <class 'pypy.objspace.flow.flowcontext.SpamBlock'>
[translation:ERROR]  in (pypy.interpreter.mixedmodule:43)MixedModule.getdictvalue
[translation:ERROR]  containing the following operations:
[translation:ERROR]        v4274 = getattr(space_0, ('finditem'))
[translation:ERROR]        v4273 = getattr(self_312, ('w_dict'))
[translation:ERROR]        v4275 = simple_call(v4274, v4273, w_name_0)
[translation:ERROR]        v4276 = getattr(self_312, ('lazy'))
[translation:ERROR]        v4277 = is_true(v4276)
[translation:ERROR]  --end--




More information about the Pypy-dev mailing list