All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pedro Sanchez <psanchez@fosstel.com>
To: buildroot@busybox.net
Subject: [Buildroot] Python standard library problems
Date: Thu, 01 Sep 2011 10:18:11 -0400	[thread overview]
Message-ID: <4E5F9423.40000@fosstel.com> (raw)
In-Reply-To: <20110901095040.75c91843@skate>

On 09/01/2011 03:50 AM, Thomas Petazzoni wrote:
> Le Wed, 31 Aug 2011 10:17:23 -0400,
> Pedro Sanchez<psanchez@fosstel.com>  a ?crit :
>
>> Tested loading the Python modules of my application. Only one module
>> fails to load now.
>>
>> $ python
>> Python 2.7.1 (r271:86832, Aug 31 2011, 09:38:18)
>> [GCC 4.5.2] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>>
>>   >>>  import fcntl
>>   >>>  import os
>>   >>>  import sys
>>   >>>  import signal
>>   >>>  import socket
>>   >>>  import time
>>   >>>  import datetime
>>   >>>  from collections import deque
>>   >>>  from subprocess import Popen, PIPE
>> Traceback (most recent call last):
>>     File "<stdin>", line 1, in<module>
>>     File "/usr/lib/python2.7/subprocess.py", line 432, in<module>
>>     File "/usr/lib/python2.7/pickle.py", line 1266, in<module>
>> ImportError: No module named binascii
>
> Strange, I've built Python for ARM with the latest git, and importing
> subprocess just works fine.
>
> Could you post the complete build log somewhere (not to the list but on
> some pastebin site) :
>
> make clean
> make 2>&1 | tee logfile
>
> and then post logfile.
>
> Thomas

Hi,

The log says:

Failed to build these modules:
binascii           readline

And when building binascii it says:

Include/pyport.h:849:2: error: #error "LONG_BIT definition appears wrong 
for platform (bad gcc/glibc config?)."


The fact that also readline fails to build explains why I can't use the 
cursor keys when using the Python interpreter on my ARM board.

The full log is here (copy and paste to a local file):

http://pastebin.me/746c47fed3b257dbced48473b01ab27c


-- 
Pedro

      reply	other threads:[~2011-09-01 14:18 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-10 19:18 [Buildroot] Python standard library problems Pedro Sanchez
2011-08-10 21:48 ` Dominic Newton
2011-08-11 13:14   ` Pedro Sanchez
2011-08-11 15:37     ` Dominic Newton
2011-08-11 18:23       ` Pedro Sanchez
2011-08-11 20:54         ` Pedro Sanchez
2011-08-12 10:01           ` Maxime Ripard
2011-08-12 15:44             ` Maxime Ripard
2011-08-12 17:47               ` Pedro Sanchez
2011-08-16  8:22                 ` Maxime Ripard
2011-08-29 15:58                   ` Maxime Ripard
2011-08-30 14:36                     ` Pedro Sanchez
2011-08-31 14:17                       ` Pedro Sanchez
2011-09-01  7:50                         ` Thomas Petazzoni
2011-09-01 14:18                           ` Pedro Sanchez [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E5F9423.40000@fosstel.com \
    --to=psanchez@fosstel.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.