Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build for ESP32 microcontroller #88

Closed
DavidCarl opened this issue Mar 3, 2022 · 2 comments
Closed

Build for ESP32 microcontroller #88

DavidCarl opened this issue Mar 3, 2022 · 2 comments

Comments

@DavidCarl
Copy link

Hello.

I am currently trying to use this library for a project that needs to run on a ESP32. This means that we have no operating system and no STD. But the library should be in the category "No standard library" which should be fine for me in this case.

I am using the ESP32 build chain and this project to set it up, which is this: https://github.com/esp-rs/rust-build

But when attempting to build it I recieve the following error:

error: linking with `ldproxy` failed: exit status: 1
...
  = note: Running ldproxy
          Error: Linker /home/carl/.espressif/tools/xtensa-esp32-elf-clang/esp-13.0.0-20211203-x86_64-unknown-linux-gnu/bin/xtensa-esp32-elf-gcc failed: exit status: 1
          STDERR OUTPUT:
          /home/carl/.espressif/tools/xtensa-esp32-elf-clang/esp-13.0.0-20211203-x86_64-unknown-linux-gnu/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /home/carl/Documents/git/github/esp-rs/esp32-build/target/xtensa-esp32-espidf/debug/deps/libclear_on_drop-7f6bb154f7984c2b.rlib: error adding symbols: file format not recognized
          collect2: error: ld returned 1 exit status

full log here

Hope this is something you can help me with.

@pinkforest
Copy link
Contributor

The error here seems not to indicate any error with this crate ?

We've added no_std into the CI and I am able to compile ot thumb target which doesn't have std.

@tarcieri
Copy link
Contributor

Notably the error appears to be here:

libclear_on_drop-7f6bb154f7984c2b.rlib: error adding symbols: file format not recognized

This appears to be some issue with the clear_on_drop crate, which is not a dependency of any of the crates in this project.

@tarcieri tarcieri closed this as not planned Won't fix, can't repro, duplicate, stale Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants