Hi, I was trying to translate Python interpreter using the JIT backend on Snow Leopard (don't know if PyPy supports jit on Snow Leopard now). But I got a MemoryError, does it mean I do not have enough memory? I have 4GB RAM on my computer and most of them should be available when translating. Here's the error message:
[rtyper] specializing: 78200 / 80335 blocks (97%) .....+%+#%*+...*%......... [rtyper] specializing: 80400 / 80467 blocks (99%) [rtyper] -=- specialized 2310 more blocks -=- [rtyper] -=- specialized 0 more blocks -=- .... [rtyper] -=- specialized 13 more blocks -=- [translation:info] JIT compiler generation... [Timer] Timings: [Timer] annotate --- 446.3 s [Timer] rtype_lltype --- 590.8 s [Timer] pyjitpl_lltype --- 0.2 s [Timer] =========================================== [Timer] Total: --- 1037.2 s [translation:ERROR] Error: [translation:ERROR] Traceback (most recent call last): [translation:ERROR] File "/usr/local/bin/translate.py", line 277, in main [translation:ERROR] drv.proceed(goals) [translation:ERROR] File "/Users/olliwang/workspace/repo/pypy-trunk/pypy/translator/driver.py", line 741, in proceed [translation:ERROR] return self._execute(goals, task_skip = self._maybe_skip()) [translation:ERROR] File "/Users/olliwang/workspace/repo/pypy-trunk/pypy/translator/tool/taskengine.py", line 116, in _execute [translation:ERROR] res = self._do(goal, taskcallable, *args, **kwds) [translation:ERROR] File "/Users/olliwang/workspace/repo/pypy-trunk/pypy/translator/driver.py", line 279, in _do [translation:ERROR] res = func() [translation:ERROR] File "/Users/olliwang/workspace/repo/pypy-trunk/pypy/translator/driver.py", line 377, in task_pyjitpl_lltype [translation:ERROR] backend_name=self.config.translation.jit_backend, inline=True) [translation:ERROR] File "/Users/olliwang/workspace/repo/pypy-trunk/pypy/jit/metainterp/warmspot.py", line 35, in apply_jit [translation:ERROR] kwds['CPUClass'] = getcpuclass(backend_name) [translation:ERROR] File "/Users/olliwang/workspace/repo/pypy-trunk/pypy/jit/backend/detect_cpu.py", line 54, in getcpuclass [translation:ERROR] backend_name = autodetect() [translation:ERROR] File "/Users/olliwang/workspace/repo/pypy-trunk/pypy/jit/backend/detect_cpu.py", line 48, in autodetect [translation:ERROR] if not detect_sse2(): [translation:ERROR] File "/Users/olliwang/workspace/repo/pypy-trunk/pypy/jit/backend/x86/detect_sse2.py", line 7, in detect_sse2 [translation:ERROR] data = alloc(4096) [translation:ERROR] File "/Users/olliwang/workspace/repo/pypy-trunk/pypy/rlib/rmmap.py", line 638, in alloc [translation:ERROR] raise MemoryError [translation:ERROR] MemoryError -- Olli Wang OLLI WANG PRODUCTIONS - http://olliwang.com A BLOG ABOUT MY LIFE AND MY WORK
_______________________________________________ [email protected] http://codespeak.net/mailman/listinfo/pypy-dev
