![](https://secure.gravatar.com/avatar/3382e53342f4095ed6588848e9bc7c0c.jpg?s=120&d=mm&r=g)
Hello, On Ubuntu 10.04 LTS 64-bit with Python 2.7, after cloning the latest repo I am trying to build pypy with cx_Oracle mod using the command: python translate.py -Ojit targetpypystandalone.py --withmod-oracle After quite awhile it fails with the following translation errors. Can somebody please take a look? Thanks! [translation:ERROR] Error: [translation:ERROR] Traceback (most recent call last): [translation:ERROR] File "translate.py", line 309, in main [translation:ERROR] drv.proceed(goals) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/translator/driver.py", line 814, in proceed [translation:ERROR] return self._execute(goals, task_skip = self._maybe_skip()) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/translator/tool/taskengine.py", line 116, in _execute [translation:ERROR] res = self._do(goal, taskcallable, *args, **kwds) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/translator/driver.py", line 287, in _do [translation:ERROR] res = func() [translation:ERROR] File "/home/user/Desktop/pypy/pypy/translator/driver.py", line 399, in task_pyjitpl_lltype [translation:ERROR] backend_name=self.config.translation.jit_backend, inline=True) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/jit/metainterp/warmspot.py", line 48, in apply_jit [translation:ERROR] warmrunnerdesc.finish() [translation:ERROR] File "/home/user/Desktop/pypy/pypy/jit/metainterp/warmspot.py", line 236, in finish [translation:ERROR] self.annhelper.finish() [translation:ERROR] File "/home/user/Desktop/pypy/pypy/rpython/annlowlevel.py", line 240, in finish [translation:ERROR] self.finish_annotate() [translation:ERROR] File "/home/user/Desktop/pypy/pypy/rpython/annlowlevel.py", line 259, in finish_annotate [translation:ERROR] ann.complete_helpers(self.policy) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/annrpython.py", line 180, in complete_helpers [translation:ERROR] self.complete() [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/annrpython.py", line 254, in complete [translation:ERROR] self.processblock(graph, block) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/annrpython.py", line 452, in processblock [translation:ERROR] self.flowin(graph, block) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/annrpython.py", line 512, in flowin [translation:ERROR] self.consider_op(block.operations[i]) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/annrpython.py", line 714, in consider_op [translation:ERROR] raise_nicer_exception(op, str(graph)) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/annrpython.py", line 711, in consider_op [translation:ERROR] resultcell = consider_meth(*argcells) [translation:ERROR] File "<4506-codegen /home/user/Desktop/pypy/pypy/annotation/annrpython.py:749>", line 3, in consider_op_simple_call [translation:ERROR] return arg.simple_call(*args) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/unaryop.py", line 175, in simple_call [translation:ERROR] return obj.call(getbookkeeper().build_args("simple_call", args_s)) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/unaryop.py", line 706, in call [translation:ERROR] return bookkeeper.pbc_call(pbc, args) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/bookkeeper.py", line 668, in pbc_call [translation:ERROR] results.append(desc.pycall(schedule, args, s_previous_result, op)) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/description.py", line 976, in pycall [translation:ERROR] return self.funcdesc.pycall(schedule, args, s_previous_result, op) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/description.py", line 297, in pycall [translation:ERROR] result = schedule(graph, inputcells) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/bookkeeper.py", line 664, in schedule [translation:ERROR] return self.annotator.recursivecall(graph, whence, inputcells) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/annrpython.py", line 395, in recursivecall [translation:ERROR] position_key) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/annrpython.py", line 235, in addpendingblock [translation:ERROR] assert annmodel.unionof(s_oldarg, s_newarg) == s_oldarg [translation:ERROR] AssertionError': [translation:ERROR] .. v2309 = simple_call(v2301, v2302, v2303, v2304, v2305, v2306, v2307, v2308) [translation:ERROR] .. '(pypy.module.pypyjit.policy:49)PyPyJitIface._compile_hook' [translation:ERROR] Processing block: [translation:ERROR] block@226 is a <class 'pypy.objspace.flow.flowcontext.SpamBlock'> [translation:ERROR] in (pypy.module.pypyjit.policy:49)PyPyJitIface._compile_hook [translation:ERROR] containing the following operations: [translation:ERROR] v2309 = simple_call(v2301, v2302, v2303, v2304, v2305, v2306, v2307, v2308) [translation:ERROR] --end--
![](https://secure.gravatar.com/avatar/bfc96d2a02d9113edb992eb96c205c5a.jpg?s=120&d=mm&r=g)
On Mon, Feb 27, 2012 at 6:59 AM, Phillip Class <mustang6565@gmail.com> wrote:
Hello,
On Ubuntu 10.04 LTS 64-bit with Python 2.7, after cloning the latest repo I am trying to build pypy with cx_Oracle mod using the command: python translate.py -Ojit targetpypystandalone.py --withmod-oracle
After quite awhile it fails with the following translation errors. Can somebody please take a look? Thanks!
[translation:ERROR] Error: [translation:ERROR] Traceback (most recent call last): [translation:ERROR] File "translate.py", line 309, in main [translation:ERROR] drv.proceed(goals) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/translator/driver.py", line 814, in proceed [translation:ERROR] return self._execute(goals, task_skip = self._maybe_skip()) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/translator/tool/taskengine.py", line 116, in _execute [translation:ERROR] res = self._do(goal, taskcallable, *args, **kwds) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/translator/driver.py", line 287, in _do [translation:ERROR] res = func() [translation:ERROR] File "/home/user/Desktop/pypy/pypy/translator/driver.py", line 399, in task_pyjitpl_lltype [translation:ERROR] backend_name=self.config.translation.jit_backend, inline=True) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/jit/metainterp/warmspot.py", line 48, in apply_jit [translation:ERROR] warmrunnerdesc.finish() [translation:ERROR] File "/home/user/Desktop/pypy/pypy/jit/metainterp/warmspot.py", line 236, in finish [translation:ERROR] self.annhelper.finish() [translation:ERROR] File "/home/user/Desktop/pypy/pypy/rpython/annlowlevel.py", line 240, in finish [translation:ERROR] self.finish_annotate() [translation:ERROR] File "/home/user/Desktop/pypy/pypy/rpython/annlowlevel.py", line 259, in finish_annotate [translation:ERROR] ann.complete_helpers(self.policy) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/annrpython.py", line 180, in complete_helpers [translation:ERROR] self.complete() [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/annrpython.py", line 254, in complete [translation:ERROR] self.processblock(graph, block) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/annrpython.py", line 452, in processblock [translation:ERROR] self.flowin(graph, block) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/annrpython.py", line 512, in flowin [translation:ERROR] self.consider_op(block.operations[i]) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/annrpython.py", line 714, in consider_op [translation:ERROR] raise_nicer_exception(op, str(graph)) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/annrpython.py", line 711, in consider_op [translation:ERROR] resultcell = consider_meth(*argcells) [translation:ERROR] File "<4506-codegen /home/user/Desktop/pypy/pypy/annotation/annrpython.py:749>", line 3, in consider_op_simple_call [translation:ERROR] return arg.simple_call(*args) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/unaryop.py", line 175, in simple_call [translation:ERROR] return obj.call(getbookkeeper().build_args("simple_call", args_s)) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/unaryop.py", line 706, in call [translation:ERROR] return bookkeeper.pbc_call(pbc, args) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/bookkeeper.py", line 668, in pbc_call [translation:ERROR] results.append(desc.pycall(schedule, args, s_previous_result, op)) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/description.py", line 976, in pycall [translation:ERROR] return self.funcdesc.pycall(schedule, args, s_previous_result, op) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/description.py", line 297, in pycall [translation:ERROR] result = schedule(graph, inputcells) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/bookkeeper.py", line 664, in schedule [translation:ERROR] return self.annotator.recursivecall(graph, whence, inputcells) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/annrpython.py", line 395, in recursivecall [translation:ERROR] position_key) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/annrpython.py", line 235, in addpendingblock [translation:ERROR] assert annmodel.unionof(s_oldarg, s_newarg) == s_oldarg [translation:ERROR] AssertionError': [translation:ERROR] .. v2309 = simple_call(v2301, v2302, v2303, v2304, v2305, v2306, v2307, v2308) [translation:ERROR] .. '(pypy.module.pypyjit.policy:49)PyPyJitIface._compile_hook' [translation:ERROR] Processing block: [translation:ERROR] block@226 is a <class 'pypy.objspace.flow.flowcontext.SpamBlock'> [translation:ERROR] in (pypy.module.pypyjit.policy:49)PyPyJitIface._compile_hook [translation:ERROR] containing the following operations: [translation:ERROR] v2309 = simple_call(v2301, v2302, v2303, v2304, v2305, v2306, v2307, v2308) [translation:ERROR] --end-- _______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev
Hi Philip. This is a bit problematic without installing oracle. Can you run this again and while in pdb say what s_oldarg and s_newarg is?
![](https://secure.gravatar.com/avatar/a1e49b2ed24574e504b9e822059be2c3.jpg?s=120&d=mm&r=g)
Hi Maciej, In Pdb they look like this: [translation] start debugger...
/home/user/Desktop/pypy/pypy/annotation/annrpython.py(235)addpendingblock() -> assert annmodel.unionof(s_oldarg, s_newarg) == s_oldarg (Pdb+) s_oldarg SomeInstance(can_be_None=False, classdef=pypy.objspace.std.intobject.W_IntObject) (Pdb+) s_newarg SomeInstance(can_be_None=False, classdef=pypy.objspace.std.stringobject.W_StringObject) On Mon, Feb 27, 2012 at 3:24 PM, Maciej Fijalkowski <fijall@gmail.com>wrote:
On Mon, Feb 27, 2012 at 6:59 AM, Phillip Class <mustang6565@gmail.com> wrote:
Hello,
On Ubuntu 10.04 LTS 64-bit with Python 2.7, after cloning the latest repo I am trying to build pypy with cx_Oracle mod using the command: python translate.py -Ojit targetpypystandalone.py --withmod-oracle
After quite awhile it fails with the following translation errors. Can somebody please take a look? Thanks!
[translation:ERROR] Error: [translation:ERROR] Traceback (most recent call last): [translation:ERROR] File "translate.py", line 309, in main [translation:ERROR] drv.proceed(goals) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/translator/driver.py", line 814, in proceed [translation:ERROR] return self._execute(goals, task_skip = self._maybe_skip()) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/translator/tool/taskengine.py", line 116, in _execute [translation:ERROR] res = self._do(goal, taskcallable, *args, **kwds) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/translator/driver.py", line 287, in _do [translation:ERROR] res = func() [translation:ERROR] File "/home/user/Desktop/pypy/pypy/translator/driver.py", line 399, in task_pyjitpl_lltype [translation:ERROR] backend_name=self.config.translation.jit_backend, inline=True) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/jit/metainterp/warmspot.py", line 48, in apply_jit [translation:ERROR] warmrunnerdesc.finish() [translation:ERROR] File "/home/user/Desktop/pypy/pypy/jit/metainterp/warmspot.py", line 236, in finish [translation:ERROR] self.annhelper.finish() [translation:ERROR] File "/home/user/Desktop/pypy/pypy/rpython/annlowlevel.py", line 240, in finish [translation:ERROR] self.finish_annotate() [translation:ERROR] File "/home/user/Desktop/pypy/pypy/rpython/annlowlevel.py", line 259, in finish_annotate [translation:ERROR] ann.complete_helpers(self.policy) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/annrpython.py", line 180, in complete_helpers [translation:ERROR] self.complete() [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/annrpython.py", line 254, in complete [translation:ERROR] self.processblock(graph, block) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/annrpython.py", line 452, in processblock [translation:ERROR] self.flowin(graph, block) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/annrpython.py", line 512, in flowin [translation:ERROR] self.consider_op(block.operations[i]) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/annrpython.py", line 714, in consider_op [translation:ERROR] raise_nicer_exception(op, str(graph)) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/annrpython.py", line 711, in consider_op [translation:ERROR] resultcell = consider_meth(*argcells) [translation:ERROR] File "<4506-codegen /home/user/Desktop/pypy/pypy/annotation/annrpython.py:749>", line 3, in consider_op_simple_call [translation:ERROR] return arg.simple_call(*args) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/unaryop.py", line 175, in simple_call [translation:ERROR] return obj.call(getbookkeeper().build_args("simple_call", args_s)) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/unaryop.py", line 706, in call [translation:ERROR] return bookkeeper.pbc_call(pbc, args) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/bookkeeper.py", line 668, in pbc_call [translation:ERROR] results.append(desc.pycall(schedule, args, s_previous_result, op)) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/description.py", line 976, in pycall [translation:ERROR] return self.funcdesc.pycall(schedule, args, s_previous_result, op) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/description.py", line 297, in pycall [translation:ERROR] result = schedule(graph, inputcells) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/bookkeeper.py", line 664, in schedule [translation:ERROR] return self.annotator.recursivecall(graph, whence, inputcells) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/annrpython.py", line 395, in recursivecall [translation:ERROR] position_key) [translation:ERROR] File "/home/user/Desktop/pypy/pypy/annotation/annrpython.py", line 235, in addpendingblock [translation:ERROR] assert annmodel.unionof(s_oldarg, s_newarg) == s_oldarg [translation:ERROR] AssertionError': [translation:ERROR] .. v2309 = simple_call(v2301, v2302, v2303, v2304, v2305, v2306, v2307, v2308) [translation:ERROR] .. '(pypy.module.pypyjit.policy:49)PyPyJitIface._compile_hook' [translation:ERROR] Processing block: [translation:ERROR] block@226 is a <class 'pypy.objspace.flow.flowcontext.SpamBlock'> [translation:ERROR] in (pypy.module.pypyjit.policy:49)PyPyJitIface._compile_hook [translation:ERROR] containing the following operations: [translation:ERROR] v2309 = simple_call(v2301, v2302, v2303, v2304, v2305, v2306, v2307, v2308) [translation:ERROR] --end-- _______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev
Hi Philip.
This is a bit problematic without installing oracle. Can you run this again and while in pdb say what s_oldarg and s_newarg is?
![](https://secure.gravatar.com/avatar/bfc96d2a02d9113edb992eb96c205c5a.jpg?s=120&d=mm&r=g)
On Mon, Feb 27, 2012 at 9:39 AM, Phillip Class <phillip.d.class@gmail.com> wrote:
Hi Maciej,
In Pdb they look like this:
[translation] start debugger...
/home/user/Desktop/pypy/pypy/annotation/annrpython.py(235)addpendingblock()
-> assert annmodel.unionof(s_oldarg, s_newarg) == s_oldarg (Pdb+) s_oldarg SomeInstance(can_be_None=False, classdef=pypy.objspace.std.intobject.W_IntObject) (Pdb+) s_newarg SomeInstance(can_be_None=False, classdef=pypy.objspace.std.stringobject.W_StringObject)
This is so obscure..... Temporarily you can go and disable those functions by going to pypy/module/pypyjit/__init__.py and commenting out 3 lines with set_compile_hook, set_optimize_hook and set_abort_hook. I'm looking into the actual solution in the meantime. Cheers, fijal
![](https://secure.gravatar.com/avatar/bfc96d2a02d9113edb992eb96c205c5a.jpg?s=120&d=mm&r=g)
On Mon, Feb 27, 2012 at 10:12 AM, Maciej Fijalkowski <fijall@gmail.com> wrote:
On Mon, Feb 27, 2012 at 9:39 AM, Phillip Class <phillip.d.class@gmail.com> wrote:
Hi Maciej,
In Pdb they look like this:
[translation] start debugger...
/home/user/Desktop/pypy/pypy/annotation/annrpython.py(235)addpendingblock()
-> assert annmodel.unionof(s_oldarg, s_newarg) == s_oldarg (Pdb+) s_oldarg SomeInstance(can_be_None=False, classdef=pypy.objspace.std.intobject.W_IntObject) (Pdb+) s_newarg SomeInstance(can_be_None=False, classdef=pypy.objspace.std.stringobject.W_StringObject)
This is so obscure.....
Temporarily you can go and disable those functions by going to pypy/module/pypyjit/__init__.py and commenting out 3 lines with set_compile_hook, set_optimize_hook and set_abort_hook. I'm looking into the actual solution in the meantime.
Cheers, fijal
Hi Philip Can you paste the entire output somewhere?
![](https://secure.gravatar.com/avatar/a1e49b2ed24574e504b9e822059be2c3.jpg?s=120&d=mm&r=g)
Hi Maciej, It's very big but here is the entire thing: http://pastebin.com/MkmHPBAU Thanks, Phil On Mon, Feb 27, 2012 at 7:07 PM, Maciej Fijalkowski <fijall@gmail.com>wrote:
On Mon, Feb 27, 2012 at 10:12 AM, Maciej Fijalkowski <fijall@gmail.com> wrote:
On Mon, Feb 27, 2012 at 9:39 AM, Phillip Class <phillip.d.class@gmail.com> wrote:
Hi Maciej,
In Pdb they look like this:
[translation] start debugger...
/home/user/Desktop/pypy/pypy/annotation/annrpython.py(235)addpendingblock() -> assert annmodel.unionof(s_oldarg, s_newarg) == s_oldarg (Pdb+) s_oldarg SomeInstance(can_be_None=False, classdef=pypy.objspace.std.intobject.W_IntObject) (Pdb+) s_newarg SomeInstance(can_be_None=False, classdef=pypy.objspace.std.stringobject.W_StringObject)
This is so obscure.....
Temporarily you can go and disable those functions by going to pypy/module/pypyjit/__init__.py and commenting out 3 lines with set_compile_hook, set_optimize_hook and set_abort_hook. I'm looking into the actual solution in the meantime.
Cheers, fijal
Hi Philip
Can you paste the entire output somewhere?
![](https://secure.gravatar.com/avatar/bfc96d2a02d9113edb992eb96c205c5a.jpg?s=120&d=mm&r=g)
On Mon, Feb 27, 2012 at 11:16 AM, Phillip Class <phillip.d.class@gmail.com> wrote:
Hi Maciej,
It's very big but here is the entire thing: http://pastebin.com/MkmHPBAU
Thanks,
Phil
On the unrelated note, you might want to install libbz2 and ncurses ;-)
On Mon, Feb 27, 2012 at 7:07 PM, Maciej Fijalkowski <fijall@gmail.com> wrote:
On Mon, Feb 27, 2012 at 10:12 AM, Maciej Fijalkowski <fijall@gmail.com> wrote:
On Mon, Feb 27, 2012 at 9:39 AM, Phillip Class <phillip.d.class@gmail.com> wrote:
Hi Maciej,
In Pdb they look like this:
[translation] start debugger...
/home/user/Desktop/pypy/pypy/annotation/annrpython.py(235)addpendingblock()
-> assert annmodel.unionof(s_oldarg, s_newarg) == s_oldarg (Pdb+) s_oldarg SomeInstance(can_be_None=False, classdef=pypy.objspace.std.intobject.W_IntObject) (Pdb+) s_newarg SomeInstance(can_be_None=False, classdef=pypy.objspace.std.stringobject.W_StringObject)
This is so obscure.....
Temporarily you can go and disable those functions by going to pypy/module/pypyjit/__init__.py and commenting out 3 lines with set_compile_hook, set_optimize_hook and set_abort_hook. I'm looking into the actual solution in the meantime.
Cheers, fijal
Hi Philip
Can you paste the entire output somewhere?
![](https://secure.gravatar.com/avatar/5b37e6b4ac97453e4ba9dba37954cf79.jpg?s=120&d=mm&r=g)
Hi, On Mon, Feb 27, 2012 at 18:39, Phillip Class <phillip.d.class@gmail.com> wrote:
/home/user/Desktop/pypy/pypy/annotation/annrpython.py(235)addpendingblock() -> assert annmodel.unionof(s_oldarg, s_newarg) == s_oldarg (Pdb+) s_oldarg SomeInstance(can_be_None=False, classdef=pypy.objspace.std.intobject.W_IntObject) (Pdb+) s_newarg SomeInstance(can_be_None=False, classdef=pypy.objspace.std.stringobject.W_StringObject)
Ah, I see why. It's some random argument to space.call_function(cache.w_compile_hook, <6 arguments>). It turns out that in module/oracle/transform.py there is also another call to space.call_function() with 7 arguments. The two conflict because they are not annotated at the same time. I can write a test, probably. Armin
participants (4)
-
Armin Rigo
-
Maciej Fijalkowski
-
Phillip Class
-
Phillip Class