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

I cannot compile bluez #25

Open
wpd opened this issue Feb 28, 2021 · 4 comments
Open

I cannot compile bluez #25

wpd opened this issue Feb 28, 2021 · 4 comments

Comments

@wpd
Copy link

wpd commented Feb 28, 2021

I'm new to rust, but want to try it with bluez. From
cargo new test-bluez
I added:
bluez = "0.3.0"
to Cargo.toml, but when I try to compile, it fails with:

...
error: aborting due to 43 previous errors

Some errors have detailed explanations: E0034, E0308.
For more information about an error, try `rustc --explain E0034`.
error: could not compile `bitvec`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

I know that this is not a bluez problem, but I am hoping that there is something I can change with the way I import bluez into my project in order to make this compile.

@wpd wpd changed the title I cannot complie bluez I cannot compile bluez Feb 28, 2021
@wpd
Copy link
Author

wpd commented Feb 28, 2021

Note that changing
bitvec = "0.19"
to
bitvec = "0.21"
in my local copy of bluez-rs (and pointing my Cargo.toml file my local copy) solved this problem for me.

@laptou
Copy link
Owner

laptou commented Mar 2, 2021

I'm not sure what's up with this. I updated bitvec to version 0.20 in the latest update that I pushed out, but updating it to version 0.21 caused everything to stop compiling -- I think there are a lot of breaking changes between 0.20 and 0.21. How did you get this to work?

@wpd
Copy link
Author

wpd commented Mar 3, 2021

Hi laptou,
I'm not too sure how I managed to get this to work when was first playing with it. It was a late night and I didn't take great notes. When I returned to it the next day, I found more information and was able to work around this issue by adding

funty = "=1.1.0"

to my project. Apparently, there are some breaking changes between bitvec, funty, and the rustc compiler that just need to be ironed out. Pinning funty to version 1.1.0 worked around these issues for me.

@rye
Copy link

rye commented Jul 21, 2021

This doesn't seem to be an issue anymore, at least for me on beta Rust and on Linux.

It looks like bitvec was later updated to 0.22.3, so this may have been resolved. According to the bitvec release notes for 0.21.1, a funty release performed some symbol migration, and was released as a minor version upgrade (despite it being breaking, which would usually mean it should be a major version upgrade).

Can this issue be closed?

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

3 participants