Fwd: jextract standalone repository

Sundararajan Athijegannathan sundararajan.athijegannathan at oracle.com
Thu Mar 24 17:01:07 UTC 2022


Filed: https://bugs.openjdk.java.net/browse/CODETOOLS-7903129

Thanks
-Sundar
________________________________
From: panama-dev <panama-dev-retn at openjdk.java.net> on behalf of Maurizio Cimadamore <maurizio.cimadamore at oracle.com>
Sent: 24 March 2022 22:18
To: Duncan Gittins <duncan.gittins at gmail.com>; panama-dev <panama-dev at openjdk.java.net>
Subject: Re: Fwd: jextract standalone repository

I can reproduce on Linux as well.

It seems like a class was added to handle this (CommandLine) but this
class is not used by the jextract tool. So there's something missing.

Maurizio

On 24/03/2022 16:25, Duncan Gittins wrote:
> Sorry I forgot to mention the contents of headers\Ole32.h:
>
>      #include <objbase.h>
>
> -------- Forwarded Message --------
> Subject:     Re: jextract standalone repository
> Date:     Thu, 24 Mar 2022 16:20:19 +0000
> From:     Duncan Gittins <duncan.gittins at gmail.com>
> To:     panama-dev at openjdk.java.net
>
>
>
> I've download OpenJDK18 for Windows then built jextract from the new
> repos location. The new jextract does not appear to handle
> "@commandfile" style command line arguments so I can no longer supply
> two config files - one for the build flags and another for the
> "--include" flags necessary to cut Windows jars back to a manageable
> size.
>
>     > build\jextract\jextract.exe @headers\Ole32.conf @headers\Ole32.dat
>  or
>     > build\jextract\jextract.exe @headers\Ole32.conf
>     =>
>     OPTION ERROR: Expected 1 header file, not 2
>
> Whereas if I type in the contents of headers\Ole32.conf explicitly it
> works but is unusable as I get 7000 classes:
>
>     > build\jextract\jextract.exe -source -lole32 -t duncan.win.ole -d
> source\duncan.win\java headers\Ole32.h
>
> Kind regards
>
> Duncan
>
> On 23/03/2022 21:50, Maurizio Cimadamore wrote:
>> Hi,
>> as anticipated in [1], jextract has finally landed in its own
>> standalone repository:
>>
>> https://github.com/openjdk/jextract
>>
>> The version of jextract included in this repo is suitable to work
>> with Java 18 (just hot off the press!), and we plan to create new
>> branches as new Java versions will come out (to make it easy to find
>> the version you want to work with).
>>
>> The jextract sources can be built using gradle; as usual, the build
>> depends on libclang, so a LLVM binary snapshot is required [2].
>> Testing is also possible (requires jtreg).
>>
>> Jextract binary snapshots will be made available at a later date.
>> Moving forward, we will gradually phase out the jextract branch
>> (foreign-jextract) of the panama/foreign repository, and work on the
>> standalone repository instead.
>>
>> If you are interested, please give it a try, and let us know what you
>> think.
>>
>> Cheers
>> Maurizio
>>
>> [1] -
>> https://mail.openjdk.java.net/pipermail/panama-dev/2021-December/015895.html
>> [2] - https://releases.llvm.org/download.html
>>
>>


More information about the panama-dev mailing list