playfulFence / esp-ward

Library that simplifies your embedded Rust applications development
Apache License 2.0
9 stars 0 forks source link

build failed for target: xtensa-esp32-none-elf #1

Open lijiachang opened 3 months ago

lijiachang commented 3 months ago

error for cargo build --release --target xtensa-esp32-none-elf

username@ubuntu-2204:~/esp/esp-ward$ cargo build --release --target xtensa-esp32-none-elf
   Compiling compiler_builtins v0.1.109
   Compiling core v0.0.0 (/home/username/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core)
   Compiling version_check v0.9.5
   Compiling proc-macro2 v1.0.86
'esp32' is not a recognized processor for this target (ignoring processor)
'esp32' is not a recognized processor for this target (ignoring processor)
'esp32' is not a recognized processor for this target (ignoring processor)
'esp32' is not a recognized processor for this target (ignoring processor)
   Compiling unicode-ident v1.0.12
   Compiling semver v1.0.23
   Compiling proc-macro-error-attr v1.0.4
   Compiling unicase v2.7.0
   Compiling syn v1.0.109
   Compiling autocfg v1.3.0
   Compiling az v1.2.1
   Compiling quote v1.0.36
   Compiling num-traits v0.2.19
   Compiling proc-macro-error v1.0.4
   Compiling pulldown-cmark v0.11.0
   Compiling rustc_version v0.4.0
   Compiling bitflags v2.6.0
   Compiling memchr v2.7.4
   Compiling embedded-hal-async v1.0.0
   Compiling heapless v0.7.17
   Compiling embassy-time-queue-driver v0.1.0
   Compiling heapless v0.8.0
   Compiling embassy-time-driver v0.1.0
   Compiling litrs v0.4.1
   Compiling document-features v0.2.10
   Compiling embedded-hal-bus v0.1.0
   Compiling esp-ward v0.1.0 (/home/username/esp/esp-ward)
The following warnings were emitted during compilation:

warning: esp-ward@0.1.0: You must enable exactly one chip feature (e.g., esp32s2, esp32s3, esp32c3, esp32c6).

error: failed to run custom build command for `esp-ward v0.1.0 (/home/username/esp/esp-ward)`

Caused by:
  process didn't exit successfully: `/home/username/esp/esp-ward/target/release/build/esp-ward-e85c3a5c2c25720f/build-script-build` (exit status: 101)
  --- stdout
  cargo:warning=You must enable exactly one chip feature (e.g., esp32s2, esp32s3, esp32c3, esp32c6).

  --- stderr
  thread 'main' panicked at build.rs:41:9:
  No chip feature enabled.
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
'esp32' is not a recognized processor for this target (ignoring processor)
'esp32' is not a recognized processor for this target (ignoring processor)
error: data-layout for target `xtensa-esp32-none-elf`, `e-m:e-p:32:32-v1:8:8-i64:64-i128:128-n32`, differs from LLVM target's `xtensa-none-elf` default layout, `e-m:e-p:32:32-i8:8:32-i16:16:32-i64:64-n32`

'esp32' is not a recognized processor for this target (ignoring processor)
'esp32' is not a recognized processor for this target (ignoring processor)
error: could not compile `core` (lib) due to 1 previous error

I am a beginner in Rust development.
If there is anything wrong with my question, please point it out.
Thank you for your reply.

lijiachang commented 3 months ago

use: cargo build --release --target xtensa-esp32-none-elf --features esp32,esp32-wifi

lijiachang commented 3 months ago

a new error appear:

username@ubuntu-2204:~/esp/esp-ward$ cargo build --release --target xtensa-esp32-none-elf --features esp32-wifi
   Compiling compiler_builtins v0.1.114
   Compiling core v0.0.0 (/home/username/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core)
   Compiling proc-macro2 v1.0.86
   Compiling unicode-ident v1.0.12
'esp32' is not a recognized processor for this target (ignoring processor)
'esp32' is not a recognized processor for this target (ignoring processor)
'esp32' is not a recognized processor for this target (ignoring processor)
'esp32' is not a recognized processor for this target (ignoring processor)
   Compiling serde v1.0.204
   Compiling version_check v0.9.5
   Compiling syn v1.0.109
   Compiling autocfg v1.3.0
   Compiling memchr v2.7.4
   Compiling quote v1.0.36
   Compiling portable-atomic v1.7.0
   Compiling syn v2.0.72
   Compiling fnv v1.0.7
   Compiling anyhow v1.0.86
   Compiling hashbrown v0.14.5
   Compiling rustversion v1.0.17
   Compiling heck v0.4.1
   Compiling strsim v0.11.1
   Compiling equivalent v1.0.1
   Compiling ident_case v1.0.1
   Compiling indexmap v2.3.0
   Compiling proc-macro-error-attr v1.0.4
   Compiling xtensa-lx v0.9.0
   Compiling darling_core v0.20.10
   Compiling serde_derive v1.0.204
   Compiling aho-corasick v1.1.3
   Compiling darling_macro v0.20.10
   Compiling darling v0.20.10
   Compiling proc-macro-error v1.0.4
   Compiling regex-syntax v0.8.4
   Compiling lock_api v0.4.12
   Compiling regex-automata v0.4.7
   Compiling strum_macros v0.24.3
   Compiling regex v1.10.5
'esp32' is not a recognized processor for this target (ignoring processor)
'esp32' is not a recognized processor for this target (ignoring processor)
error: data-layout for target `xtensa-esp32-none-elf`, `e-m:e-p:32:32-v1:8:8-i64:64-i128:128-n32`, differs from LLVM target's `xtensa-none-elf` default layout, `e-m:e-p:32:32-i8:8:32-i16:16:32-i64:64-n32`

'esp32' is not a recognized processor for this target (ignoring processor)
'esp32' is not a recognized processor for this target (ignoring processor)
error: could not compile `core` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
username@ubuntu-2204:~/esp/esp-ward$ 
lijiachang commented 3 months ago

@playfulFence Hi Looking forward to your reply. 👋

lijiachang commented 3 months ago

same like this? https://github.com/espressif/esp-idf/issues/14198

playfulFence commented 3 months ago

hello @lijiachang I am busy with work at the moment, but I am very pleased that you are working with my project, and therefore I will try to find time to fix the problem you described. I'll try to get to it over the weekend or sooner, if possible

I also apologize that I can't get into this right now ❤️