Closed ydirson closed 1 month ago
Note that Debian 9 (2017) also has 3.8 and shows the same error message.
The error message is correct:
libclang
supported by clang-sys
is 3.5libclang
you have loaded is 3.8.x
clang_getTranslationUnitTargetInfo
is not supported by 3.8.x
(it requires Clang 5.0 or later)The remainder of the error message links to the documentation for the function which should have a comment indicating the minimum version of Clang required for that function.
All that being said, I can see how the presence of This crate only supports libclang 3.5 and later.
in the error message could be a bit misleading, I will look into improving the error message further.
In a nuber f situations, eg. https://gitlab.com/xen-project/xen-guest-agent/-/jobs/5550556953 I find the following confusing error message:
There is obviously a problem with the environment, but the error message is obviously wrong.
Digging with this little debug patch:
... I see:
And in fact:
That Ubuntu 16.04.7 LTS would seem to have a funky libclang?