assert error assert sys.maxint == (2**31 - 1)

Why ? When I run rpython:/opt/pypy/rpython$ ./bin/rpython -Ojit --jit-backend=x86 ./translator/goal/targettestdicts.py [translation:info] Error: File "/opt/pypy/rpython/translator/goal/translate.py", line 318, in main drv.proceed(goals) File "/opt/pypy/rpython/translator/driver.py", line 551, in proceed result = self._execute(goals, task_skip = self._maybe_skip()) File "/opt/pypy/rpython/translator/tool/taskengine.py", line 114, in _execute res = self._do(goal, taskcallable, *args, **kwds) File "/opt/pypy/rpython/translator/driver.py", line 278, in _do res = func() File "/opt/pypy/rpython/translator/driver.py", line 361, in task_pyjitpl_lltype backend_name=self.config.translation.jit_backend, inline=True) File "/opt/pypy/rpython/jit/metainterp/warmspot.py", line 49, in apply_jit **kwds) File "/opt/pypy/rpython/jit/metainterp/warmspot.py", line 224, in __init__ self.build_cpu(CPUClass, **kwds) File "/opt/pypy/rpython/jit/metainterp/warmspot.py", line 473, in build_cpu translate_support_code, gcdescr=self.gcdescr) File "/opt/pypy/rpython/jit/backend/x86/runner.py", line 143, in __init__ assert sys.maxint == (2**31 - 1)[translation:ERROR] AssertionError[translation] start debugger...> /opt/pypy/rpython/jit/backend/x86/runner.py(143)__init__()-> assert sys.maxint == (2**31 - 1)(Pdb+) Shubha D. Ramanishubharamani@gmail.com shubharamani@yahoo.com

When I change backend to auto:./bin/rpython -Ojit --jit-backend=auto --cc=gcc ./translator/goal/targetpushpop.py I get...translation:ERROR] Exception: no jit_merge_point found![translation] start debugger...> /opt/pypy/rpython/jit/metainterp/warmspot.py(169)find_jit_merge_points()-> raise Exception("no jit_merge_point found!")(Pdb+) Shubha D. Ramanishubharamani@gmail.com shubharamani@yahoo.com On Tuesday, November 29, 2016 2:41 PM, Shubha Ramani <shubharamani@yahoo.com> wrote: Why ? When I run rpython:/opt/pypy/rpython$ ./bin/rpython -Ojit --jit-backend=x86 ./translator/goal/targettestdicts.py [translation:info] Error: File "/opt/pypy/rpython/translator/goal/translate.py", line 318, in main drv.proceed(goals) File "/opt/pypy/rpython/translator/driver.py", line 551, in proceed result = self._execute(goals, task_skip = self._maybe_skip()) File "/opt/pypy/rpython/translator/tool/taskengine.py", line 114, in _execute res = self._do(goal, taskcallable, *args, **kwds) File "/opt/pypy/rpython/translator/driver.py", line 278, in _do res = func() File "/opt/pypy/rpython/translator/driver.py", line 361, in task_pyjitpl_lltype backend_name=self.config.translation.jit_backend, inline=True) File "/opt/pypy/rpython/jit/metainterp/warmspot.py", line 49, in apply_jit **kwds) File "/opt/pypy/rpython/jit/metainterp/warmspot.py", line 224, in __init__ self.build_cpu(CPUClass, **kwds) File "/opt/pypy/rpython/jit/metainterp/warmspot.py", line 473, in build_cpu translate_support_code, gcdescr=self.gcdescr) File "/opt/pypy/rpython/jit/backend/x86/runner.py", line 143, in __init__ assert sys.maxint == (2**31 - 1)[translation:ERROR] AssertionError[translation] start debugger...> /opt/pypy/rpython/jit/backend/x86/runner.py(143)__init__()-> assert sys.maxint == (2**31 - 1)(Pdb+) Shubha D. Ramanishubharamani@gmail.com shubharamani@yahoo.com

Shubha, On Tuesday 2016-11-29 22:52, Shubha Ramani via pypy-dev wrote:
When I change backend to auto:./bin/rpython -Ojit --jit-backend=auto --cc=gcc ./translator/goal/targetpushpop.py
those small translator exampled do not use a jit driver and thus have no jit_merge_point. You can add one: from rpython.rlib import jit driver = jit.JitDriver(greens = [], reds = 'auto') and then for example at the opening of entry_point(): driver.jit_merge_point() See here for details: http://rpython.readthedocs.io/en/latest/jit/pyjitpl5.html
When I run rpython:/opt/pypy/rpython$ ./bin/rpython -Ojit --jit-backend=x86 ./translator/goal/targettestdicts.py
Is probably b/c you want the x86_64 backend. That seems to be missing from the set of options in config/translationoption.py+121, but 'auto' (default) will select it for your machine. Best regards, Wim -- WLavrijsen@lbl.gov -- +1 (510) 486 6411 -- www.lavrijsen.net

