Skip to content
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

Unable to build with asio feature #453

Closed
Zomatree opened this issue Jul 22, 2020 · 7 comments · Fixed by #454
Closed

Unable to build with asio feature #453

Zomatree opened this issue Jul 22, 2020 · 7 comments · Fixed by #454

Comments

@Zomatree
Copy link

Zomatree commented Jul 22, 2020

when trying to build with the asio feature it seems to fail as there is a conflict in the versions of clang that it wants
Cargo.toml

[package]
name = "client"
version = "0.1.0"
authors = ["Zomatree <[email protected]>"]
edition = "2018"

[dependencies]
cpal = { git = "https://github.com/RustAudio/cpal", features = ["asio"] }

output:

PS C:\Users\Zoomatree\Documents\Coding\Rust\client> cargo build
    Updating git repository `https://github.com/RustAudio/cpal`
    Updating crates.io index
error: failed to select a version for `clang-sys`.
    ... required by package `bindgen v0.51.0`
    ... which is depended on by `asio-sys v0.1.0 (https://github.com/RustAudio/cpal#997fb9fa)`
    ... which is depended on by `cpal v0.12.0 (https://github.com/RustAudio/cpal#997fb9fa)`
    ... which is depended on by `client v0.1.0 (C:\Users\Zoomatree\Documents\Coding\Rust\client)`
versions that meet the requirements `^0.28.0` are: 0.28.1, 0.28.0

the package `clang-sys` links to the native library `clang`, but it conflicts with a previous package which links to `clang` as well:
package `clang-sys v0.29.3`
    ... which is depended on by `bindgen v0.53.3`
    ... which is depended on by `coreaudio-sys v0.2.5`
    ... which is depended on by `coreaudio-rs v0.9.1`
    ... which is depended on by `cpal v0.12.0 (https://github.com/RustAudio/cpal#997fb9fa)`
    ... which is depended on by `client v0.1.0 (C:\Users\Zoomatree\Documents\Coding\Rust\client)`

failed to select a version for `clang-sys` which could resolve this conflict
@est31
Copy link
Member

est31 commented Jul 22, 2020

Dupe of #450

@est31 est31 closed this as completed Jul 22, 2020
@est31
Copy link
Member

est31 commented Jul 22, 2020

Oh wait, no this is its own bug. Sorry about that!

This should be resolveable by updating the deps of asio-sys. Do you want to file a PR, @Zomatree ?

@est31 est31 reopened this Jul 22, 2020
@Zomatree
Copy link
Author

i would PR it myself but i have no idea what im doing so it would be better if i didnt

@HEnquist
Copy link
Contributor

There is something strange going on here. This was from a build on windows, so why is coreaudio-rs and -sys being included?
Did you try doing a cargo clean?

@est31
Copy link
Member

est31 commented Jul 22, 2020

Good catch. I'm not sure what's going on here. Anyways, it should be pretty easy to update bindgen in asio.

@hyunh90

This comment has been minimized.

@hyunh90
Copy link

hyunh90 commented Sep 20, 2021

Realized there's an ongoing discussion at #383; will watch that instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants