guild icon
Toit
#Compilation on Raspberry Pi 4B failed
Thread channel in help
Timmy77
Timmy77 04/08/2024 07:52 PM
I tried to compile Toit SDK on a RPi 4B tonight but failed.
Messages showed Toit github sources may be corrupted.
Please check.
Timmy77
Timmy77 04/08/2024 10:50 PM
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
Timmy77
Timmy77 04/08/2024 11:04 PM
[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
Timmy77OPTimmy77
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 discon...
floitsch
floitsch 04/09/2024 07:46 AM
This is an error we typically get on bad internet connections (or maybe when GitHub has problems).
Timmy77OPTimmy77
[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/ge...
floitsch
floitsch 04/09/2024 07:48 AM
The tool xxd comes with vim. Try to install that.
We already have plans to remove that dependency from our build process.
👍1
erikcorry
erikcorry 04/09/2024 08:54 AM
You may be able to just download toit for Rpi instead of building it yourself.
erikcorry
erikcorry 04/09/2024 08:54 AM
erikcorry
erikcorry 04/09/2024 08:55 AM
The 32 bit Raspberry image is called toit-rpi.tar.gz and the 64 bit image is called toit-aarch64.tar.gz
floitschfloitsch
The tool xxd comes with vim. Try to install that. We already have plans to remove that dependency from our build process.
Timmy77
Timmy77 04/09/2024 12:41 PM
After installing xxd, compilation was successful. No vim is needed.(edited)
👍1
9 messages in total