我按照安装教程在Ubuntu上安装了Rust for ESP32 环境,使用ESP32 模板建立了一个项目,但是在编译是出现以下错误;
我又尝试在win10上按教程安装了Rust for esp32环境,也出现了同样的错误。
I installed rust for esp32 environment on Ubuntu according to the installation tutorial and created a project using the esp32 template. However, the following errors occurred during compilation: failed to run custom build command for `esp-idf-sys v0.31.7`
I tried to install rust for esp32 environment on win10 according to the tutorial, and the same error occurred.
{
"rustc_fingerprint": 17160922025701118000,
"outputs": {
"14906976613292275882": {
"success": false,
"status": "exit code: 1",
"code": 1,
"stdout": "",
"stderr": "error: `-Csplit-debuginfo` is unstable on this platform
"
},
"12158100507936601293": {
"success": true,
"status": "",
"code": 0,
"stdout": "___
lib___.rlib
lib___.a
C:\\Users\\Administrator\\.rustup\\toolchains\\esp
debug_assertions
panic=\"abort\"
proc_macro
target_abi=\"\"
target_arch=\"xtensa\"
target_endian=\"little\"
target_env=\"newlib\"
target_family=\"unix\"
target_feature=\"atomctl\"
target_feature=\"bool\"
target_feature=\"coprocessor\"
target_feature=\"debug\"
target_feature=\"dfpaccel\"
target_feature=\"div32\"
target_feature=\"exception\"
target_feature=\"fp\"
target_feature=\"highpriinterrupts\"
target_feature=\"interrupt\"
target_feature=\"llvm14-builtins-abi\"
target_feature=\"loop\"
target_feature=\"mac16\"
target_feature=\"memctl\"
target_feature=\"miscsr\"
target_feature=\"mul32\"
target_feature=\"mul32high\"
target_feature=\"nsa\"
target_feature=\"prid\"
target_feature=\"regprotect\"
target_feature=\"rvector\"
target_feature=\"s32c1i\"
target_feature=\"sext\"
target_feature=\"threadptr\"
target_feature=\"timerint\"
target_feature=\"windowed\"
target_has_atomic=\"16\"
target_has_atomic=\"32\"
target_has_atomic=\"64\"
target_has_atomic=\"8\"
target_has_atomic=\"ptr\"
target_has_atomic_equal_alignment=\"16\"
target_has_atomic_equal_alignment=\"32\"
target_has_atomic_equal_alignment=\"64\"
target_has_atomic_equal_alignment=\"8\"
target_has_atomic_equal_alignment=\"ptr\"
target_has_atomic_load_store=\"16\"
target_has_atomic_load_store=\"32\"
target_has_atomic_load_store=\"64\"
target_has_atomic_load_store=\"8\"
target_has_atomic_load_store=\"ptr\"
target_os=\"espidf\"
target_pointer_width=\"32\"
target_vendor=\"espressif\"
unix
",
"stderr": "warning: dropping unsupported crate type `dylib` for target `xtensa-esp32-espidf`
warning: dropping unsupported crate type `cdylib` for target `xtensa-esp32-espidf`
warning: dropping unsupported crate type `proc-macro` for target `xtensa-esp32-espidf`
warning: 3 warnings emitted
"
},
"4614504638168534921": {
"success": true,
"status": "",
"code": 0,
"stdout": "rustc 1.62.1-dev
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-pc-windows-gnu
release: 1.62.1-dev
LLVM version: 14.0.0
",
"stderr": ""
},
"16350770404692732831": {
"success": true,
"status": "",
"code": 0,
"stdout": "___.exe
lib___.rlib
___.dll
___.dll
lib___.a
___.dll
C:\\Users\\Administrator\\.rustup\\toolchains\\esp
debug_assertions
panic=\"unwind\"
proc_macro
target_abi=\"\"
target_arch=\"x86_64\"
target_endian=\"little\"
target_env=\"gnu\"
target_family=\"windows\"
target_feature=\"fxsr\"
target_feature=\"llvm14-builtins-abi\"
target_feature=\"sse\"
target_feature=\"sse2\"
target_has_atomic=\"16\"
target_has_atomic=\"32\"
target_has_atomic=\"64\"
target_has_atomic=\"8\"
target_has_atomic=\"ptr\"
target_has_atomic_equal_alignment=\"16\"
target_has_atomic_equal_alignment=\"32\"
target_has_atomic_equal_alignment=\"64\"
target_has_atomic_equal_alignment=\"8\"
target_has_atomic_equal_alignment=\"ptr\"
target_has_atomic_load_store=\"16\"
target_has_atomic_load_store=\"32\"
target_has_atomic_load_store=\"64\"
target_has_atomic_load_store=\"8\"
target_has_atomic_load_store=\"ptr\"
target_os=\"windows\"
target_pointer_width=\"64\"
target_vendor=\"pc\"
windows
",
"stderr": ""
},
"3341152823552116580": {
"success": false,
"status": "exit code: 1",
"code": 1,
"stdout": "",
"stderr": "error: `-Csplit-debuginfo` is unstable on this platform
"
}
},
"successes": { }
}
Rust for esp32 error: `-Csplit-debuginfo` is unstable on this platform
-
- Posts: 2
- Joined: Sun Aug 14, 2022 2:39 am
Re: Rust for esp32 error: `-Csplit-debuginfo` is unstable on this platform
Hi there, do you know what is passing the `-Csplit-debuginfo` flag? As far as I know, we do not pass this command anywhere in the examples. I believe this flag is only stable on MacOS, not Windows or Linux, judging by this thread: https://github.com/rust-lang/rust/issues/34651. Is it possible your IDE is passing this flag?
Could you try generating a fresh project from the template repo https://github.com/esp-rs/esp-idf-template and see if you can build and flash that?
Could you try generating a fresh project from the template repo https://github.com/esp-rs/esp-idf-template and see if you can build and flash that?
Who is online
Users browsing this forum: No registered users and 26 guests