Trouble translating llvm

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

The LLVM backend does not work. If it works, it's on some branch or some fork, no idea where. It almost definitely does not support the JIT and there is very likely little reason to use it. Why did you try to use it? Cheers, fijal On Fri, Oct 26, 2012 at 7:44 PM, David Arthur <mumrah@gmail.com> wrote:

Hi David, On Fri, Oct 26, 2012 at 7:44 PM, David Arthur <mumrah@gmail.com> wrote:
Running "python translate.py -Ojit --jit-backend=llvm" with pypy 1.9
Oups, my fault for leaving the option "--jit-backend=llvm" around when the llvm jit backend was removed long ago. It never worked. (Removed the option in f0d036cd3b7b.) A bientôt, Armin.

The LLVM backend does not work. If it works, it's on some branch or some fork, no idea where. It almost definitely does not support the JIT and there is very likely little reason to use it. Why did you try to use it? Cheers, fijal On Fri, Oct 26, 2012 at 7:44 PM, David Arthur <mumrah@gmail.com> wrote:

Hi David, On Fri, Oct 26, 2012 at 7:44 PM, David Arthur <mumrah@gmail.com> wrote:
Running "python translate.py -Ojit --jit-backend=llvm" with pypy 1.9
Oups, my fault for leaving the option "--jit-backend=llvm" around when the llvm jit backend was removed long ago. It never worked. (Removed the option in f0d036cd3b7b.) A bientôt, Armin.
participants (3)
-
Armin Rigo
-
David Arthur
-
Maciej Fijalkowski