thanks WLavrijsen, your tips worked. Shubha Shubha D. Ramanishubharamani@gmail.com shubharamani@yahoo.com On Tuesday, November 29, 2016 4:06 PM, "wlavrijsen@lbl.gov" <wlavrijsen@lbl.gov> wrote: Shubha, On Tuesday 2016-11-29 22:52, Shubha Ramani via pypy-dev wrote:
When I change backend to auto:./bin/rpython -Ojit --jit-backend=auto --cc=gcc ./translator/goal/targetpushpop.py
those small translator exampled do not use a jit driver and thus have no jit_merge_point. You can add one: from rpython.rlib import jit driver = jit.JitDriver(greens = [], reds = 'auto') and then for example at the opening of entry_point(): driver.jit_merge_point() See here for details: http://rpython.readthedocs.io/en/latest/jit/pyjitpl5.html
When I run rpython:/opt/pypy/rpython$ ./bin/rpython -Ojit --jit-backend=x86 ./translator/goal/targettestdicts.py
Is probably b/c you want the x86_64 backend. That seems to be missing from the set of options in config/translationoption.py+121, but 'auto' (default) will select it for your machine. Best regards, Wim -- WLavrijsen@lbl.gov -- +1 (510) 486 6411 -- www.lavrijsen.net

When I change backend to auto:./bin/rpython -Ojit --jit-backend=auto --cc=gcc ./translator/goal/targetpushpop.py I get...translation:ERROR] Exception: no jit_merge_point found![translation] start debugger...> /opt/pypy/rpython/jit/metainterp/warmspot.py(169)find_jit_merge_points()-> raise Exception("no jit_merge_point found!")(Pdb+) Shubha D. Ramanishubharamani@gmail.com shubharamani@yahoo.com On Tuesday, November 29, 2016 2:41 PM, Shubha Ramani <shubharamani@yahoo.com> wrote: Why ? When I run rpython:/opt/pypy/rpython$ ./bin/rpython -Ojit --jit-backend=x86 ./translator/goal/targettestdicts.py [translation:info] Error: File "/opt/pypy/rpython/translator/goal/translate.py", line 318, in main drv.proceed(goals) File "/opt/pypy/rpython/translator/driver.py", line 551, in proceed result = self._execute(goals, task_skip = self._maybe_skip()) File "/opt/pypy/rpython/translator/tool/taskengine.py", line 114, in _execute res = self._do(goal, taskcallable, *args, **kwds) File "/opt/pypy/rpython/translator/driver.py", line 278, in _do res = func() File "/opt/pypy/rpython/translator/driver.py", line 361, in task_pyjitpl_lltype backend_name=self.config.translation.jit_backend, inline=True) File "/opt/pypy/rpython/jit/metainterp/warmspot.py", line 49, in apply_jit **kwds) File "/opt/pypy/rpython/jit/metainterp/warmspot.py", line 224, in __init__ self.build_cpu(CPUClass, **kwds) File "/opt/pypy/rpython/jit/metainterp/warmspot.py", line 473, in build_cpu translate_support_code, gcdescr=self.gcdescr) File "/opt/pypy/rpython/jit/backend/x86/runner.py", line 143, in __init__ assert sys.maxint == (2**31 - 1)[translation:ERROR] AssertionError[translation] start debugger...> /opt/pypy/rpython/jit/backend/x86/runner.py(143)__init__()-> assert sys.maxint == (2**31 - 1)(Pdb+) Shubha D. Ramanishubharamani@gmail.com shubharamani@yahoo.com

Shubha, On Tuesday 2016-11-29 22:52, Shubha Ramani via pypy-dev wrote:
When I change backend to auto:./bin/rpython -Ojit --jit-backend=auto --cc=gcc ./translator/goal/targetpushpop.py
those small translator exampled do not use a jit driver and thus have no jit_merge_point. You can add one: from rpython.rlib import jit driver = jit.JitDriver(greens = [], reds = 'auto') and then for example at the opening of entry_point(): driver.jit_merge_point() See here for details: http://rpython.readthedocs.io/en/latest/jit/pyjitpl5.html
When I run rpython:/opt/pypy/rpython$ ./bin/rpython -Ojit --jit-backend=x86 ./translator/goal/targettestdicts.py
Is probably b/c you want the x86_64 backend. That seems to be missing from the set of options in config/translationoption.py+121, but 'auto' (default) will select it for your machine. Best regards, Wim -- WLavrijsen@lbl.gov -- +1 (510) 486 6411 -- www.lavrijsen.net

thanks WLavrijsen, your tips worked. Shubha Shubha D. Ramanishubharamani@gmail.com shubharamani@yahoo.com On Tuesday, November 29, 2016 4:06 PM, "wlavrijsen@lbl.gov" <wlavrijsen@lbl.gov> wrote: Shubha, On Tuesday 2016-11-29 22:52, Shubha Ramani via pypy-dev wrote:
When I change backend to auto:./bin/rpython -Ojit --jit-backend=auto --cc=gcc ./translator/goal/targetpushpop.py
those small translator exampled do not use a jit driver and thus have no jit_merge_point. You can add one: from rpython.rlib import jit driver = jit.JitDriver(greens = [], reds = 'auto') and then for example at the opening of entry_point(): driver.jit_merge_point() See here for details: http://rpython.readthedocs.io/en/latest/jit/pyjitpl5.html
When I run rpython:/opt/pypy/rpython$ ./bin/rpython -Ojit --jit-backend=x86 ./translator/goal/targettestdicts.py
Is probably b/c you want the x86_64 backend. That seems to be missing from the set of options in config/translationoption.py+121, but 'auto' (default) will select it for your machine. Best regards, Wim -- WLavrijsen@lbl.gov -- +1 (510) 486 6411 -- www.lavrijsen.net
participants (2)
-
Shubha Ramani
-
wlavrijsen@lbl.gov