ivmarkov / rust-esp32-std-demo

Rust on ESP32 STD demo app. A demo STD binary crate for the ESP32[XX] and ESP-IDF, which connects to WiFi, Ethernet, drives a small HTTP server and draws on a LED screen.
Apache License 2.0
784 stars 107 forks source link

Build issue #13

Closed maelp closed 3 years ago

maelp commented 3 years ago

I'm on osX, and I've followed your installation guide. I know my Rust extensa toolchain works because I've been able to compile https://github.com/espressif/rust-esp32-example and make it work

when running cargo build I get:

[...]
warning: cargo:rustc-link-arg requires -Zextra-link-arg flag
warning: cargo:rustc-link-arg requires -Zextra-link-arg flag
'+memctl' is not a recognized feature for this target (ignoring feature)
'+memctl' is not a recognized feature for this target (ignoring feature)
'+memctl' is not a recognized feature for this target (ignoring feature)
'+memctl' is not a recognized feature for this target (ignoring feature)
'+memctl' is not a recognized feature for this target (ignoring feature)
'+memctl' is not a recognized feature for this target (ignoring feature)
   Compiling rust-esp32-std-hello v0.17.4 (/Users/primet/work/gouach/embedded-nobackup/rust-esp32-std-hello)
'+memctl' is not a recognized feature for this target (ignoring feature)
'+memctl' is not a recognized feature for this target (ignoring feature)
error: linking with `ldproxy` failed: exit status: 101
[...]
  = note: Running ldproxy
          thread 'main' panicked at 'Cannot locate argument '--ldproxy-linker <linker>'', /Users/primet/.cargo/registry/src/github.com-1ecc6299db9ec823/ldproxy-0.1.3/src/main.rs:43:10
          stack backtrace:
             0: _rust_begin_unwind
             1: core::panicking::panic_fmt
             2: core::option::expect_failed
             3: ldproxy::main
          note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
ivmarkov commented 3 years ago

warning: cargo:rustc-link-arg requires -Zextra-link-arg flag

That's not a good indication. Can you run run cargo --version and rustc --version and let me know the outcome?

(the '+memctl' is not a recognized feature for this target (ignoring feature) you can safely ignore)

maelp commented 3 years ago
❯ cargo --version                                                    ±[●][main]
cargo 1.54.0-dev
❯ rustc --version                                                    ±[●][main]
rustc 1.54.0-dev