Comments (9)
I am trying to get the esp edf template to build on mac m1 pro but I keep getting errors. Firstly it was due to the nightly toolchain not being used (Wasn't documented how I could change it so didn't know).
It is documented now. Hope that helps. With that said, this is pretty basic.
Eventually after reinstalling rust, ldproxy, cargo-generate, espup and installing espup and exporting it. I stumble upon another issue which really sounds alot like the one stated above. a gist with the error I get. Not sure if this is related to this issue but if not let me know what I can do to get this issue solved.
Most likely it is related, and my hypothesis would be that you are simply missing this flag or the whole .cargo/config.toml
file from your project.
from embuild.
Are you saying that the just-generated project fails for you with the same error?
from embuild.
I might have figured part of this out, at least the difference between pio & espressif tools chains for RISCV.
Espressif:
.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc -dumpspecs | grep "\-lnosys"
-lc -lnosys -lc
PIO:
.embuild/platformio/packages/toolchain-riscv32-esp/bin/riscv32-esp-elf-gcc -dumpspecs | grep "\-lnosys"
However Xtensa is the same:
Espressif:
.embuild/espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -dumpspecs | grep "\-lnosys"
-lc -lnosys -lc
PIO:
.embuild/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc -dumpspecs | grep "\-lnosys"
-lc -lnosys -lc
Seems PIO guys have ran into this issue to and dropped that -lnosys flag from their toolchain spec?
Still no idea why this works for Xtensa though, perhaps the intrinsic calls just aren't being generated?
from embuild.
Using
[target.riscv32imc-esp-espidf]
linker = "ldproxy"
rustflags = ["-C", "default-linker-libraries"]
worked for me. Thanks for this hint.
I've encountered this problem using mqtt_protocol="0.11"
from embuild.
I am trying to get the esp edf template to build on mac m1 pro but I keep getting errors. Firstly it was due to the nightly toolchain not being used (Wasn't documented how I could change it so didn't know). Eventually after reinstalling rust, ldproxy, cargo-generate, espup and installing espup and exporting it. I stumble upon another issue which really sounds alot like the one stated above. a gist with the error I get. Not sure if this is related to this issue but if not let me know what I can do to get this issue solved.
from embuild.
@ivmarkov Thank you for updating the documentation and helping me out.
I just generated a project with the edf template, this template give an .cargo/config.toml
file which currently look like this for me
This look fine at first sight for me because it's the same as stated above.
from embuild.
Yes, A just-generated project also fails. It looks like it is also a different error than before.
from embuild.
could be related to the changes in espup ? esp-rs/espup@7271dbc
from embuild.
My issue stated above was caused due to rustflags being in my zshrc 😉. Thank you for the help and hopefully, I can soon help fix this issue for the long term.
from embuild.
Related Issues (20)
- Add docs and a user friendly README HOT 4
- embuild fails to compile with Rust 1.57 or older HOT 1
- Add CI to generate packages for releases
- Using lib_deps from PlatformIO.ini
- 3rd party C libraries HOT 1
- cargo-pio PlatformIO-first build with Arduino SDK HOT 20
- `menuconfig --release true` not saving changes
- Issue building esp-idf HOT 3
- Esp-idf installation is failing in Windows HOT 3
- Defmt library need some linking HOT 1
- Conditional compilation issue in mixed Rust/C project HOT 1
- How can we get bindgen output with wrap_static_fns()
- is pio working? HOT 2
- Change destination of the .embuild directory? HOT 2
- `embuild` shouldn't require `git` or `.git` to exist in order to build the project HOT 27
- Won't build with esp-idf 5.2 HOT 3
- Help with binding with C code HOT 2
- Fails to build when platform-specific overrides are necessary in tools.json HOT 3
- Linking with ldproxy failed HOT 1
- Build failed on RPi5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from embuild.