Code Monkey home page Code Monkey logo

Comments (9)

ivmarkov avatar ivmarkov commented on September 23, 2024 1

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.

ivmarkov avatar ivmarkov commented on September 23, 2024 1

Are you saying that the just-generated project fails for you with the same error?

from embuild.

MabezDev avatar MabezDev commented on September 23, 2024

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.

rherrmannr avatar rherrmannr commented on September 23, 2024

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.

maarten2000ha avatar maarten2000ha commented on September 23, 2024

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.

maarten2000ha avatar maarten2000ha commented on September 23, 2024

@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
image
This look fine at first sight for me because it's the same as stated above.

from embuild.

maarten2000ha avatar maarten2000ha commented on September 23, 2024

Yes, A just-generated project also fails. It looks like it is also a different error than before.
image
image
image
image

from embuild.

Vollbrecht avatar Vollbrecht commented on September 23, 2024

could be related to the changes in espup ? esp-rs/espup@7271dbc

from embuild.

maarten2000ha avatar maarten2000ha commented on September 23, 2024

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)

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.