Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pypy pypy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 652
    • Issues 652
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PyPy
  • pypypypy
  • Issues
  • #3170

Closed
Open
Created Feb 18, 2020 by denisenkom@denisenkom

AssertionError: instead of int(r_uint(x)), use intmask(r_uint(x)) when building py3.7 branch on Mac

I am trying to build py3.7 (on py3.7 branch) version of pypy on Mac.

I run following command:

pypy ../../rpython//bin/rpython --opt=jit

After about 5 minutes of translation I get the following error:

Stack trace

[translation:info] Error:
   File "/Users/denisenk/opensource/pypy/rpython/translator/goal/translate.py", line 318, in main
    drv.proceed(goals)
   File "/Users/denisenk/opensource/pypy/rpython/translator/driver.py", line 555, in proceed
    result = self._execute(goals, task_skip = self._maybe_skip())
   File "/Users/denisenk/opensource/pypy/rpython/translator/tool/taskengine.py", line 114, in _execute
    res = self._do(goal, taskcallable, *args, **kwds)
   File "/Users/denisenk/opensource/pypy/rpython/translator/driver.py", line 278, in _do
    res = func()
   File "/Users/denisenk/opensource/pypy/rpython/translator/driver.py", line 315, in task_annotate
    s = annotator.build_types(self.entry_point, self.inputtypes)
   File "/Users/denisenk/opensource/pypy/rpython/annotator/annrpython.py", line 92, in build_types
    return self.build_graph_types(flowgraph, inputs_s, complete_now=complete_now)
   File "/Users/denisenk/opensource/pypy/rpython/annotator/annrpython.py", line 140, in build_graph_types
    self.complete()
   File "/Users/denisenk/opensource/pypy/rpython/annotator/annrpython.py", line 229, in complete
    self.complete_pending_blocks()
   File "/Users/denisenk/opensource/pypy/rpython/annotator/annrpython.py", line 224, in complete_pending_blocks
    self.processblock(graph, block)
   File "/Users/denisenk/opensource/pypy/rpython/annotator/annrpython.py", line 398, in processblock
    self.flowin(graph, block)
   File "/Users/denisenk/opensource/pypy/rpython/annotator/annrpython.py", line 501, in flowin
    self.consider_op(op)
   File "/Users/denisenk/opensource/pypy/rpython/annotator/annrpython.py", line 653, in consider_op
    resultcell = op.consider(self)
   File "/Users/denisenk/opensource/pypy/rpython/flowspace/operation.py", line 104, in consider
    return spec(annotator, *self.args)
   File "/Users/denisenk/opensource/pypy/rpython/annotator/unaryop.py", line 118, in simple_call_SomeObject
    return s_func.call(argspec)
   File "/Users/denisenk/opensource/pypy/rpython/annotator/unaryop.py", line 937, in call
    return self.analyser(*args_s, **kwds_s)
   File "/Users/denisenk/opensource/pypy/rpython/annotator/builtin.py", line 102, in builtin_int
    assert not s_obj.unsigned, "instead of int(r_uint(x)), use intmask(r_uint(x))"
[translation:ERROR] AssertionError: instead of int(r_uint(x)), use intmask(r_uint(x))
Processing block:
 block@195[value_0...] is a <class 'rpython.flowspace.flowcontext.SpamBlock'> 
 in (pypy.module.time.interp_time:1295)_clock_impl 
 containing the following operations: 
       v960 = getattr(space_88, ('newint')) 
       v961 = simple_call((type int), value_0) 
       v962 = mul(v961, (1000000000)) 
       v963 = floordiv(v962, (1000000)) 
       v964 = simple_call(v960, v963) 
 --end--
[translation] start debugger...
> /Users/denisenk/opensource/pypy/rpython/annotator/builtin.py(102)builtin_int()
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking