[pypy-dev] Trouble translating llvm

David Arthur mumrah at gmail.com
Fri Oct 26 19:44:54 CEST 2012


Running "python translate.py -Ojit --jit-backend=llvm" with pypy 1.9
(pypy-pypy-341e1e3821ff), I get

[translation:info] JIT compiler generation...
[Timer] Timings:
[Timer] annotate                       --- 1354.8 s
[Timer] rtype_lltype                   --- 1855.0 s
[Timer] pyjitpl_lltype                 ---    0.2 s
[Timer] ===========================================
[Timer] Total:                         --- 3210.1 s
[translation:ERROR] Error:
[translation:ERROR]  Traceback (most recent call last):
[translation:ERROR]    File "translate.py", line 308, in main
[translation:ERROR]     drv.proceed(goals)
[translation:ERROR]    File
"/Users/mumrah/Downloads/pypy-pypy-341e1e3821ff/pypy/translator/driver.py",
line 791, in proceed
[translation:ERROR]     return self._execute(goals, task_skip =
self._maybe_skip())
[translation:ERROR]    File
"/Users/mumrah/Downloads/pypy-pypy-341e1e3821ff/pypy/translator/tool/taskengine.py",
line 116, in _execute
[translation:ERROR]     res = self._do(goal, taskcallable, *args, **kwds)
[translation:ERROR]    File
"/Users/mumrah/Downloads/pypy-pypy-341e1e3821ff/pypy/translator/driver.py",
line 285, in _do
[translation:ERROR]     res = func()
[translation:ERROR]    File
"/Users/mumrah/Downloads/pypy-pypy-341e1e3821ff/pypy/translator/driver.py",
line 397, in task_pyjitpl_lltype
[translation:ERROR]
backend_name=self.config.translation.jit_backend, inline=True)
[translation:ERROR]    File
"/Users/mumrah/Downloads/pypy-pypy-341e1e3821ff/pypy/jit/metainterp/warmspot.py",
line 35, in apply_jit
[translation:ERROR]     kwds['CPUClass'] = getcpuclass(backend_name)
[translation:ERROR]    File
"/Users/mumrah/Downloads/pypy-pypy-341e1e3821ff/pypy/jit/backend/detect_cpu.py",
line 82, in getcpuclass
[translation:ERROR]     mod = __import__(modname, {}, {}, clsname)
[translation:ERROR]    File
"/Users/mumrah/Downloads/pypy-pypy-341e1e3821ff/pypy/jit/backend/llvm/runner.py",
line 9, in <module>
[translation:ERROR]     from pypy.jit.backend.llvm import llvm_rffi
[translation:ERROR]    File
"/Users/mumrah/Downloads/pypy-pypy-341e1e3821ff/pypy/jit/backend/llvm/llvm_rffi.py",
line 4, in <module>
[translation:ERROR]     from pypy.translator.tool.cbuild import
ExternalCompilationInfo, log
[translation:ERROR]  ImportError: cannot import name log

Any insights?

-- 
David Arthur


More information about the pypy-dev mailing list