Okay! It seems I&#39;ve hit the GCC 4.2 memory usage bug:<br><a href="https://bugs.launchpad.net/ubuntu/+source/gcc-4.2/+bug/187391">https://bugs.launchpad.net/ubuntu/+source/gcc-4.2/+bug/187391</a><br><a href="http://comments.gmane.org/gmane.comp.python.pypy/7634">http://comments.gmane.org/gmane.comp.python.pypy/7634</a><br>
<br>I&#39;m now trying to build with GCC 4.6 (a port is available) and I&#39;ll report back.<br><br>Gabriel<br><br><div class="gmail_quote">2011/8/16 David Naylor <span dir="ltr">&lt;<a href="mailto:naylor.b.david@gmail.com">naylor.b.david@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Tuesday, 16 August 2011 05:50:18 Gabriel Lavoie wrote:<br>
&gt; Hi David,<br>
</div><div class="im">&gt;      I took a look at your port and it looks good! The patch you made for<br>
&gt; SANDBOX should probably not be needed, with a fix upstream. It seems PyPy<br>
&gt; still have a few &quot;hardcoded path&quot; issues that need to be looked at for<br>
&gt; FreeBSD (and probably for Darwin too for tools like Darwin Ports). I felt<br>
&gt; on one of those issues this morning with &quot;expat.h&quot; and &quot;libexpat.so&quot;. The<br>
&gt; translation process didn&#39;t look at /usr/local/include and /usr/local/lib<br>
&gt; to find them. Actually, there are a few places where the<br>
&gt; &quot;pypy/translator/platform&quot; module should be use to find include/lib paths.<br>
&gt; I made the initial &quot;freebsd.py&quot; file in there that contains &quot;general&quot;<br>
&gt; references to include/lib directories in &quot;/usr/local&quot;.<br>
<br>
</div>Thanks, sandbox has not been tested as I do not know how to.  An example<br>
script that makes sandbox behave like a normal python/pypy instance would be<br>
nice...<br>
<br>
On the expat issue:<br>
# ldd `which pypy1.5`<br>
/usr/local/bin/pypy1.5:<br>
        libm.so.5 =&gt; /lib/libm.so.5 (0x801664000)<br>
        libintl.so.9 =&gt; /usr/local/lib/libintl.so.9 (0x801885000)<br>
        libssl.so.6 =&gt; /usr/lib/libssl.so.6 (0x801a8e000)<br>
        libcrypto.so.6 =&gt; /lib/libcrypto.so.6 (0x801ce1000)<br>
        libexpat.so.6 =&gt; /usr/local/lib/libexpat.so.6 (0x802082000)<br>
        libbz2.so.4 =&gt; /usr/lib/libbz2.so.4 (0x8022a5000)<br>
        libz.so.6 =&gt; /lib/libz.so.6 (0x8024b5000)<br>
        librt.so.1 =&gt; /usr/lib/librt.so.1 (0x8026cb000)<br>
        libutil.so.9 =&gt; /lib/libutil.so.9 (0x8028d0000)<br>
        libffi.so.5 =&gt; /usr/local/lib/libffi.so.5 (0x802ae1000)<br>
        libncurses.so.8 =&gt; /lib/libncurses.so.8 (0x802ce7000)<br>
        libcrypt.so.5 =&gt; /lib/libcrypt.so.5 (0x802f34000)<br>
        libthr.so.3 =&gt; /lib/libthr.so.3 (0x803154000)<br>
        libc.so.7 =&gt; /lib/libc.so.7 (0x803377000)<br>
        libiconv.so.3 =&gt; /usr/local/lib/libiconv.so.3 (0x8036bf000)<br>
