Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RegisterFile with constant_zero=True and constant_zero=False conflict for translation #18

Open
ss2783 opened this issue Apr 26, 2015 · 0 comments

Comments

@ss2783
Copy link

ss2783 commented Apr 26, 2015

[translation:info] Error:
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/translator/goal/translate.py", line 318, in main
[translation:info]     drv.proceed(goals)
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/translator/driver.py", line 541, in proceed
[translation:info]     return self._execute(goals, task_skip = self._maybe_skip())
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/translator/tool/taskengine.py", line 114, in _execute
[translation:info]     res = self._do(goal, taskcallable, *args, **kwds)
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/translator/driver.py", line 277, in _do
[translation:info]     res = func()
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/translator/driver.py", line 344, in task_rtype_lltype
[translation:info]     rtyper.specialize(dont_simplify_again=True)
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/rtyper/rtyper.py", line 176, in specialize
[translation:info]     self.specialize_more_blocks()
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/rtyper/rtyper.py", line 216, in specialize_more_blocks
[translation:info]     self.specialize_block(block)
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/rtyper/rtyper.py", line 303, in specialize_block
[translation:info]     hop.setup()  # this is called from here to catch TyperErrors...
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/rtyper/rtyper.py", line 627, in setup
[translation:info]     rtyper.call_all_setups()  # compute ForwardReferences now
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/rtyper/rtyper.py", line 246, in call_all_setups
[translation:info]     r.setup()
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/rtyper/rmodel.py", line 55, in setup
[translation:info]     self._setup_repr()
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/rtyper/rclass.py", line 489, in _setup_repr
[translation:info]     r = self.rtyper.getrepr(attrdef.s_value)
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/rtyper/rtyper.py", line 146, in getrepr
[translation:info]     result = s_obj.rtyper_makerepr(self)
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/rtyper/rpbc.py", line 49, in rtyper_makerepr
[translation:info]     return getRepr(rtyper, self)
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/rtyper/rpbc.py", line 803, in __init__
[translation:info]     mdescs,))
[translation:ERROR] TyperError: cannot find a unique name under which the methods can be found: [<MethodDesc '_set_item' of <ClassDef 'pydgin.storage.RegisterFile'> bound to <ClassDef 'pydgin.storage.RegisterFile'> {}>, <MethodDesc '_set_item_const_zero' of <ClassDef 'pydgin.storage.RegisterFile'> bound to <ClassDef 'pydgin.storage.RegisterFile'> {}>]
[translation:ERROR] .. (pydgin.sim:193)entry_point
[translation:ERROR] .. block@15 with 1 exits
[translation:ERROR] .. v6 = getattr((<parc-sim.ParcSim obje...77d210>), ('jitdriver'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant