On 19 August 2011 18:55, Caleb Hattingh <caleb.hatti...@gmail.com> wrote: > I ran out of memory some time after the JIT had successfully compiled, > so now I am trying > > PYPY_GC_MAX_DELTA=200MB pypy --jit loop_longevity=300 ./translate.py -Ojit > > as suggested in the help page. Will post here again if I succeed.
Unfortunately, another error, and it looks like something possibly to do with multibyte encoding: j:\tools\pypy\pypy\translator\c/src/cjkcodecs/multibytecodec.h:12:13: error: conflicti ng types for 'ssize_t' Here is the last bit of error log: ======================================================================== [c:writing] objspace_std_proxy_helpers.c [c:writing] rpython_memory_gctransform_transform.c [c:writing] objspace_std_unicodetype.c [c:writing] module_pypyjit_interp_resop.c [c:writing] objspace_std_complextype.c [c:writing] module__random_interp_random.c [c:writing] module__file___init__.c [c:writing] module_micronumpy_interp_ufuncs.c [c:writing] jit_metainterp_optimizeopt___init__.c [translation:info] written: c:\docume~1\admini~1\locals~1\temp\usession-default-12\testing_1\testing_1.c [translation:info] Compiling c source... [platform:execute] make in c:\docume~1\admini~1\locals~1\temp\usession-default-12\testing_1 [platform:Error] In file included from common_header.h:35:0, [platform:Error] from testing_1.c:1: [platform:Error] j:\tools\pypy\pypy\translator\c/src/stack.h:47:1: warning: 'thread' attribute directive ignor ed [platform:Error] In file included from common_header.h:46:0, [platform:Error] from testing_1.c:1: [platform:Error] j:\tools\pypy\pypy\translator\c/src/cjkcodecs/multibytecodec.h:12:13: error: conflicting type s for 'ssize_t' [platform:Error] c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/sys/types.h:118:18: note: previous declaration of 'ssize_t' was here [platform:Error] make: *** [testing_1.o] Error 1 [platform:Error] make: Entering directory `/tmp/usession-default-12/testing_1' [platform:Error] gcc -O3 -DPy_BUILD_CORE -o testing_1.o -c testing_1.c -Ij:\\tools\\pypy\\pypy\\translator\\c -Ij:\\tools\\pypy\\pypy\\module\\cpyext\\include -I.. [platform:Error] make: Leaving directory `/tmp/usession-default-12/testing_1' [Timer] Timings: [Timer] annotate --- 656.2 s [Timer] rtype_lltype --- 443.8 s [Timer] pyjitpl_lltype --- 600.7 s [Timer] backendopt_lltype --- 240.1 s [Timer] stackcheckinsertion_lltype --- 52.7 s [Timer] database_c --- 332.4 s [Timer] source_c --- 458.4 s [Timer] compile_c --- 7.2 s [Timer] =========================================== [Timer] Total: --- 2791.4 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 "j:\tools\pypy\pypy\translator\driver.py", line 810, in proceed [translation:ERROR] return self._execute(goals, task_skip = self._maybe_skip()) [translation:ERROR] File "j:\tools\pypy\pypy\translator\tool\taskengine.py", line 116, in _execute [translation:ERROR] res = self._do(goal, taskcallable, *args, **kwds) [translation:ERROR] File "j:\tools\pypy\pypy\translator\driver.py", line 286, in _do [translation:ERROR] res = func() [translation:ERROR] File "j:\tools\pypy\pypy\translator\driver.py", line 573, in task_compile_c [translation:ERROR] cbuilder.compile(**kwds) [translation:ERROR] File "j:\tools\pypy\pypy\translator\c\genc.py", line 513, in compile [translation:ERROR] extra_opts) [translation:ERROR] File "j:\tools\pypy\pypy\translator\platform\posix.py", line 188, in execute_makefile [translation:ERROR] self._handle_error(returncode, stdout, stderr, path.join('make')) [translation:ERROR] File "j:\tools\pypy\pypy\translator\platform\windows.py", line 372, in _handle_error [translation:ERROR] returncode, '', stderr + stdout, outname) [translation:ERROR] File "j:\tools\pypy\pypy\translator\platform\__init__.py", line 130, in _handle_error [translation:ERROR] raise CompilationError(stdout, stderr) [translation:ERROR] CompilationError: CompilationError(err=""" [translation:ERROR] In file included from common_header.h:35:0, [translation:ERROR] from testing_1.c:1: [translation:ERROR] j:\tools\pypy\pypy\translator\c/src/stack.h:47:1: warning: 'thread' attribute directiv e ignored [translation:ERROR] In file included from common_header.h:46:0, [translation:ERROR] from testing_1.c:1: [translation:ERROR] j:\tools\pypy\pypy\translator\c/src/cjkcodecs/multibytecodec.h:12:13: error: conflicti ng types for 'ssize_t' [translation:ERROR] c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/sys/types.h:118:18: note: pr evious declaration of 'ssize_t' was here [translation:ERROR] make: *** [testing_1.o] Error 1 [translation:ERROR] make: Entering directory `/tmp/usession-default-12/testing_1' [translation:ERROR] gcc -O3 -DPy_BUILD_CORE -o testing_1.o -c testing_1.c -Ij:\\tools\\pypy\\pypy\\transla tor\\c -Ij:\\tools\\pypy\\pypy\\module\\cpyext\\include -I.. [translation:ERROR] make: Leaving directory `/tmp/usession-default-12/testing_1' [translation:ERROR] """) [translation] start debugger... > j:\tools\pypy\pypy\translator\platform\__init__.py(130)_handle_error() -> raise CompilationError(stdout, stderr) (Pdb+) ======================================================================== I am going to try to build with MSVC, see if that works. regards Caleb _______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev