<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Georgia;
        panose-1:2 4 5 2 5 4 5 2 3 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Georgia;
        color:navy;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>Hello,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>I am trying to get Python 2.5.2 working
for an IA32 system. The compilation is done on an Ubuntu 8.04.1 dev system. I
am using a custom gcc and ld specific to the IA32 system.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>This is my makefile:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>##############################<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>BUILD_DEST = /i686-custom-kernel<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>CC = $(BUILD_DEST)/bin/i686-linux-gcc<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>CPP = $(CC) –E<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>CXX = $(BUILD_DEST)/bin/i686-linux-g++<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>LD = $(BUILD_DEST)/bin/i686-linux-ld<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>PYTHONINSTALLPATH = $(BUILD_DEST)/usr<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>Export<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>all:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'> tar
xzfv Python-2.5.2.tgz<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'> ./Python-2.5.2/configure
–prefix=${PYTHONINSTALLPATH} –host=i686-linux –enable-shared<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'> cd
Python-2.5.2<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'> make<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'> make
install<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>##############################<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>Everything compiles correctly. I then
copy the contents of the $BUILD_DEST and put them on the hard drive for my IA32
system. I basically use the contents of $BUILD_DEST as the root directory on my
IA32 system. Python seems to run correctly when I run it, but when I do things
like “import pysqlite”, it cannot find it. Is there anything
special I have to do to relocate my python (since on my IA32 system it runs
from /usr/bin/python but it originally gets created in
${BUILD_DEST}/usr/bin/python)?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'>Thank you,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Georgia><span style='font-size:
10.0pt;font-family:Georgia;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoPlainText style='margin:0in;margin-bottom:.0001pt'><font size=3
color=navy face="Times New Roman"><span style='font-size:12.0pt;color:navy'>Razvan
A. Lupusoru</span></font><font size=2 color=navy face=Georgia><span
style='font-size:10.0pt;font-family:Georgia;color:navy'><o:p></o:p></span></font></p>
</div>
</body>
</html>