Closed thorlucas closed 2 years ago
This is known limitation of toolchain on Monterey. Build 1.57 is running, it should resolve the issue.
@thorlucas The issue is still present in 1.57.0.0. Recommended workaround: use Podman/Docker image https://hub.docker.com/r/espressif/idf-rust on Monterey
Any hint what could be the root-cause is appreciated.
@thorlucas The issue is still present in 1.57.0.0. Recommended workaround: use Podman/Docker image https://hub.docker.com/r/espressif/idf-rust on Monterey
Any hint what could be the root-cause is appreciated.
That's going to be a little bit difficult -- I tried running gdb
on the rustc command but I'm having codesigning problems. I usually switch to linux when debugging but in this case the problem is macOS specific…
As posted in the other thread, the rustc pannic message is:
rustc(41908,0x7000083ca000) malloc: *** error for object 0x600002596000: pointer being realloc'd was not allocated
So we have some memory issues.
use Podman/Docker image
Sorry, esp-build says you cannot flash from docker. Any hint onto how I would go about using it? Thanks
It's possible to flash from Podman which supports mapping of serial devices. Other option would be to use docker cp, to get file out of container to main host and flash it from there.
Meanwhile:
We found the reason of SIGABRT. The build of Rust for macOS x86_64 must contain option --set rust.jemalloc. The new build is ready. Please test following script https://github.com/esp-rs/rust-build/tree/build/1.57:
./test-rust-toolchain.sh -t 1.57.0.1 --installation-mode reinstall This will deploy toolchain with name esp-1.57.0.1. You can call your builds with cargo +esp-1.57.0.1 .
Hi, can you please provide this build for macOS aarch64 apple ?
@georgik Excellent, thanks! I managed to get it flashing by simply building using a shared volume in docker and flashing the target/
outside of docker. I will test the new builder momentarily
@georgik New build works great! Thanks
Cloning the example and compiling on
macOS Monterey 12.0.1
with theesp
toolchain fails when buildingclap v2.34.0
:It appears that the
esp
toolchain is unable to compileclap
for some reason.I also mirrored the issue here.