[refactor-str-types] Translating the PyPy Python interpreter failed.
prasad@pjoshi:~/python/pypy/pypy/goal$ python ../../rpython/bin/rpython --opt=jit targetpypystandalone.py ... ... ... ... [Timer] Timings: [Timer] annotate --- 138.9 s [Timer] ========================================== [Timer] Total: --- 138.9 s [translation:info] Error: [translation:info] File "/home/prasad/python/pypy/rpython/translator/goal/translate.py", line 318, in main [translation:info] drv.proceed(goals) [translation:info] File "/home/prasad/python/pypy/rpython/translator/driver.py", line 534, in proceed [translation:info] return self._execute(goals, task_skip = self._maybe_skip()) [translation:info] File "/home/prasad/python/pypy/rpython/translator/tool/taskengine.py", line 114, in _execute [translation:info] res = self._do(goal, taskcallable, *args, **kwds) [translation:info] File "/home/prasad/python/pypy/rpython/translator/driver.py", line 283, in _do [translation:info] res = func() [translation:info] File "/home/prasad/python/pypy/rpython/translator/driver.py", line 320, in task_annotate [translation:info] s = annotator.build_types(self.entry_point, self.inputtypes) [translation:info] File "/home/prasad/python/pypy/rpython/annotator/annrpython.py", line 91, in build_types [translation:info] return self.build_graph_types(flowgraph, inputcells, complete_now=complete_now) [translation:info] File "/home/prasad/python/pypy/rpython/annotator/annrpython.py", line 145, in build_graph_types [translation:info] self.complete() [translation:info] File "/home/prasad/python/pypy/rpython/annotator/annrpython.py", line 199, in complete [translation:info] self.complete_pending_blocks() [translation:info] File "/home/prasad/python/pypy/rpython/annotator/annrpython.py", line 194, in complete_pending_blocks [translation:info] self.processblock(graph, block) [translation:info] File "/home/prasad/python/pypy/rpython/annotator/annrpython.py", line 344, in processblock [translation:info] self.flowin(graph, block) [translation:info] File "/home/prasad/python/pypy/rpython/annotator/annrpython.py", line 408, in flowin [translation:info] self.consider_op(block, i) [translation:info] File "/home/prasad/python/pypy/rpython/annotator/annrpython.py", line 602, in consider_op [translation:info] resultcell = consider_meth(*argcells) [translation:info] File "<3933-codegen /home/prasad/python/pypy/rpython/annotator/annrpython.py:641>", line 3, in consider_op_getattr [translation:info] return arg.getattr(*args) [translation:info] File "/home/prasad/python/pypy/rpython/annotator/unaryop.py", line 144, in getattr [translation:info] raise AnnotatorError("Cannot find attribute %r on %r" % (attr, obj)) [translation:ERROR] AnnotatorError: [translation:ERROR] [translation:ERROR] Cannot find attribute 'isspace' on SomeUnicodeCodePoint() [translation:ERROR] [translation:ERROR] [translation:ERROR] v324 = getattr(v323, ('isspace')) [translation:ERROR] [translation:ERROR] In <FunctionGraph of (rpython.rlib.rstring:89)rsplit__unicode at 0x1e5d0bd0>: [translation:ERROR] Happened at file /home/prasad/python/pypy/rpython/rlib/rstring.py line 98 [translation:ERROR] [translation:ERROR] ==> if not value[i].isspace(): [translation:ERROR] [translation:ERROR] Known variable annotations: [translation:ERROR] v323 = SomeUnicodeCodePoint() [translation:ERROR] [translation:ERROR] Processing block: [translation:ERROR] block@64 is a <class 'rpython.flowspace.flowcontext.SpamBlock'> [translation:ERROR] in (rpython.rlib.rstring:89)rsplit__unicode [translation:ERROR] containing the following operations: [translation:ERROR] v323 = getitem(value_0, i_0) [translation:ERROR] v324 = getattr(v323, ('isspace')) [translation:ERROR] v325 = simple_call(v324) [translation:ERROR] v326 = bool(v325) [translation:ERROR] --end-- [translation] start debugger...
merge the default on this branch On Sun, Dec 29, 2013 at 8:55 AM, Prasad Joshi <prasadjoshi124@gmail.com> wrote:
prasad@pjoshi:~/python/pypy/pypy/goal$ python ../../rpython/bin/rpython --opt=jit targetpypystandalone.py ... ... ... ... [Timer] Timings: [Timer] annotate --- 138.9 s [Timer] ========================================== [Timer] Total: --- 138.9 s [translation:info] Error: [translation:info] File "/home/prasad/python/pypy/rpython/translator/goal/translate.py", line 318, in main [translation:info] drv.proceed(goals) [translation:info] File "/home/prasad/python/pypy/rpython/translator/driver.py", line 534, in proceed [translation:info] return self._execute(goals, task_skip = self._maybe_skip()) [translation:info] File "/home/prasad/python/pypy/rpython/translator/tool/taskengine.py", line 114, in _execute [translation:info] res = self._do(goal, taskcallable, *args, **kwds) [translation:info] File "/home/prasad/python/pypy/rpython/translator/driver.py", line 283, in _do [translation:info] res = func() [translation:info] File "/home/prasad/python/pypy/rpython/translator/driver.py", line 320, in task_annotate [translation:info] s = annotator.build_types(self.entry_point, self.inputtypes) [translation:info] File "/home/prasad/python/pypy/rpython/annotator/annrpython.py", line 91, in build_types [translation:info] return self.build_graph_types(flowgraph, inputcells, complete_now=complete_now) [translation:info] File "/home/prasad/python/pypy/rpython/annotator/annrpython.py", line 145, in build_graph_types [translation:info] self.complete() [translation:info] File "/home/prasad/python/pypy/rpython/annotator/annrpython.py", line 199, in complete [translation:info] self.complete_pending_blocks() [translation:info] File "/home/prasad/python/pypy/rpython/annotator/annrpython.py", line 194, in complete_pending_blocks [translation:info] self.processblock(graph, block) [translation:info] File "/home/prasad/python/pypy/rpython/annotator/annrpython.py", line 344, in processblock [translation:info] self.flowin(graph, block) [translation:info] File "/home/prasad/python/pypy/rpython/annotator/annrpython.py", line 408, in flowin [translation:info] self.consider_op(block, i) [translation:info] File "/home/prasad/python/pypy/rpython/annotator/annrpython.py", line 602, in consider_op [translation:info] resultcell = consider_meth(*argcells) [translation:info] File "<3933-codegen /home/prasad/python/pypy/rpython/annotator/annrpython.py:641>", line 3, in consider_op_getattr [translation:info] return arg.getattr(*args) [translation:info] File "/home/prasad/python/pypy/rpython/annotator/unaryop.py", line 144, in getattr [translation:info] raise AnnotatorError("Cannot find attribute %r on %r" % (attr, obj)) [translation:ERROR] AnnotatorError: [translation:ERROR] [translation:ERROR] Cannot find attribute 'isspace' on SomeUnicodeCodePoint() [translation:ERROR] [translation:ERROR] [translation:ERROR] v324 = getattr(v323, ('isspace')) [translation:ERROR] [translation:ERROR] In <FunctionGraph of (rpython.rlib.rstring:89)rsplit__unicode at 0x1e5d0bd0>: [translation:ERROR] Happened at file /home/prasad/python/pypy/rpython/rlib/rstring.py line 98 [translation:ERROR] [translation:ERROR] ==> if not value[i].isspace(): [translation:ERROR] [translation:ERROR] Known variable annotations: [translation:ERROR] v323 = SomeUnicodeCodePoint() [translation:ERROR] [translation:ERROR] Processing block: [translation:ERROR] block@64 is a <class 'rpython.flowspace.flowcontext.SpamBlock'> [translation:ERROR] in (rpython.rlib.rstring:89)rsplit__unicode [translation:ERROR] containing the following operations: [translation:ERROR] v323 = getitem(value_0, i_0) [translation:ERROR] v324 = getattr(v323, ('isspace')) [translation:ERROR] v325 = simple_call(v324) [translation:ERROR] v326 = bool(v325) [translation:ERROR] --end-- [translation] start debugger... _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev
participants (2)
-
Maciej Fijalkowski
-
Prasad Joshi