Translation error when building with jit_profile=oprofile option

Issue #2918 resolved
Yusuke Izawa
created an issue

When I built PyPy with the following command, translation was failed.

$ pypy ../../rpython/bin/rpython --translation-jit_profile=oprofile --opt=jit targetpypystandalone.py

What does log module mean?

[translation:info] Error:
   File "/Users/izawa/dev/pypy2-v6.0.0-src/rpython/translator/goal/translate.py", line 318, in main
    drv.proceed(goals)
   File "/Users/izawa/dev/pypy2-v6.0.0-src/rpython/translator/driver.py", line 554, in proceed
    result = self._execute(goals, task_skip = self._maybe_skip())
   File "/Users/izawa/dev/pypy2-v6.0.0-src/rpython/translator/tool/taskengine.py", line 114, in _execute
    res = self._do(goal, taskcallable, *args, **kwds)
   File "/Users/izawa/dev/pypy2-v6.0.0-src/rpython/translator/driver.py", line 278, in _do
    res = func()
   File "/Users/izawa/dev/pypy2-v6.0.0-src/rpython/translator/driver.py", line 361, in task_pyjitpl_lltype
    backend_name=self.config.translation.jit_backend, inline=True)
   File "/Users/izawa/dev/pypy2-v6.0.0-src/rpython/jit/metainterp/warmspot.py", line 49, in apply_jit
    **kwds)
   File "/Users/izawa/dev/pypy2-v6.0.0-src/rpython/jit/metainterp/warmspot.py", line 240, in __init__
    self.build_cpu(CPUClass, **kwds)
   File "/Users/izawa/dev/pypy2-v6.0.0-src/rpython/jit/metainterp/warmspot.py", line 489, in build_cpu
    translate_support_code, gcdescr=self.gcdescr)
   File "/Users/izawa/dev/pypy2-v6.0.0-src/rpython/jit/backend/x86/runner.py", line 47, in __init__
    log.WARNING('oprofile support was explicitly enabled, but oprofile headers seem not to be available')
[translation:ERROR] NameError: global name 'log' is not defined

Comments (2)

  1. Log in to comment