[foreign] Running tests on Windows

Henry Jen henry.jen at oracle.com
Wed Sep 19 17:11:30 UTC 2018

On Sep 19, 2018, at 9:07 AM, Jorn Vernee <jbvernee at xs4all.nl> wrote:
> Henry Jen schreef op 2018-09-19 17:23:
>> On Sep 19, 2018, at 5:00 AM, Jorn Vernee <jbvernee at xs4all.nl> wrote:
>>> And then of course one of the biggest things is getting jextract to build and run. Currently the build system is not picking up libclang. When explicitly specifying it with --with-libclang='/cygdrive/j/LLVM' I still get the "Cannot locate libclang!" warning. I wanted to ask what value and files it's actually looking for? (I've also tried some of the additional flags from makeautoconf/lib-clang.m4, but to no avail).
>> —with-libclang should point to a directory has include/clang-c and
>> lib/libclang.dll. If include and lib are not under the same directory,
>> you can use —with-libclang-include and —with-libclang-lib instead.
> I have tried all of these flags together:
> --with-libclang=/cygdrive/j/LLVM --with-libclang-include=/cygdrive/j/LLVM/include --with-libclang-include-aux=/cygdrive/j/LLVM/lib --with-libclang-lib=/cygdrive/j/LLVM/bin

Try remove —with-libclang and use the rest three. Explicit setting —with-libclang cause the other options to be ignored.


> On windows the dll is under /bin, the lib folder just has an archive file (filled with symbols) [2]. There is a folder include/clang-c but it is just not being picked up. I'm seeing:
> checking clang-c/Index.h usability... no
> checking clang-c/Index.h presence... no
> checking for clang-c/Index.h... no
> configure: Cannot locate libclang! You can download pre-built llvm
>        binary from http://llvm.org/releases/download.html, then specify the
>        location using --with-libclang
> Sorry, the build system is pretty opaque from my point of view, so I just don't know how to deal with this.
>> HTH,
>> Henry
> Thanks,
> Jorn
> [1] : https://docs.microsoft.com/en-us/cpp/build/overview-of-x64-calling-conventions?view=vs-2017
> [2] : https://gist.github.com/JornVernee/dae92a19f4d2036f30153e747b55d874

More information about the panama-dev mailing list