Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #43626 > unrolled thread

Cross-compiling Python for ARM?

Started byGilles <nospam@nospam.com>
First post2013-04-15 17:20 +0200
Last post2013-04-21 00:41 +0200
Articles 4 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  Cross-compiling Python for ARM? Gilles <nospam@nospam.com> - 2013-04-15 17:20 +0200
    Re: Cross-compiling Python for ARM? Terry Jan Reedy <tjreedy@udel.edu> - 2013-04-15 20:50 -0400
    Re: Cross-compiling Python for ARM? Anssi Saari <as@sci.fi> - 2013-04-16 17:22 +0300
      Re: Cross-compiling Python for ARM? Gilles <nospam@nospam.com> - 2013-04-21 00:41 +0200

#43626 — Cross-compiling Python for ARM?

FromGilles <nospam@nospam.com>
Date2013-04-15 17:20 +0200
SubjectCross-compiling Python for ARM?
Message-ID<7d6om8tigsjg0eqcpig5fl75dbth6qpflc@4ax.com>
Hello

I tried running uWSGI on an ARM-based appliance, but it fails. 

Apparently, it could be due to the official Python 2.6.6 interpreter
in the depot not being compiled the way uWSGI expects it to be:

./configure --enable-shared; make; make install;
www.raspberrypi.org/phpBB3/viewtopic.php?f=32&t=15370

I see Python mentioned in /usr/lib and /usr/share, and was wondering
if all it'd take to solve this issue, is just to cross-compile the
interpreter and the rest is just CPU-agnostic Python scripts.

Just in case, here's the output:
www.pastebin.com/wJHjBrfn

Thank you.

[toc] | [next] | [standalone]


#43650

FromTerry Jan Reedy <tjreedy@udel.edu>
Date2013-04-15 20:50 -0400
Message-ID<mailman.650.1366073421.3114.python-list@python.org>
In reply to#43626
On 4/15/2013 11:20 AM, Gilles wrote:
> Hello
>
> I tried running uWSGI on an ARM-based appliance, but it fails.
>
> Apparently, it could be due to the official Python 2.6.6 interpreter
> in the depot not being compiled the way uWSGI expects it to be:
>
> ./configure --enable-shared; make; make install;
> www.raspberrypi.org/phpBB3/viewtopic.php?f=32&t=15370
>
> I see Python mentioned in /usr/lib and /usr/share, and was wondering
> if all it'd take to solve this issue, is just to cross-compile the
> interpreter and the rest is just CPU-agnostic Python scripts.
>
> Just in case, here's the output:
> www.pastebin.com/wJHjBrfn

I believe some cross-compile support was added to 2.7.4 but I do not 
know the exact nature.

[toc] | [prev] | [next] | [standalone]


#43668

FromAnssi Saari <as@sci.fi>
Date2013-04-16 17:22 +0300
Message-ID<vg3wqs2o8qo.fsf@coffee.modeemi.fi>
In reply to#43626
Gilles <nospam@nospam.com> writes:

> I see Python mentioned in /usr/lib and /usr/share, and was wondering
> if all it'd take to solve this issue, is just to cross-compile the
> interpreter and the rest is just CPU-agnostic Python scripts.

I suppose. In any case, cross compiling Python shouldn't be that hard. I
just recently built 2.7.3 for my OpenWRT router since the packaged
Python didn't have readline support (some long standing linking issue
with readline and ncurses and uClibc).

[toc] | [prev] | [next] | [standalone]


#43969

FromGilles <nospam@nospam.com>
Date2013-04-21 00:41 +0200
Message-ID<la66n89de2ju6ubtujg0080quhlpcodl95@4ax.com>
In reply to#43668
On Tue, 16 Apr 2013 17:22:55 +0300, Anssi Saari <as@sci.fi> wrote:
>In any case, cross compiling Python shouldn't be that hard. I
>just recently built 2.7.3 for my OpenWRT router since the packaged
>Python didn't have readline support (some long standing linking issue
>with readline and ncurses and uClibc).

Thanks guys. Turns out the error was not due to Python, so the ARM
version available in the Debian depot is fine.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web