-
Notifications
You must be signed in to change notification settings - Fork 22
error: failed to load source for a dependency on collections
#159
Comments
The |
I did that and it felt like progress. Still hitting a roadblock, though. My current state:
[dependencies]
alloc = {}
#rand = {} # got rid of this, too
[dependencies.std]
default-features = false
#features = ["naive_ralloc"]
features = ["alloc"]
[dependencies.compiler_builtins]
features = ["mem"]
stage = 1 This, combined with master's Cargo.toml yields:
I'm compiling with |
Okay I'm trying a different angle: compiling a separate binary crate against steed Here is my build script https://github.com/anxiousmodernman/steedtest/blob/master/build.sh It just feels like our custom target is not being picked up. In my build I ask Rust to look for our target .json in the current directory, but to no avail. |
Yeah, something changed recently in Cargo or rustc that necessitates
manually setting RUST_TARGET_PATH to the directory containing the target
spec (typically the pwd)
edit: just noticed you're already setting that in your test script, so I'm not sure why you're still getting that error.
|
We'll get there :) FWIW, I tried cross and it didn't quite work either. However, I'd like to pursue the non-docker strategy to better grok the configuration. |
FYI: the switch from pwd to the env var was done in the latest xargo release due to changes in the rust's own build mechanism changes.. |
I just ran into this issue trying to build in Arch using the lld strategy (e.g. not Docker/cross). I'm trying to compile steed itself, not a dependent crate.
Note: The redox issue linked to seems to be closed. So I'm assuming we still need to use naive_ralloc.
I edited Xargo.toml per #153 discussion, but it didn't quite work.
That config still yielded a similar error
Instead I fiddled with Cargo.toml, to try building with naive_alloc.
Then I tried building with
The output
I'd like to set up a development environment for steed, but I'm not quite sure how to get past this compiler error. Any pointers?
The text was updated successfully, but these errors were encountered: