-
Notifications
You must be signed in to change notification settings - Fork 743
Cannot find libclang with docker rust image and 0.42 bindgen #1411
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
Comments
Uh, bindgen 0.42 hasn't been released yet, right? I'm not going mad, am I? |
It has, I did that after #1410. The only difference between bindgen 0.41 and 0.42 in that test is the clang-sys version. The new clang-sys version includes KyleMayes/clang-sys@cc11523, which is likely to be the culprit, cc @KyleMayes. |
Closing as "not a bindgen bug", filed KyleMayes/clang-sys#83 for this. If this is very severe we could consider revert the clang-sys upgrade for now, just let me know. |
I just checked and I forgot to tag it, should be fixed now, sorry :) |
This one is on me... I removed searching for versioned libraries matching the pattern However: a) On BSD distributions, dynamic libraries are versioned like this: I have published I have tested this version with the |
Thanks for the quick turnaround! I updated it in #1415. |
Gentlemen, in my test, I still get this same error. Using docker as build environment I cannot get bindgen to work. The project I am trying to build is: github.com/redbeardlab/redisql I am trying to build the image using Cheers, |
Update, the problem seems to be |
Using this repo (https://github.com/nlfiedler/magick-rust/) to compile bindings for ImageMagick has been working pretty well for a while. Was using bindgen 0.29, then tried to update to 0.42 today. That was relatively painless and builds fine on macOS, but the build fails using the latest official Docker image for rust (https://hub.docker.com/_/rust/). Versions of bindgen between 0.32 and 0.41 result in voluminous (different) compiler errors, while only 0.42 errors out as seen here:
For now, sticking with bindgen 0.31 as that is working without any issue.
Just to be absolutely clear, the only thing changing is the version of bindgen in the project's
Cargo.toml
; the docker image is the same. Also note that versions 0.29, 0.31, and 0.42 all build fine on macOS. This appears to be specific to 0.42 and the Linux-based docker image.The text was updated successfully, but these errors were encountered: