Closed hn closed 1 year ago
Yeah, PlatformIO's compilers are absolutely broken.
Debian GNU/Linux 11, docker 23.0.1
My bug report relates to a non-docker setup.
@esnet146 Probably you are missing the libc6 /lib/ld-linux.so.2 inside the docker container?
Wait, so building on x86 is also broken...? I thought it only had problems for arm64... Anyway, yes, installing libc6 outside the docker container will not install it inside it.
I'm using a pi4 using the libretuya-esphome
, and I'm seeing the same issue.
This is inside the docker container, are you sure you built the 64-bit version of the container?
I'm using pi4 with raspberry pi os 32 bits.
I'm getting a similar issue on a RPi 4, see build.txt attached.
This was built using the docker container that I built by following the instructions located at: https://docs.libretiny.eu/docs/projects/esphome/#download-esphome and substituting "armv7" for "amd64".
build.txt gs-sw5bk-aff8fc.yaml.txt
for architecture, I check with lscpu and it shows:
brucef@raspberrypi:~ $ sudo lscpu Architecture: aarch64 Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 1 Core(s) per socket: 4 Socket(s): 1 Vendor ID: ARM Model: 3 Model name: Cortex-A72 Stepping: r0p3
This seems to be a problem with PlatformIO GCC compiler being downloaded for a different architecture. Not sure if there's anything to fix here on our side.
For now try using the prebuilt docker images from here: https://github.com/libretiny-eu/esphome-hass-addon
When compiling e.g. on Debian Buster, you might get the following error:
which is caused by
and can be fixed by
Hope this saves you some time :)