* [Buildroot] Building buildroot with python (32bit) on 64bit ubuntu machine
@ 2014-09-23 4:05 John Tobias
2014-09-23 5:39 ` Oli Vogt
2014-09-23 7:45 ` Thomas Petazzoni
0 siblings, 2 replies; 5+ messages in thread
From: John Tobias @ 2014-09-23 4:05 UTC (permalink / raw)
To: buildroot
Hi,
Does anyone here have successfully compiled python (32bit) on
buildroot using a 64bit ubuntu machine?.
Regards,
john
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Building buildroot with python (32bit) on 64bit ubuntu machine
2014-09-23 4:05 [Buildroot] Building buildroot with python (32bit) on 64bit ubuntu machine John Tobias
@ 2014-09-23 5:39 ` Oli Vogt
2014-09-23 7:44 ` Thomas Petazzoni
2014-09-23 7:45 ` Thomas Petazzoni
1 sibling, 1 reply; 5+ messages in thread
From: Oli Vogt @ 2014-09-23 5:39 UTC (permalink / raw)
To: buildroot
Hello John
May bee this is of interest to you:
I build for ARM 32-bit and started working on the new module
python-smbus-cffi a few weeks ago. After running into problems I could not
finish my investigations because of other more urgent work.
Here are the notes I made:
On a 64-bit host: the build/install of python-smbus-cffi fails as follows:
------------
Traceback (most recent call last):
File "setup.py", line 7, in <module>
import smbus
File
"/home/MPSRV01/home/micropoint/projects/linux-sys/buildroot/buildroot.oli/output/build/python-smbus-cffi-0.2/smbus/__init__.py",
line 1, in <module>
from .smbus import ffi
File
"/home/MPSRV01/home/micropoint/projects/linux-sys/buildroot/buildroot.oli/output/build/python-smbus-cffi-0.2/smbus/smbus.py",
line 36, in <module>
ffi = FFI()
File
"/home/MPSRV01/home/micropoint/projects/linux-sys/buildroot/buildroot.oli/output/target/usr/lib/python2.7/site-packages/cffi/api.py",
line 56, in __init__
import _cffi_backend as backend
ImportError:
/home/MPSRV01/home/micropoint/projects/linux-sys/buildroot/buildroot.oli/output/target/usr/lib/python2.7/site-packages/_cffi_backend.so:
wrong ELF class: ELFCLASS32
make: ***
[/home/MPSRV01/home/micropoint/projects/linux-sys/buildroot/buildroot.oli/output/build/python-smbus-cffi-0.2/.stamp_built]
Error 1
------------
The problem is that on one hand we have a 64-bit host-python and on the
other hand a 32-bit dll for the target system and 'api.py:56' does not like
different word sizes:
------------
output/host/usr/bin$ file python2.7
python2.7: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.6.24,
BuildID[sha1]=99a8a60d10f743693f46f8a69468385638d2ff79, not stripped
------------
------------
output/target/usr/lib/python2.7/site-packages$ file _cffi_backend.so
_cffi_backend.so: ELF 32-bit LSB shared object, ARM, EABI5 version 1
(SYSV), dynamically linked, not stripped
------------
On the other hand I'm happy with compiling existing modules for python 2.7
under 64bit Ubuntu 14.04.
I must say that I have installed a fair bit of 32-bit libraries and
applications on my system.
Regards, oli
On 23 September 2014 16:05, John Tobias <john.tobias.ph@gmail.com> wrote:
> Hi,
>
> Does anyone here have successfully compiled python (32bit) on
> buildroot using a 64bit ubuntu machine?.
>
> Regards,
>
> john
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140923/92581258/attachment.html>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Building buildroot with python (32bit) on 64bit ubuntu machine
2014-09-23 5:39 ` Oli Vogt
@ 2014-09-23 7:44 ` Thomas Petazzoni
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2014-09-23 7:44 UTC (permalink / raw)
To: buildroot
Dear Oli Vogt,
On Tue, 23 Sep 2014 17:39:54 +1200, Oli Vogt wrote:
> I build for ARM 32-bit and started working on the new module
> python-smbus-cffi a few weeks ago. After running into problems I could not
> finish my investigations because of other more urgent work.
> Here are the notes I made:
>
> On a 64-bit host: the build/install of python-smbus-cffi fails as follows:
Could you post as RFC the current state of your patch adding
python-smbus-cffi ? I've done a fair bit of work on the Python stuff,
so I might be able to look into this and see what's going on.
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Building buildroot with python (32bit) on 64bit ubuntu machine
2014-09-23 4:05 [Buildroot] Building buildroot with python (32bit) on 64bit ubuntu machine John Tobias
2014-09-23 5:39 ` Oli Vogt
@ 2014-09-23 7:45 ` Thomas Petazzoni
2014-10-16 7:06 ` Oli Vogt
1 sibling, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2014-09-23 7:45 UTC (permalink / raw)
To: buildroot
Dear John Tobias,
On Mon, 22 Sep 2014 21:05:46 -0700, John Tobias wrote:
> Does anyone here have successfully compiled python (32bit) on
> buildroot using a 64bit ubuntu machine?.
Yes, works fine here. Please give more details (Buildroot version,
Buildroot .config, and error encountered), if you expect us to help
you :-)
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Building buildroot with python (32bit) on 64bit ubuntu machine
2014-09-23 7:45 ` Thomas Petazzoni
@ 2014-10-16 7:06 ` Oli Vogt
0 siblings, 0 replies; 5+ messages in thread
From: Oli Vogt @ 2014-10-16 7:06 UTC (permalink / raw)
To: buildroot
Dear Buildroot.
I'm currently overseas and not able to actively participate for some weeks
possibly even months.
Sorry, oli
On 23 September 2014 19:45, Thomas Petazzoni <
thomas.petazzoni@free-electrons.com> wrote:
> Dear John Tobias,
>
> On Mon, 22 Sep 2014 21:05:46 -0700, John Tobias wrote:
>
> > Does anyone here have successfully compiled python (32bit) on
> > buildroot using a 64bit ubuntu machine?.
>
> Yes, works fine here. Please give more details (Buildroot version,
> Buildroot .config, and error encountered), if you expect us to help
> you :-)
>
> Thanks!
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20141016/ff2ef97a/attachment.html>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-10-16 7:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-23 4:05 [Buildroot] Building buildroot with python (32bit) on 64bit ubuntu machine John Tobias
2014-09-23 5:39 ` Oli Vogt
2014-09-23 7:44 ` Thomas Petazzoni
2014-09-23 7:45 ` Thomas Petazzoni
2014-10-16 7:06 ` Oli Vogt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox