-
Notifications
You must be signed in to change notification settings - Fork 748
Why can't bindgen find libclang.dll? #1276
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
If this is a regression, could you please try different versions to figure out which regressed? This should probably be reported upstream to the clang-sys crate, though looks like your DLL is borked in some way. |
This may even be a regression in libloading itself I guess. |
Thanks for the quick reply. I tried version 0.30.0 (
Update: same behavior with v0.32.0 |
I just encountered this at work. I know
I tried re-running with EDIT: I just added |
So, the error comes from here: I don't have a machine that reproduces the issue but if it worked before chances are that this is a libloading regression (cc @nagisa). Probably an issue should be filed there. |
I just noticed that under I'm not sure whether this is actually the case, but when I'm back at work on Monday I'll check whether that DLL is 32-bit or 64-bit. It could be that the @Boscop, does any of this sound familiar? |
But I didn't change the libclang.dll since bindgen worked, and the old bindgen was installed the same way so it must also have been 64 bit.. |
The issue was indeed the selection of 32-bit DLLs for a 64-bit build (or vice-versa) and the fix was to skip DLLs for the incorrect architecture while searching for |
Why can't bindgen find libclang.dll?
Btw, the file "D:\Program Files\LLVM\bin\libclang.dll" exists and has version 4.0.0.0.
An earlier version of bindgen cli was working without problems on this system.
The text was updated successfully, but these errors were encountered: