Cross compiling for ARM

Mahrt, Dallas dallasm at aiinet.com
Tue Jan 21 17:59:17 EST 2003


The main build process creates pgen and python executables for the build
platform. The use of the pgen executable can be commented out in the
Makefile.pre.in without any problems (since it generates the grammar.h file
[IIRC] which comes with the distribution) but the python executable is
nesessary if you want to use distutils for installing the standard libraries
and compiling the impure python modules (*.so). To do this I would change
calls to the built executable $(BUILDPYTHON) with a previously built python
interpreter for the build environment. 



-----Original Message-----
From: Andy Preston [mailto:andy at apsinnovations.com] 
Sent: Monday, January 20, 2003 8:02 PM
To: python-list at python.org
Subject: Cross compiling for ARM


Hi, 
I'm currently trying to get 2.3a1 to cross compile for ARM. I have a pretty
much successfull compile right up until it attempts to run ./python setup.py
. This or course fails because ./python is the cross compiled version and
not the host version of python. I modified Makefile.pre.in to add a
$(HOSTPYTHONPATH)/python so that a make flag could be added to path the
hosts python for when cross compiling. I'm running Slackware 8.1 with their
default python 2.2 and this fails with an error on line 8 of setup.py
"cannot find import name log".

 Parser/pgen is fails, but it doesn;t seem to effect python from compiling.

 Unfortunately I don't know enough about python to continue from here. 

I'm currently not subscribed to the list, so please CC me as well

thanks,

Andy

-- 
Andy Preston <andy at apsinnovations.com>
APS Innovations


-- 
http://mail.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list