-
Notifications
You must be signed in to change notification settings - Fork 29
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
compiler_builtins fails to compile due to using recently stabilized cfg_target_vendor #13
Comments
I was able to get it working by creating a [dependencies.core]
stage = 0
[dependencies.compiler_builtins]
stage = 1
version = "= 0.1.3" |
I guess this would be fixed by avr-rust/rust-legacy-fork#137 |
Yes, I believe so. Any rough estimate, when that update is going to hit? / Is there a list of blocking issues that still need work? |
At the moment, the only issue blocking the merge is this bug
mentioned in this comment. |
That merge did happen. |
I'm not sure if this belongs here or on the main
avr-rust/rust
repo, but just wanted to post this here in case it's helpful to anyone else.I'm using Xargo on Arch Linux with the latest commit of the
avr-rust/rust
master branch.I managed to get past avr-rust/rust-legacy-fork#128 using hercek's patches, but building
compiler_builtins
failed because of a use of thecfg_config_vendor
feature. That feature was stabilized earlier this year, but the it looks like the AVR patched Rust version hasn't pulled upstream since the stabilization.To fix this, I simply modified the downloaded source for
lib.rs
incompiler_builtins
in the Cargo registry folder (~/.cargo/registry/src/github.com-1ecc6299db9ec823/compiler_builtins-0.1.12/src/lib.rs
on my machine), adding the missing#![feature(cfg_target_vendor)]
line to the existing feature flags in that file.I also get a message that indicates that it might be possible to set a version for
compiler_builtins
, though I wasn't able to figure out how:warning: dependency (compiler_builtins) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions
The last version of
compiler_builtins
that has thecfg_target_vendor
feature flag appears to be 0.1.5. (relevant commit)More version info:
The text was updated successfully, but these errors were encountered: