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

Clang error with "cargo run" #3

Open
PastaJ36 opened this issue Jun 30, 2020 · 1 comment
Open

Clang error with "cargo run" #3

PastaJ36 opened this issue Jun 30, 2020 · 1 comment

Comments

@PastaJ36
Copy link

When I try to run the Rust code I get the following error:

192:wooting_snake jeroen$ cargo run
error: multiple packages link to native library `clang`, but a native library can be linked only once

package `clang-sys v0.21.2`
    ... which is depended on by `bindgen v0.32.3`
    ... which is depended on by `coreaudio-sys v0.2.2`
    ... which is depended on by `coreaudio-rs v0.9.1`
    ... which is depended on by `cpal v0.11.0`
    ... which is depended on by `rodio v0.11.0`
    ... which is depended on by `wooting_snake v0.1.1 (/Users/jeroen/code/klooien/test/wooting_snake)`
links to native library `clang`

package `clang-sys v0.26.4`
    ... which is depended on by `bindgen v0.47.3`
    ... which is depended on by `wooting-analog-sdk-sys v0.1.0 (https://github.com/TanTanDev/rust-wooting-sdk.git#ccc555d0)`
    ... which is depended on by `wooting-sdk v0.1.1 (https://github.com/TanTanDev/rust-wooting-sdk.git#ccc555d0)`
    ... which is depended on by `wooting_snake v0.1.1 (/Users/jeroen/code/klooien/test/wooting_snake)`
also links to native library `clang`

I tried updating to the latest Rust version, but that doesn't seem to help.

I think it's related to this issue: rust-lang/cargo#5237. From what I can see the solutions is to manually make sure the bindgen version are the same? That seems a little weird. Did you run into this issue? @TanTanDev

Thanks!

@TanTanDev
Copy link
Owner

That's odd, what libclang version do you have?
I'm using 10.0.0. you can check on windows cmd with

clang --version

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

No branches or pull requests

2 participants