<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: HOWTO Cross Compile Python 2.5</title>
	<atom:link href="http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/feed/" rel="self" type="application/rss+xml" />
	<link>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/</link>
	<description>Programming, photography, music and life.</description>
	<pubDate>Thu, 11 Mar 2010 21:39:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: What&#8217;s Chris Doing? &#187; Blog Archive &#187; Cross Compiling Python Extensions</title>
		<link>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-258</link>
		<dc:creator>What&#8217;s Chris Doing? &#187; Blog Archive &#187; Cross Compiling Python Extensions</dc:creator>
		<pubDate>Sat, 17 Oct 2009 04:07:58 +0000</pubDate>
		<guid isPermaLink="false">http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-258</guid>
		<description>[...] instructions work both with Open Embedded and the DENX ELDK. If you need to go cross compile Python 2.5, 2.6 or 3.1. ELDK and Open Embedded include a version of Python pre-done for you. You will need a [...]</description>
		<content:encoded><![CDATA[<p>[...] instructions work both with Open Embedded and the DENX ELDK. If you need to go cross compile Python 2.5, 2.6 or 3.1. ELDK and Open Embedded include a version of Python pre-done for you. You will need a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Gibson</title>
		<link>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-256</link>
		<dc:creator>Paul Gibson</dc:creator>
		<pubDate>Fri, 09 Oct 2009 06:25:48 +0000</pubDate>
		<guid isPermaLink="false">http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-256</guid>
		<description>I don't want to steal traffic, but I've posted a 3.1 patch to my site:
http://randomsplat.com/id5-cross-compiling-python-for-embedded-linux.html</description>
		<content:encoded><![CDATA[<p>I don&#8217;t want to steal traffic, but I&#8217;ve posted a 3.1 patch to my site:<br />
<a href="http://randomsplat.com/id5-cross-compiling-python-for-embedded-linux.html" rel="nofollow">http://randomsplat.com/id5-cross-compiling-python-for-embedded-linux.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anand</title>
		<link>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-253</link>
		<dc:creator>Anand</dc:creator>
		<pubDate>Fri, 11 Sep 2009 10:58:43 +0000</pubDate>
		<guid isPermaLink="false">http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-253</guid>
		<description>Hi Chris,
     Thank you for your reply. I want to know how complex is the work to create a patch for any Python version. For example If i want to create a patch for Python3.1, is it a very cumbersome process? Does this work require a speacial expertise? If possible please explain me about your approach in doing this. So that i can try for myself.

Thanks &#38; regards,
Anand</description>
		<content:encoded><![CDATA[<p>Hi Chris,<br />
     Thank you for your reply. I want to know how complex is the work to create a patch for any Python version. For example If i want to create a patch for Python3.1, is it a very cumbersome process? Does this work require a speacial expertise? If possible please explain me about your approach in doing this. So that i can try for myself.</p>
<p>Thanks &amp; regards,<br />
Anand</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Lambacher</title>
		<link>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-252</link>
		<dc:creator>Christopher Lambacher</dc:creator>
		<pubDate>Wed, 09 Sep 2009 12:03:19 +0000</pubDate>
		<guid isPermaLink="false">http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-252</guid>
		<description>Sorry,

I have not had the opportunity to work with this on Python 3.1.</description>
		<content:encoded><![CDATA[<p>Sorry,</p>
<p>I have not had the opportunity to work with this on Python 3.1.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anand</title>
		<link>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-251</link>
		<dc:creator>Anand</dc:creator>
		<pubDate>Wed, 09 Sep 2009 10:38:22 +0000</pubDate>
		<guid isPermaLink="false">http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-251</guid>
		<description>Hi Chris,
I need to do cross compile Python 3.1 in Linux environment. I couldn't find any patch for Python3.1. Do you have patch for Python3.1?

Thanks &#38; Regards,
Anand</description>
		<content:encoded><![CDATA[<p>Hi Chris,<br />
I need to do cross compile Python 3.1 in Linux environment. I couldn&#8217;t find any patch for Python3.1. Do you have patch for Python3.1?</p>
<p>Thanks &amp; Regards,<br />
Anand</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-178</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 13 Aug 2008 16:02:43 +0000</pubDate>
		<guid isPermaLink="false">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>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 12 Aug 2008 17:00:31 +0000</pubDate>
		<guid isPermaLink="false">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>
		<dc:creator>Christopher Lambacher</dc:creator>
		<pubDate>Wed, 18 Jun 2008 11:56:03 +0000</pubDate>
		<guid isPermaLink="false">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>
		<dc:creator>Genar</dc:creator>
		<pubDate>Wed, 18 Jun 2008 09:53:47 +0000</pubDate>
		<guid isPermaLink="false">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>
		<dc:creator>Genar</dc:creator>
		<pubDate>Wed, 18 Jun 2008 09:41:01 +0000</pubDate>
		<guid isPermaLink="false">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>
</channel>
</rss>
