<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: HOWTO Cross Compile Python 2.5</title>
	<link>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/</link>
	<description>Programming, photography, music and life.</description>
	<pubDate>Sat, 11 Oct 2008 01:33:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2</generator>

	<item>
		<title>By: Steve</title>
		<link>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-178</link>
		<author>Steve</author>
		<pubDate>Wed, 13 Aug 2008 16:02:43 +0000</pubDate>
		<guid>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-178</guid>
		<description>I am trying to follow the instructions from "K's clutter loft".  
I just don't know the configure scripting to get the ./configure script to NOT do the "checking for %zd printf() format support" test.

Any pointers there?  Do you know that scripting?  Once I get that done I think it will work.

Thanks again.</description>
		<content:encoded><![CDATA[<p>I am trying to follow the instructions from &#8220;K&#8217;s clutter loft&#8221;.<br />
I just don&#8217;t know the configure scripting to get the ./configure script to NOT do the &#8220;checking for %zd printf() format support&#8221; test.</p>
<p>Any pointers there?  Do you know that scripting?  Once I get that done I think it will work.</p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-177</link>
		<author>Steve</author>
		<pubDate>Tue, 12 Aug 2008 17:00:31 +0000</pubDate>
		<guid>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-177</guid>
		<description>Hi Chris.

Great article.  I too am looking for the 2.5.2 patch.  I've poked around everywhere but couldn't find it.  I tried the dholm.com address above but it's a dead link now.

Any ideas?  

BTW:  I'm cross compiling for a mips64 bit Cavium Processor. 

I'm pretty good (at least I think I am, as he pats himself on the back) at cross compiling.  I must admit, this python stuff is a PAIN to cross compile.  :)</description>
		<content:encoded><![CDATA[<p>Hi Chris.</p>
<p>Great article.  I too am looking for the 2.5.2 patch.  I&#8217;ve poked around everywhere but couldn&#8217;t find it.  I tried the dholm.com address above but it&#8217;s a dead link now.</p>
<p>Any ideas?  </p>
<p>BTW:  I&#8217;m cross compiling for a mips64 bit Cavium Processor. </p>
<p>I&#8217;m pretty good (at least I think I am, as he pats himself on the back) at cross compiling.  I must admit, this python stuff is a PAIN to cross compile.  :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Lambacher</title>
		<link>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-167</link>
		<author>Christopher Lambacher</author>
		<pubDate>Wed, 18 Jun 2008 11:56:03 +0000</pubDate>
		<guid>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-167</guid>
		<description>Genar: There were some changes in 2.5.2 that make the patch not apply cleanly.  I believe that if you follow the comment above yours to dholm.com they had it working with 2.5.2.  

You can also look in the rej files to see what failed and try to apply the patches manually.

-Chris</description>
		<content:encoded><![CDATA[<p>Genar: There were some changes in 2.5.2 that make the patch not apply cleanly.  I believe that if you follow the comment above yours to dholm.com they had it working with 2.5.2.  </p>
<p>You can also look in the rej files to see what failed and try to apply the patches manually.</p>
<p>-Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Genar</title>
		<link>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-166</link>
		<author>Genar</author>
		<pubDate>Wed, 18 Jun 2008 09:53:47 +0000</pubDate>
		<guid>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-166</guid>
		<description>Sorry in my previous post, the first command was (I misspelled it)
patch -p1 &#60; ../Python2.5_xcompile.pat
And the result was:
patching file configure
Hunk 1 FAILED at 1.
Hunk 2 FAILED at 984.
--- bla, bla, a lot of Hunk failed-----
231 out of 231 hunks FAILED -- saving rejects to file configure.rej
patching file configure.in
Hunk 1 FAILED at 3342.
1 out of 1 hunk FAILED -- saving rejects to file configure.in.rej
patching file Makefile.pre.in
Hunk 1 succeeded at 173 (offset 3 lines).
Hunk 2 succeeded at 201 (offset 3 lines).
Hunk 3 succeeded at 351 (offset 3 lines).
Hunk 4 FAILED at 476.
Hunk 5 succeeded at 784 (offset 9 lines).
Hunk 6 succeeded at 897 (offset 9 lines).
1 out of 6 hunks FAILED -- saving rejects to file Makefile.pre.in.rej
patching file setup.py
Hunk 3 succeeded at 578 (offset 1 line).
Hunk 4 succeeded at 595 (offset 1 line).</description>
		<content:encoded><![CDATA[<p>Sorry in my previous post, the first command was (I misspelled it)<br />
patch -p1 &lt; ../Python2.5_xcompile.pat<br />
And the result was:<br />
patching file configure<br />
Hunk 1 FAILED at 1.<br />
Hunk 2 FAILED at 984.<br />
&#8212; bla, bla, a lot of Hunk failed&#8212;&#8211;<br />
231 out of 231 hunks FAILED &#8212; saving rejects to file configure.rej<br />
patching file configure.in<br />
Hunk 1 FAILED at 3342.<br />
1 out of 1 hunk FAILED &#8212; saving rejects to file configure.in.rej<br />
patching file Makefile.pre.in<br />
Hunk 1 succeeded at 173 (offset 3 lines).<br />
Hunk 2 succeeded at 201 (offset 3 lines).<br />
Hunk 3 succeeded at 351 (offset 3 lines).<br />
Hunk 4 FAILED at 476.<br />
Hunk 5 succeeded at 784 (offset 9 lines).<br />
Hunk 6 succeeded at 897 (offset 9 lines).<br />
1 out of 6 hunks FAILED &#8212; saving rejects to file Makefile.pre.in.rej<br />
patching file setup.py<br />
Hunk 3 succeeded at 578 (offset 1 line).<br />
Hunk 4 succeeded at 595 (offset 1 line).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Genar</title>
		<link>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-165</link>
		<author>Genar</author>
		<pubDate>Wed, 18 Jun 2008 09:41:01 +0000</pubDate>
		<guid>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-165</guid>
		<description>I cannot cross-compile Python 2.5.2, I have execute the following commands:

~/Chris/Python-2.5.2$ patch -p1  FAILED......

Then I run the following commands:
~/Chris/Python-2.5.2$ ./configure
~/Chris/Python-2.5.2$ make python Parser/pgen
~/Chris/Python-2.5.2$ mv python hostpython
~/Chris/mv Parser/pgen Parser/hostpgen
~Chris/Python-2.5.2$ make distclean
~/Chris/Python-2.5.2$ export CC=arm-linux-gcc
~/Chris/Python-2.5.2$ export CXX=arm-linux-g++
~/Chris/Python-2.5.2$ export AR=arm-linux-ar
~/Chris/Python-2.5.2$ export LD=arm-linux-ld
~/Chris/Python-2.5.2$ export RANLIB=arm-linux-ranlib
~/Chris/Python-2.5.2$ export CFLAGS=
~/Chris/Python-2.5.2$ export CPPFLAGS=-I/opt/emlix/netdcu10/include
~Chris/Python-2.5.2$ export LDFLAGS=-L/opt/emlix/netdcu10/lib 
~Chris/Python-2.5.2$ ./configure --target=arm-linux --host=arm-linux --build=i686-pc-linux-gnu --prefix=/python

But then I get the following error because the "./configure" tries to run test; that is:
"checking for %zd printf() format support... configure: error: cannot run test program while cross compilingSee `config.log' for more details."

Because of this error no "Makefile" is built and then I cannot execute:
make EXTRA_CFLAGS=”$CFLAGS” HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen BLDSHARED=’ppc-linux-gcc -shared’ CROSS_COMPILE=yes

Please, could anybody tell me what I am doing wrong? Thanks in advance</description>
		<content:encoded><![CDATA[<p>I cannot cross-compile Python 2.5.2, I have execute the following commands:</p>
<p>~/Chris/Python-2.5.2$ patch -p1  FAILED&#8230;&#8230;</p>
<p>Then I run the following commands:<br />
~/Chris/Python-2.5.2$ ./configure<br />
~/Chris/Python-2.5.2$ make python Parser/pgen<br />
~/Chris/Python-2.5.2$ mv python hostpython<br />
~/Chris/mv Parser/pgen Parser/hostpgen<br />
~Chris/Python-2.5.2$ make distclean<br />
~/Chris/Python-2.5.2$ export CC=arm-linux-gcc<br />
~/Chris/Python-2.5.2$ export CXX=arm-linux-g++<br />
~/Chris/Python-2.5.2$ export AR=arm-linux-ar<br />
~/Chris/Python-2.5.2$ export LD=arm-linux-ld<br />
~/Chris/Python-2.5.2$ export RANLIB=arm-linux-ranlib<br />
~/Chris/Python-2.5.2$ export CFLAGS=<br />
~/Chris/Python-2.5.2$ export CPPFLAGS=-I/opt/emlix/netdcu10/include<br />
~Chris/Python-2.5.2$ export LDFLAGS=-L/opt/emlix/netdcu10/lib<br />
~Chris/Python-2.5.2$ ./configure &#8211;target=arm-linux &#8211;host=arm-linux &#8211;build=i686-pc-linux-gnu &#8211;prefix=/python</p>
<p>But then I get the following error because the &#8220;./configure&#8221; tries to run test; that is:<br />
&#8220;checking for %zd printf() format support&#8230; configure: error: cannot run test program while cross compilingSee `config.log&#8217; for more details.&#8221;</p>
<p>Because of this error no &#8220;Makefile&#8221; is built and then I cannot execute:<br />
make EXTRA_CFLAGS=”$CFLAGS” HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen BLDSHARED=’ppc-linux-gcc -shared’ CROSS_COMPILE=yes</p>
<p>Please, could anybody tell me what I am doing wrong? Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dholm.com &#187; Blog Archive &#187; Python; impressively portable</title>
		<link>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-164</link>
		<author>dholm.com &#187; Blog Archive &#187; Python; impressively portable</author>
		<pubDate>Tue, 13 May 2008 18:32:52 +0000</pubDate>
		<guid>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-164</guid>
		<description>[...] cross-compile-aware at all but I did manage to build a working interpreter. Today Kristian found a guide on how to cross-compile the modules as well and so we were able to build a complete Python [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] cross-compile-aware at all but I did manage to build a working interpreter. Today Kristian found a guide on how to cross-compile the modules as well and so we were able to build a complete Python [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: giorgos logiotatidis &#187; Python for CRIS Etrax</title>
		<link>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-161</link>
		<author>giorgos logiotatidis &#187; Python for CRIS Etrax</author>
		<pubDate>Mon, 07 Apr 2008 15:06:23 +0000</pubDate>
		<guid>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-161</guid>
		<description>[...] a howto from this site I managed to cross-compile python 2.5.1 for my embedded linux board . Although AXIS provides python [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] a howto from this site I managed to cross-compile python 2.5.1 for my embedded linux board . Although AXIS provides python [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thetechgeek</title>
		<link>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-160</link>
		<author>thetechgeek</author>
		<pubDate>Mon, 24 Mar 2008 18:38:07 +0000</pubDate>
		<guid>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-160</guid>
		<description>How could I cross-compile python for the wii? It has a powerpc processor. There's a .elf compiler for the wii here: http://www.devkitpro.org/</description>
		<content:encoded><![CDATA[<p>How could I cross-compile python for the wii? It has a powerpc processor. There&#8217;s a .elf compiler for the wii here: <a href="http://www.devkitpro.org/" rel="nofollow">http://www.devkitpro.org/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PhongPham</title>
		<link>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-159</link>
		<author>PhongPham</author>
		<pubDate>Fri, 21 Mar 2008 06:47:29 +0000</pubDate>
		<guid>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-159</guid>
		<description>I see PYTHONPATH by :
import sys
print str(sys.path)

and  gain : 

['/working/kenvi/phongpham/2.8.0.0/portcodemono/Python-2.5.2', '/working/kenvi/phongpham/2.8.0.0/portcodemono/Python-2.5.2', '/usr/local/lib/python25.zip', '/working/kenvi/phongpham/2.8.0.0/portcodemono/Python-2.5.2/Lib', '/working/kenvi/phongpham/2.8.0.0/portcodemono/Python-2.5.2/Lib/plat-linux2',
'/working/kenvi/phongpham/2.8.0.0/portcodemono/Python-2.5.2/Lib/lib-tk', '/working/kenvi/phongpham/2.8.0.0/portcodemono/Python-2.5.2/Modules', '/working/kenvi/phongpham/2.8.0.0/portcodemono/Python-2.5.2/build/lib.linux-mips-2.5']

And follow you, What do I miss or mistake when can't import as above? 

Thanks</description>
		<content:encoded><![CDATA[<p>I see PYTHONPATH by :<br />
import sys<br />
print str(sys.path)</p>
<p>and  gain : </p>
<p>[&#8217;/working/kenvi/phongpham/2.8.0.0/portcodemono/Python-2.5.2&#8242;, &#8216;/working/kenvi/phongpham/2.8.0.0/portcodemono/Python-2.5.2&#8242;, &#8216;/usr/local/lib/python25.zip&#8217;, &#8216;/working/kenvi/phongpham/2.8.0.0/portcodemono/Python-2.5.2/Lib&#8217;, &#8216;/working/kenvi/phongpham/2.8.0.0/portcodemono/Python-2.5.2/Lib/plat-linux2&#8242;,<br />
&#8216;/working/kenvi/phongpham/2.8.0.0/portcodemono/Python-2.5.2/Lib/lib-tk&#8217;, &#8216;/working/kenvi/phongpham/2.8.0.0/portcodemono/Python-2.5.2/Modules&#8217;, &#8216;/working/kenvi/phongpham/2.8.0.0/portcodemono/Python-2.5.2/build/lib.linux-mips-2.5&#8242;]</p>
<p>And follow you, What do I miss or mistake when can&#8217;t import as above? </p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PhongPham</title>
		<link>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-158</link>
		<author>PhongPham</author>
		<pubDate>Fri, 21 Mar 2008 04:43:21 +0000</pubDate>
		<guid>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-158</guid>
		<description>Thanks for your reply soon.

I tried by : add a new file have a simple function in Lib folder. When I mount on Python2.5.2 folder  which have python app, I can use : from my_file import my_function but when use: from random import Random , I met error: 
"from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil
ImportError: No module named math "

So i want use it , I must import all (import math...) ? or How must I do ?. Please guide me details.

Thank you again !</description>
		<content:encoded><![CDATA[<p>Thanks for your reply soon.</p>
<p>I tried by : add a new file have a simple function in Lib folder. When I mount on Python2.5.2 folder  which have python app, I can use : from my_file import my_function but when use: from random import Random , I met error:<br />
&#8220;from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil<br />
ImportError: No module named math &#8221;</p>
<p>So i want use it , I must import all (import math&#8230;) ? or How must I do ?. Please guide me details.</p>
<p>Thank you again !</p>
]]></content:encoded>
	</item>
</channel>
</rss>