<br>
I also see those error yet it appears expat is picked up somehow, maybe as a<br>
depenendency?<br>
<div class="im"><br>
&gt; About my current issue, maybe you&#39;ve seen it. When I try to build PyPy<br>
&gt; using CPython, I get a &quot;Broken Pipe&quot; error and the process fails (using<br>
&gt; the standard &quot;python translate.py -O2&quot; command). Have you seen this<br>
&gt; problem recently? I&#39;m trying with the latest trunk. It seems the &quot;python&quot;<br>
&gt; process runs out of memory as I have this in my kernel log:<br>
<br>
</div>I have not encountered that problem before (except I suffer from ENOMEM).<br>
<div class="im"><br>
&gt; swap_pager_getswapspace(16): failed<br>
&gt; pid 15107 (cc1), uid 1001, was killed: out of swap space<br>
&gt; swap_pager: out of swap space<br>
&gt; swap_pager_getswapspace(2): failed<br>
&gt; pid 37981 (python), uid 1001, was killed: out of swap space<br>
<br>
</div>I have seen this problem before.  FreeBSD hard codes the size of swap it can<br>
access, and does not adapt it based on RAM or active swap.  To fix that try<br>
the following in /boot/loader.conf:<br>
<br>
# Increase max swap zone to allow for ~64GB of swap<br>
kern.maxswzone=&quot;268435456&quot;  # 256MB<br>
<div class="im"><br>
&gt; PyPy used to build correctly but I haven&#39;t tried to build it in the last 6<br>
&gt; months...<br>
<br>
</div>I have successfully built pypy-1.5 and trunk (~1 week ago), so it is possible.<br>
If you are still having problems please send me the installed physical memory,<br>
and the output of `swapinfo` and `uname -a`.<br>
<div><div></div><div class="h5"><br>
&gt; 2011/8/15 David Naylor &lt;<a href="mailto:naylor.b.david@gmail.com">naylor.b.david@gmail.com</a>&gt;<br>
&gt;<br>
&gt; &gt; On Monday, 15 August 2011 17:30:33 Gabriel Lavoie wrote:<br>
&gt; &gt; &gt; Hi David,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;     for your information, I&#39;m currently trying to make my FreeBSD<br>
&gt; &gt;<br>
&gt; &gt; buildbot<br>
&gt; &gt;<br>
&gt; &gt; &gt; back online. It broke when the requirement for the &quot;pypy&quot; binary to<br>
&gt; &gt; &gt; build PyPy appeared. It seems there are still some issues to make PyPy<br>
&gt; &gt; &gt; build again under FreeBSD. I&#39;ll keep you updated.<br>
&gt; &gt;<br>
&gt; &gt; Thanks for the update.  I have been working on a port for pypy.  The code<br>
&gt; &gt; is<br>
&gt; &gt; at <a href="http://github.com/DragonSA/pypy" target="_blank">github.com/DragonSA/pypy</a>.  It may be able to help you compile pypy<br>
&gt; &gt; under<br>
&gt; &gt; FreeBSD.  There is a branch called 1.6 that is compatible with trunk.  To<br>
&gt; &gt; compile from 1.6 set WRKSRC to point to a fresh checkout of pypy:<br>
&gt; &gt;<br>
&gt; &gt; # make install WRKSRC=/path/to/hg/checkout/of/pypy<br>
&gt; &gt;<br>
&gt; &gt; The master branch uses the 1.5 sources.<br>
&gt; &gt;<br>
&gt; &gt; &gt; 2011/8/11 David Naylor &lt;<a href="mailto:naylor.b.david@gmail.com">naylor.b.david@gmail.com</a>&gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; On Thursday, 11 August 2011 11:08:18 Maciej Fijalkowski wrote:<br>
&gt; &gt; &gt; &gt; &gt; Hi<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; A little status update from my side.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; I&#39;m trying to get 1.6 out of the door and there are a few things<br>
&gt; &gt; &gt; &gt; &gt; that stand out before we can do it.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; * Windows situation (a lot of crashes with missing liveness). Also<br>
&gt; &gt; &gt; &gt; &gt; lib-python tests take 10h which is a bit too much IMO (not a new<br>
&gt; &gt; &gt; &gt; &gt; regression though)<br>
&gt; &gt; &gt; &gt; &gt; * OS X situation (missing buildbots, being addressed now)<br>
&gt; &gt; &gt; &gt; &gt; * A bunch of issues that either should be decided we don&#39;t care or<br>
&gt; &gt; &gt; &gt; &gt; we do care and fix it.<br>
&gt; &gt; &gt; &gt; &gt; * Missing jitviewer release/demo that I&#39;m doing right now<br>
&gt; &gt; &gt; &gt; &gt; * Alex reported sqlite crashes<br>
&gt; &gt; &gt; &gt; &gt; * random segfault when running trackgcroot, armin, did you have a<br>
&gt; &gt; &gt; &gt; &gt; look? I can do if you don&#39;t<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Would anyone be interested in the FreeBSD situation?  If so what<br>
&gt; &gt;<br>
&gt; &gt; support<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; do you need?  I am currently updating my repository and will report<br>
&gt; &gt; &gt; &gt; back...<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; pypy-dev mailing list<br>
&gt; &gt; &gt; &gt; <a href="mailto:pypy-dev@python.org">pypy-dev@python.org</a><br>
&gt; &gt; &gt; &gt; <a href="http://mail.python.org/mailman/listinfo/pypy-dev" target="_blank">http://mail.python.org/mailman/listinfo/pypy-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Gabriel Lavoie<br><a href="mailto:glavoie@gmail.com">glavoie@gmail.com</a><br>