JExtract unknown type name 'intmax_t' for /usr/include/yara.h
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Tue Jan 3 10:14:53 UTC 2023
Hi,
this issue seems to be related to the fact that the jextract gradle
build did not fail, despite the LLVM path being used not containing all
the bells and whistles that the jextract build requires.
So, a possible quality of life improvement here would be to add some
more sanity checks on the build, to check that the structure of the LLVM
folder is as expected. IIRC, the structure of the apt-installed LLVM
does not 100% match that of a LLVM binary snapshot.
Cheers
Maurizio
On 28/12/2022 17:23, Maurizio Casciano wrote:
> Thanks to Jorn Vernee, who suggested me to try with the GitHub
> LLVM+CLang build archive
> I was able to generate the Java bindings for the YARA headers using
> this build
> https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.6/clang+llvm-15.0.6-x86_64-linux-gnu-ubuntu-18.04.tar.xz
> <https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.6/clang+llvm-15.0.6-x86_64-linux-gnu-ubuntu-18.04.tar.xz>
> A more detailed answer is also available on SO
> https://stackoverflow.com/questions/74931278/jextract-yara-headers-throws-unknown-type-name-intmax-t
>
> Best,
> Maurizio
>
> Il giorno mar 27 dic 2022 alle ore 16:53 Maurizio Casciano
> <mauriziocasciano7 at gmail.com> ha scritto:
>
> Dear All,
> I'm trying to generate Java bindings for the yara library but I'm
> getting
>
> |error: unknown type name 'intmax_t' when running the jextract
> command:|
>
> |build/jextract/bin/jextract --source --output java-yara
> --target-package com.virustotal.yara /usr/include/yara.h |
>
> even if I include the relevant additional paths:
>
> |-I /usr/include -I /usr/include/yara -I
> /usr/lib/llvm-15/lib/clang/15.0.6/include|
>
> Here is my question on Stack-Overflow
> https://stackoverflow.com/questions/74931278/jextract-usr-include-yara-h-throws-unknown-type-name-intmax-t
> and my GitHub repository
> https://github.com/MaurizioCasciano/jextract/tree/unknown_type_name_intmax_t
>
> What may be missing in the command?
>
> Best,
> Maurizio
>
>
>
> --
>
> Maurizio Casciano
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jextract-dev/attachments/20230103/284dda6d/attachment.htm>
More information about the jextract-dev
mailing list