https://toitlang.org/ logo
Compilation on Raspberry Pi 4B failed
# help
r
I tried to compile Toit SDK on a RPi 4B tonight but failed. Messages showed Toit github sources may be corrupted. Please check.
GIT showed this errors. error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8) error: 4167 bytes of body are still expected fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF fatal: fetch-pack: invalid index-pack output fatal: clone of 'https://github.com/espressif/esp32-wifi-lib.git' into submodule path '/usr/local/src/toit/third_party/esp-idf/components/esp_wifi/lib' failed Failed to clone 'components/esp_wifi/lib'. Retry scheduled
[461/501] Generating ../generated/toit.snapshot.cc FAILED: generated/toit.snapshot.cc /usr/local/src/toit/build/host/generated/toit.snapshot.cc cd /usr/local/src/toit/build/host/generated && xxd -i toit.snapshot /usr/local/src/toit/build/host/generated/toit.snapshot.cc /bin/sh: 1: xxd: not found [462/501] Generating ../generated/toit.run.snapshot ninja: build stopped: subcommand failed. make: * [Makefile:148: host-tools] Error 1
f
This is an error we typically get on bad internet connections (or maybe when GitHub has problems).
The tool
xxd
comes with
vim
. Try to install that. We already have plans to remove that dependency from our build process.
e
You may be able to just download toit for Rpi instead of building it yourself.
The 32 bit Raspberry image is called toit-rpi.tar.gz and the 64 bit image is called toit-aarch64.tar.gz
r
After installing xxd, compilation was successful. No vim is needed.