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