New issue 2918: Translation error when building with jit_profile=oprofile option
https://bitbucket.org/pypy/pypy/issues/2918/translation-error-when-building-with

teru mitsui:

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
```


_______________________________________________
pypy-issue mailing list
pypy-issue@python.org
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to