Closed
Description
Hello,
When trying to build on Linux aarch64 (Raspberry pi 4) I got the following error:
error: failed to run custom build command for `esp-idf-sys v0.20.0`
Caused by:
process didn't exit successfully: `/home/ubuntu/rust-esp32-std-hello/target/debug/build/esp-idf-sys-791a8c4daff86dfa/build-script-build` (exit status: 1)
--- stdout
Found compatible PlatformIO Core 5.2.0 -> /home/ubuntu/.platformio/penv/bin/platformio
cargo:rerun-if-changed=./patches/pthread_destructor_fix.diff
cargo:rerun-if-changed=./patches/missing_xtensa_atomics_fix.diff
cargo:rerun-if-changed=./patches/ping_setsockopt_fix.diff
cargo:rerun-if-changed=./patches/master_missing_xtensa_atomics_fix.diff
cargo:rerun-if-changed=/home/ubuntu/rust-esp32-std-hello/./sdkconfig.defaults
Warning! Ignore unknown configuration option `patches` in section [env]
Processing debug (board: esp32cam; platform: espressif32; framework: espidf)
--------------------------------------------------------------------------------
Tool Manager: Installing platformio/toolchain-xtensa32 @ ~2.80400.0
--- stderr
Error: Could not find the package with 'platformio/toolchain-xtensa32 @ ~2.80400.0' requirements for your system 'linux_aarch64'
Error: No such file or directory (os error 2)
Then:
$ pio platform install espressif32
Platform Manager: espressif32 @ 3.3.2 is already installed
Tool Manager: toolchain-xtensa32 @ 2.50200.97 is already installed
Tool Manager: tool-esptoolpy @ 1.30100.210531 is already installed
The platform 'espressif32' has been successfully installed!
The rest of the packages will be installed later depending on your build environment.
So I successfully hacked my way by manually modifying platforms/espressif32/platform.py
to require toolchain-xtensa32 @ 2.50200.97
instead of toolchain-xtensa32 @ 2.80400.0
But then I got the following error:
error: failed to run custom build command for `esp-idf-sys v0.20.0`
Caused by:
process didn't exit successfully: `/home/ubuntu/rust-esp32-std-hello/target/debug/build/esp-idf-sys-791a8c4daff86dfa/build-script-build` (exit status: 1)
--- stdout
Found compatible PlatformIO Core 5.2.0 -> /home/ubuntu/.platformio/penv/bin/platformio
cargo:rerun-if-changed=./patches/pthread_destructor_fix.diff
cargo:rerun-if-changed=./patches/missing_xtensa_atomics_fix.diff
cargo:rerun-if-changed=./patches/ping_setsockopt_fix.diff
cargo:rerun-if-changed=./patches/master_missing_xtensa_atomics_fix.diff
cargo:rerun-if-changed=/home/ubuntu/rust-esp32-std-hello/./sdkconfig.defaults
Warning! Ignore unknown configuration option `patches` in section [env]
Processing debug (board: esp32cam; platform: espressif32; framework: espidf)
--------------------------------------------------------------------------------
Tool Manager: Installing platformio/toolchain-esp32ulp @ ~1.22851.0
--- stderr
Error: Could not find the package with 'platformio/toolchain-esp32ulp @ ~1.22851.0' requirements for your system 'linux_aarch64'
Error: No such file or directory (os error 2)
$ pio platform install toolchain-esp32ulp
Platform Manager: Installing toolchain-esp32ulp
Error: Could not find the package with 'toolchain-esp32ulp' requirements for your system 'linux_aarch64'
And can't find a solution for this error.
Any idea?
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done