GithubHelp home page GithubHelp logo

Comments (6)

patrickelectric avatar patrickelectric commented on July 28, 2024 1

Thanks! That appears to do the trick!

from esp-backtrace.

MabezDev avatar MabezDev commented on July 28, 2024

This crate only supports Xtensa or riscv, ensure you are building for the correct target.

from esp-backtrace.

patrickelectric avatar patrickelectric commented on July 28, 2024

I'm having the same problem:

error[E0583]: file not found for module `arch`
 --> /home/patrick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-backtrace-0.9.0/src/lib.rs:8:1
  |
8 | pub mod arch;
  | ^^^^^^^^^^^^^
  |
  = help: to create the module `arch`, create file "/home/patrick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-backtrace-0.9.0/src/arch.rs" or "/home/patrick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-backtrace-0.9.0/src/arch/mod.rs"

error[E0425]: cannot find function `backtrace` in module `crate::arch`
  --> /home/patrick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-backtrace-0.9.0/src/lib.rs:31:34
   |
31 |     let backtrace = crate::arch::backtrace();
   |                                  ^^^^^^^^^ not found in `crate::arch`

Some errors have detailed explanations: E0425, E0583.
For more information about an error, try `rustc --explain E0425`.
error: could not compile `esp-backtrace` (lib) due to 2 previous errors

Caused by:
  process didn't exit successfully: `/home/patrick/.rustup/toolchains/esp/bin/rustc --crate-name esp_backtrace --edition=2021 /home/patrick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-backtrace-0.9.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=273 --crate-type lib --emit=dep-info,metadata,link -C opt-level=s -C embed-bitcode=no -C debuginfo=2 -C debug-assertions=on --cfg 'feature="esp-println"' --cfg 'feature="esp32s2"' --cfg 'feature="exception-handler"' --cfg 'feature="panic-handler"' --cfg 'feature="print-uart"' -C metadata=386bc5d608c0c2a8 -C extra-filename=-386bc5d608c0c2a8 --out-dir /home/patrick/git/patrick/weather-esp32-s2/target/debug/deps -L dependency=/home/patrick/git/patrick/weather-esp32-s2/target/debug/deps --extern esp_println=/home/patrick/git/patrick/weather-esp32-s2/target/debug/deps/libesp_println-3cf1b2e2e6af783f.rmeta --cap-lints allow` (exit status: 1)

from esp-backtrace.

bjoernQ avatar bjoernQ commented on July 28, 2024

Would you mind sharing the whole project? We select the arch by the target architecture (

#[cfg_attr(target_arch = "riscv32", path = "riscv.rs")]
#[cfg_attr(target_arch = "xtensa", path = "xtensa.rs")]
pub mod arch;
) so it seems you are building for something else

from esp-backtrace.

patrickelectric avatar patrickelectric commented on July 28, 2024

You can check it here: https://github.com/patrickelectric/weather

You can check what I'm doing to build in README

from esp-backtrace.

bjoernQ avatar bjoernQ commented on July 28, 2024

Seems like you are missing the .cargo/config.toml file there which sets the default target. See https://github.com/esp-rs/esp-hal/blob/main/esp32s2-hal/.cargo/config.toml

from esp-backtrace.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.