platformio-core: No ARMv8 host support (libpython2.7.so.1.0 error)

Configuration

Operating system: Linux odr01 3.14.79-113 #1 SMP PREEMPT Wed May 10 00:43:15 BRT 2017 aarch64 aarch64 aarch64 GNU/Linux

PlatformIO Version: PlatformIO, version 3.4.1

Description of problem

PlatformIO pioplus does not support ARMv8 hosts. I have installed PlatformIO on an Odroid C2 with ´pip install -U --user platformio` but the CLI commands do not seem to work:

$ pio remote device list
/home/odroid/.platformio/packages/tool-pioplus/pioplus: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory

libpython2.7.so.1.0 is located at /usr/lib/aarch64-linux-gnu/libpython2.7.so.1.0:

$ find /usr/lib/ -name libpython2.7.so.1.0
/usr/lib/aarch64-linux-gnu/libpython2.7.so.1.0

If LD_LIBRARY_PATH is given I get wrong ELF class error:

$ LD_LIBRARY_PATH=/usr/lib/aarch64-linux-gnu platformio remote device list
/home/odroid/.platformio/packages/tool-pioplus/pioplus: error while loading shared libraries: libpython2.7.so.1.0: wrong ELF class: ELFCLASS64

I have an Raspberry Pi 3 and on it got no errors. ARMv8 should be backwards compatible with ARMv7.

Steps to Reproduce

  1. Install PlatformIO using pip on an ARMv8 host such as the Odroid C2
  2. Run a PlatformIO CLI command that requires libpython2.7

Actual Results

Unable to run CLI commands, but receiving pioplus/pioplus: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory

Expected Results

Command runs succesfully.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 27 (14 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks! This is very useful information for me.