<div>[apologies for the spam, but people seem interested]</div><div><br></div>On Snow Leopard, after adding the -m32 flags recommended by Leonardo, it got all the way to compilation, and then failed. I had tried to do a c-jit compile over the latest trunk using 32bit python.  <div>

<br></div><div>Here is the full run log: <a href="http://paste.pocoo.org/show/151639/">http://paste.pocoo.org/show/151639/</a><div><br></div><div><div>Leo</div><br><div class="gmail_quote">On Wed, Nov 18, 2009 at 7:16 PM, Leonardo wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">There is still no backend for x86_64 but you can compile it with the jit in 32 bit mode. For this you have to make your cpython go to 32bit mode (search for it on the web, it is different if it is the standard python, the <a href="http://python.org" target="_blank">python.org</a> dmg or the macports one) and apply this patch:<br>


<br>
<a href="http://paste.pocoo.org/show/151604/" target="_blank">http://paste.pocoo.org/show/151604/</a><br>
<br>
but it is way faster than compiling on a virtual machine.<br>
<br>
I want to work more on this patch and make it force the -m flag (based on the arch of the python interpreter) to the compiler so it properly works on snow leopard (that can run both 32 and 64 bit programs independent of kernel arch).<br>


<br>
If you do please tell me how it went please :)<br>
<div><div></div><div class="h5"><br>
On Nov 19, 2009, at 1:01 AM, Leo wrote:<br>
<br>
&gt; I meant to say, is the JIT working in Snow Leopard in 64 bit?<br>
&gt;<br>
&gt; Leo<br>
&gt;<br>
&gt; On Wed, Nov 18, 2009 at 7:00 PM, Leo Trottier &lt;<a href="mailto:trottier@gmail.com">trottier@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Is the working in Snow Leopard in 64 bit?  It seemed there were<br>
&gt;&gt; intractable errors in this regard earlier?<br>
&gt;&gt;<br>
&gt;&gt; Leo<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Nov 18, 2009 at 6:40 PM, Leonardo  wrote:<br>
&gt;&gt;&gt; Why don&#39;t you compile it on osx? most things should be working on osx now.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Nov 18, 2009, at 11:14 PM, Leo wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; ... perhaps this has been resolved (??) but two compilation attempts<br>
&gt;&gt;&gt;&gt; on the pypy/trunk from earlier today failed with the following error<br>
&gt;&gt;&gt;&gt; message.  I&#39;m compiling on a VirtualBox install of Xubuntu on OS-X (2<br>
&gt;&gt;&gt;&gt; gig allocated, dual-core 1 GHz cpu).<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; the pypy-dist version compiles fine ...<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; and/all guidance would be appreciated<br>
&gt;&gt;&gt;&gt; ==========================<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; [platform:ERROR] make: Entering directory `/tmp/usession-trunk-1/testing_1&#39;<br>
&gt;&gt;&gt;&gt; [platform:ERROR] gcc -O3 -pthread -fomit-frame-pointer<br>
&gt;&gt;&gt;&gt; -frandom-seed=testing_1.c -o testing_1.s -S testing_1.c<br>
&gt;&gt;&gt;&gt; -I/usr/include/python2.6 -I/home/leo/Source<br>
&gt;&gt;&gt;&gt; Code/pypy-trunk/pypy/translator/c -I/usr/include/libffi<br>
&gt;&gt;&gt;&gt; [platform:ERROR] make: Leaving directory `/tmp/usession-trunk-1/testing_1&#39;<br>
&gt;&gt;&gt;&gt; [Timer] Timings:<br>
&gt;&gt;&gt;&gt; [Timer] annotate                       ---  623.8 s<br>
&gt;&gt;&gt;&gt; [Timer] rtype_lltype                   ---  768.0 s<br>
&gt;&gt;&gt;&gt; [Timer] pyjitpl_lltype                 ---  570.6 s<br>
&gt;&gt;&gt;&gt; [Timer] backendopt_lltype              ---  359.7 s<br>
&gt;&gt;&gt;&gt; [Timer] stackcheckinsertion_lltype     ---  118.4 s<br>
&gt;&gt;&gt;&gt; [Timer] database_c                     ---  789.6 s<br>
&gt;&gt;&gt;&gt; [Timer] source_c                       ---  927.0 s<br>
&gt;&gt;&gt;&gt; [Timer] compile_c                      ---    2.5 s<br>
&gt;&gt;&gt;&gt; [Timer] ===========================================<br>
&gt;&gt;&gt;&gt; [Timer] Total:                         --- 4159.4 s<br>
&gt;&gt;&gt;&gt; [translation:ERROR] Error:<br>
&gt;&gt;&gt;&gt; [translation:ERROR]  Traceback (most recent call last):<br>
&gt;&gt;&gt;&gt; [translation:ERROR]    File &quot;translate.py&quot;, line 277, in main<br>
&gt;&gt;&gt;&gt; [translation:ERROR]     drv.proceed(goals)<br>
&gt;&gt;&gt;&gt; [translation:ERROR]    File &quot;/home/leo/Source<br>
&gt;&gt;&gt;&gt; Code/pypy-trunk/pypy/translator/driver.py&quot;, line 741, in proceed<br>
&gt;&gt;&gt;&gt; [translation:ERROR]     return self._execute(goals, task_skip =<br>
&gt;&gt;&gt;&gt; self._maybe_skip())<br>
&gt;&gt;&gt;&gt; [translation:ERROR]    File &quot;/home/leo/Source<br>
&gt;&gt;&gt;&gt; Code/pypy-trunk/pypy/translator/tool/taskengine.py&quot;, line 116, in<br>
&gt;&gt;&gt;&gt; _execute<br>
&gt;&gt;&gt;&gt; [translation:ERROR]     res = self._do(goal, taskcallable, *args, **kwds)<br>
&gt;&gt;&gt;&gt; [translation:ERROR]    File &quot;/home/leo/Source<br>
&gt;&gt;&gt;&gt; Code/pypy-trunk/pypy/translator/driver.py&quot;, line 279, in _do<br>
&gt;&gt;&gt;&gt; [translation:ERROR]     res = func()<br>
&gt;&gt;&gt;&gt; [translation:ERROR]    File &quot;/home/leo/Source<br>
&gt;&gt;&gt;&gt; Code/pypy-trunk/pypy/translator/driver.py&quot;, line 504, in<br>
&gt;&gt;&gt;&gt; task_compile_c<br>
&gt;&gt;&gt;&gt; [translation:ERROR]     cbuilder.compile()<br>
&gt;&gt;&gt;&gt; [translation:ERROR]    File &quot;/home/leo/Source<br>
&gt;&gt;&gt;&gt; Code/pypy-trunk/pypy/translator/c/genc.py&quot;, line 447, in compile<br>
&gt;&gt;&gt;&gt; [translation:ERROR]<br>
&gt;&gt;&gt;&gt; self.translator.platform.execute_makefile(self.targetdir)<br>
&gt;&gt;&gt;&gt; [translation:ERROR]    File &quot;/home/leo/Source<br>
&gt;&gt;&gt;&gt; Code/pypy-trunk/pypy/translator/platform/posix.py&quot;, line 114, in<br>
&gt;&gt;&gt;&gt; execute_makefile<br>
&gt;&gt;&gt;&gt; [translation:ERROR]     self._handle_error(returncode, stdout, stderr,<br>
&gt;&gt;&gt;&gt; path.join(&#39;make&#39;))<br>
&gt;&gt;&gt;&gt; [translation:ERROR]    File &quot;/home/leo/Source<br>
&gt;&gt;&gt;&gt; Code/pypy-trunk/pypy/translator/platform/__init__.py&quot;, line 117, in<br>
&gt;&gt;&gt;&gt; _handle_error<br>
&gt;&gt;&gt;&gt; [translation:ERROR]     raise CompilationError(stdout, stderr)<br>
&gt;&gt;&gt;&gt; [translation:ERROR]  CompilationError: &lt;CompilationError err=&quot;make:<br>
&gt;&gt;&gt;&gt; Entering directory `/tmp/usession-trunk-1/testing_1&#39;\ngcc -O3 -pthread<br>
&gt;&gt;&gt;&gt; -fomit-frame-pointer -frandom-seed=testi...e<br>
&gt;&gt;&gt;&gt; Code/pypy-trunk/pypy/translator/c -I/usr/include/libffi\nmake: Leaving<br>
&gt;&gt;&gt;&gt; directory `/tmp/usession-trunk-1/testing_1&#39;\n&quot;&gt;<br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; <a href="mailto:pypy-dev@codespeak.net">pypy-dev@codespeak.net</a><br>
&gt;&gt;&gt;&gt; <a href="http://codespeak.net/mailman/listinfo/pypy-dev" target="_blank">http://codespeak.net/mailman/listinfo/pypy-dev</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Leonardo<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
<br>
--<br>
Leonardo<br>
<br>
<br>
<br>
</div></div></blockquote></div><br></div></div>