-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Package ndarray v0.4.0
does not have these features: complex
#2472
Comments
Does any crate in the dependency graph require the The error message here could probably be much better though! Do you have a reproduction I could play around with as well? |
Unfortunately, this particular project is private. [dependencies.libc] From cargo.toml. Yes, the issue is definitely about the error message, of course. Even in easier cases I am sure it could give a lot more information. |
Hm that may just be a case where the resolver is being somewhat nondeterministic. Do you have a public project I could poke at? In theory all that's needed to reproduce are the |
I am now failing to reproduce the problem, both on a clean project and on the original, so cannot help find the problem :/ I hope the error message can still be improved in a general way. |
@alexcrichton Similar error if you try using a Cargo.toml with only cargo update (or cargo build for initial build)
Updating registry `https://github.com/rust-lang/crates.io-index`
Package `ffmpeg v0.1.0` does not have these features: `swscale, avcodec, swresample, avdevice, postproc, avfilter, avformat, avresample` Note that there are versions published after 0.1.0. This works with the cargo released with 1.7, fails on 1.8.0-beta.1 and recent 1.9.0 nightly. 1.7 pulls in EDIT(More info):
Again, this works on stable (just fails to build because of using features on stable). It looks like it's related to semver parsing? |
FYI ndarray uses complex from num https://github.com/bluss/rust-ndarray/blob/master/Cargo.toml#L25-L28 Seems like a weird bug (mixing up which package the feature belongs to) for that reason. (ndarray itself has never had a feature called complex). |
This looks to be a bug in resolution. When it's backtracking some feature set's not getting cleared out so it's leaking from one dependency to another. Hope to have a fix soon! |
In the local loop during resolution all variables need to be reset whenever we backtrack up a frame, but currently the `method` and `features` set are accidentally not reset whenever we backtrack. Calculate the `method` later and cache `features` in each frame so we can properly backtrack. Closes rust-lang#2472
Fix caching features across backtracking In the local loop during resolution all variables need to be reset whenever we backtrack up a frame, but currently the `method` and `features` set are accidentally not reset whenever we backtrack. Calculate the `method` later and cache `features` in each frame so we can properly backtrack. Closes #2472
Thanks for the sleuthing! On Wed, Mar 16, 2016 at 9:04 PM, bors notifications@github.com wrote:
Daniel Vainsencher |
I've changed cargo.toml to depend on ndarray=0.4 (without yet using it from the code at all) and suddenly get the above error message very early in building my package (right after Updating the registry).
I have no idea where to start: is any particular line of code or configuration requiring the feature 'complex'? why is it required specifically of ndarray? it does not seem to be a feature provided by ndarray according to https://github.com/bluss/rust-ndarray#recent-changes
The text was updated successfully, but these errors were encountered: