Closed aghoneim92 closed 2 years ago
This is unfortunately an ongoing issue, you can see some context in this issue: https://github.com/esp-rs/rust/issues/87
I have updated the master
branch of the repository semi-recently but have yet to release a new version. Not sure if this will make a difference or not for this specific bug, but it should at least allow building with the newest compiler.
For now I would recommend trying:
esp8266-hal
dependency to use git instead of a version number
esp8266-hal = { git = "https://github.com/esp-rs/esp8266-hal" }
I'm not sure if this will help or not, but it might. @MabezDev may be able to provide some more information as well.
Thanks for the quick reply! I was able to fix it by adding these parts of the Cargo.toml
file from this repo:
[profile.dev]
lto = true
opt-level = 1
# Workaround for linker errors when using lto with the dev profile:
# https://github.com/rust-lang/compiler-builtins/issues/347
[profile.dev.package.compiler_builtins]
overflow-checks = false
[profile.release]
lto = true
We actually just fixed (hopefully) this internally! It will be available in the next llvm release, at which point we will cut 1.60.0.1 of our custom Rust compiler :).
Upgrade your compiler to 1.60.0.1 and this problem should go away :)
I'm getting an error when including this package as a dependency in another project. Building examples from the repo itself works fine, but when creating my own repo and adding
esp8622-hal = "0.5.0"
to dependencies, I get the following error while compilingcompiler_builtins
: