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