Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • 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 674
    • Issues 674
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • 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
  • #3449
Closed
Open
Created Apr 29, 2021 by 罗晓峰@LoHiaufung

does the jitviewer works with pypy7.1.1?

I clone a Jitviewer.

hg clone https://foss.heptapod.net/pypy/jitviewer -r pypy-5.0

my pypy version is

Python 2.7.13 (8cdda8b8cdb8, Apr 14 2019, 15:13:21)
[PyPy 7.1.1 with MSC v.1500 32 bit] on win32

Then I build and instll the jitviewer

pypy -m pip install build
pypy -m pip install requirements.txt

Set PYTHON-PATH

set PYTHONPATH=D:\work\play\pypy-clean

Then I try it with the example logfile

pypy bin\jitviewer.py --log log.pypylog

It fails,

Encountered an error running nm: 'nm' 不是内部或外部命令,也不是可运行的程序或批处理文件( is not an internal or external command, neither a .exe nor .bat file)。


Traceback (most recent call last):
  File "bin\jitviewer.py", line 15, in <module>
    main(sys.argv)
  File "f:\play\jitviewer\_jitviewer\app.py", line 260, in main
    log, loops = import_log(filename, ParserWithHtmlRepr)
  File "D:\work\play\pypy-clean\rpython\tool\jitlogparser\parser.py", line 454, in import_log
    loop = parser.parse()
  File "D:\work\play\pypy-clean\rpython\jit\tool\oparser.py", line 343, in parse
    num, ops, last_offset = self.parse_ops(base_indent, newlines, 0)
  File "D:\work\play\pypy-clean\rpython\jit\tool\oparser.py", line 374, in parse_ops
    op = self.parse_next_op(line)
  File "D:\work\play\pypy-clean\rpython\jit\tool\oparser.py", line 317, in parse_next_op
    return self.parse_result_op(line)
  File "D:\work\play\pypy-clean\rpython\jit\tool\oparser.py", line 266, in parse_result_op
    opnum, args, descr, fail_args = self.parse_op(op)
  File "D:\work\play\pypy-clean\rpython\jit\tool\oparser.py", line 216, in parse_op
    raise ParseError("unknown op: %s" % opname)
ParseError: unknown op: getfield_gc

I see the jitviewer document says that

PyPy versions correspond to jitviewer tags, so pypy-1.9 tag in jitviewer means it works with pypy 1.9.

and the newest jitviewer is tagged with pypy-5.0, does it mean the newest available pypy is pypy 5.0? So it can not work with pypy7.1.1, right? If so, How can I make it working with pypy7.1.1?

Edited Apr 30, 2021 by 罗晓峰
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking