<spanid="here-are-hints"></span><h2>Note on building a 32-bit version on 64-bit systems</h2>
<p>To build 32-bit versions of <ttclass="docutils literal"><spanclass="pre">pypy-c</span></tt> you need to run <ttclass="docutils literal">translate.py</tt>
in a 32-bit version of Python. You can check with:</p>
in a 32-bit version of Python, and to make sure that the C compiler it
uses is also 32-bit. You can check the first condition with:</p>
<preclass="literal-block">
$ python
Python 2.6.2 (...)
...
...
@@ -195,6 +196,11 @@
>>> sys.maxint
</pre>
<p>This prints 9223372036854775807 in 64-bit versions and 2147483647 in
32-bit versions.</p>
<p>On Linux, you may have to compile yourself a 32-bit Python, e.g.:</p>
32-bit versions. Moreover, if your Python is 32-bit but your C compiler
is 64-bit, you will get <ttclass="docutils literal">AssertionError: Mixed configuration of the
word size of the machine</tt> when running <ttclass="docutils literal">translate.py.</tt></p>
<p><strong>On Linux,</strong> the recommended way is to install and run in a fully
32-bit chroot (e.g. with the <ttclass="docutils literal">schroot</tt> Ubuntu package). The
alternative has issues about building some extension modules, but if you
want to try it, first compile yourself a 32-bit Python, e.g.:</p>