[pypy-issue] Issue #2074: Pypy3 2.4.0 translation fails (non-sse2 backend) (pypy/pypy)

Pete Vine issues-reply at bitbucket.org
Fri Jul 3 20:21:12 CEST 2015


New issue 2074: Pypy3 2.4.0 translation fails (non-sse2 backend)
https://bitbucket.org/pypy/pypy/issue/2074/pypy3-240-translation-fails-non-sse2

Pete Vine:

Here's the result of trying to build pypy3 patched as per issue #2060 using pypy2 (previously patched and built accordingly):

PYPY_GC_MAX_DELTA=200MB pypy ../../rpython/bin/rpython -Ojit --jit-backend=x86-without-sse2 targetpypystandalone

[translation:info] Error:
[translation:info]    File "/home/petevine/unpacked/pypy3-2.4.0-src/rpython/translator/goal/translate.py", line 316, in main
[translation:info]     drv.proceed(goals)
[translation:info]    File "/home/petevine/unpacked/pypy3-2.4.0-src/rpython/translator/driver.py", line 532, in proceed
[translation:info]     return self._execute(goals, task_skip = self._maybe_skip())
[translation:info]    File "/home/petevine/unpacked/pypy3-2.4.0-src/rpython/translator/tool/taskengine.py", line 114, in _execute
[translation:info]     res = self._do(goal, taskcallable, *args, **kwds)
[translation:info]    File "/home/petevine/unpacked/pypy3-2.4.0-src/rpython/translator/driver.py", line 276, in _do
[translation:info]     res = func()
[translation:info]    File "/home/petevine/unpacked/pypy3-2.4.0-src/rpython/translator/driver.py", line 359, in task_pyjitpl_lltype
[translation:info]     backend_name=self.config.translation.jit_backend, inline=True)
[translation:info]    File "/home/petevine/unpacked/pypy3-2.4.0-src/rpython/jit/metainterp/warmspot.py", line 50, in apply_jit
[translation:info]     warmrunnerdesc.finish()
[translation:info]    File "/home/petevine/unpacked/pypy3-2.4.0-src/rpython/jit/metainterp/warmspot.py", line 243, in finish
[translation:info]     self.annhelper.finish()
[translation:info]    File "/home/petevine/unpacked/pypy3-2.4.0-src/rpython/rtyper/annlowlevel.py", line 219, in finish
[translation:info]     self.finish_rtype()
[translation:info]    File "/home/petevine/unpacked/pypy3-2.4.0-src/rpython/rtyper/annlowlevel.py", line 269, in finish_rtype
[translation:info]     rtyper.specialize_more_blocks()
[translation:info]    File "/home/petevine/unpacked/pypy3-2.4.0-src/rpython/rtyper/rtyper.py", line 218, in specialize_more_blocks
[translation:info]     self.specialize_block(block)
[translation:info]    File "/home/petevine/unpacked/pypy3-2.4.0-src/rpython/rtyper/rtyper.py", line 336, in specialize_block
[translation:info]     self.translate_hl_to_ll(hop, varmapping)
[translation:info]    File "/home/petevine/unpacked/pypy3-2.4.0-src/rpython/rtyper/rtyper.py", line 465, in translate_hl_to_ll
[translation:info]     resultvar = hop.dispatch()
[translation:info]    File "/home/petevine/unpacked/pypy3-2.4.0-src/rpython/rtyper/rtyper.py", line 687, in dispatch
[translation:info]     return translate_meth(self)
[translation:info]    File "<35196-codegen /home/petevine/unpacked/pypy3-2.4.0-src/rpython/rtyper/rtyper.py:535>", line 4, in translate_op_call_args
[translation:info]     return r_arg1.rtype_call_args(hop)
[translation:info]    File "/home/petevine/unpacked/pypy3-2.4.0-src/rpython/rtyper/rpbc.py", line 671, in rtype_call_args
[translation:info]     return self.redispatch_call(hop, call_args=True)
[translation:info]    File "/home/petevine/unpacked/pypy3-2.4.0-src/rpython/rtyper/rpbc.py", line 698, in redispatch_call
[translation:info]     hop.llops, hop)
[translation:info]    File "/home/petevine/unpacked/pypy3-2.4.0-src/rpython/rtyper/rclass.py", line 487, in rtype_new_instance
[translation:info]     return rinstance.new_instance(llops, classcallhop)
[translation:info]    File "/home/petevine/unpacked/pypy3-2.4.0-src/rpython/rtyper/lltypesystem/rclass.py", line 531, in new_instance
[translation:info]     r.convert_desc_or_const(value))
[translation:info]    File "/home/petevine/unpacked/pypy3-2.4.0-src/rpython/rtyper/rmodel.py", line 116, in convert_desc_or_const
[translation:info]     return self.convert_const(desc_or_const.value)
[translation:info]    File "/home/petevine/unpacked/pypy3-2.4.0-src/rpython/rtyper/lltypesystem/rpbc.py", line 158, in convert_const
[translation:info]     funcdesc = self.rtyper.annotator.bookkeeper.getdesc(value)
[translation:info]    File "/home/petevine/unpacked/pypy3-2.4.0-src/rpython/annotator/bookkeeper.py", line 394, in getdesc
[translation:info]     raise Exception("%s: %r" % (msg, pyobj))
[translation:ERROR] Exception: unexpected prebuilt constant: <staticmethod object at 0x0cd7158c>


Is there a way to continue from the Pdb+ prompt? (after some changes to the code naturally)




More information about the pypy-issue mailing list