From sundar at openjdk.org Mon Dec 5 16:19:35 2022 From: sundar at openjdk.org (Athijegannathan Sundararajan) Date: Mon, 5 Dec 2022 16:19:35 GMT Subject: RFR: 7903384: sync jextract for jdk 20 panama API changes Message-ID: <31iWkgiqTGsU6zjQEEHKcCUFJKoRrVs2g28aw3N-bFI=.d6904b1f-38a8-4b0e-a680-e1f7b5ce9bba@github.com> Synching jextract with jdk 20 Panama API changes JEP 434: Foreign Function & Memory API (Second Preview) ------------- Commit messages: - default case cannot be used error in CDeclarationPrinter.java. Fixed comment in libzstd sample's README.md - avoid ExitException. Use ArenaCleanup to do cleanup just before confined Arena is closed. - 7903384: sync jextract for jdk 20 panama API changes Changes: https://git.openjdk.org/jextract/pull/94/files Webrev: https://webrevs.openjdk.org/?repo=jextract&pr=94&range=00 Issue: https://bugs.openjdk.org/browse/CODETOOLS-7903384 Stats: 5240 lines in 78 files changed: 3391 ins; 43 del; 1806 mod Patch: https://git.openjdk.org/jextract/pull/94.diff Fetch: git fetch https://git.openjdk.org/jextract pull/94/head:pull/94 PR: https://git.openjdk.org/jextract/pull/94 From mcimadamore at openjdk.org Mon Dec 12 10:56:12 2022 From: mcimadamore at openjdk.org (Maurizio Cimadamore) Date: Mon, 12 Dec 2022 10:56:12 GMT Subject: RFR: 7903384: sync jextract for jdk 20 panama API changes In-Reply-To: <31iWkgiqTGsU6zjQEEHKcCUFJKoRrVs2g28aw3N-bFI=.d6904b1f-38a8-4b0e-a680-e1f7b5ce9bba@github.com> References: <31iWkgiqTGsU6zjQEEHKcCUFJKoRrVs2g28aw3N-bFI=.d6904b1f-38a8-4b0e-a680-e1f7b5ce9bba@github.com> Message-ID: <-JGhUNLhDarfRBPafqo1P0NUInjuZBRMKDBIobtw_tA=.1582076a-c8dc-421d-84f4-6c88f4b92406@github.com> On Mon, 5 Dec 2022 16:12:25 GMT, Athijegannathan Sundararajan wrote: > Synching jextract with jdk 20 Panama API changes JEP 434: Foreign Function & Memory API (Second Preview) Looks good - as discussed offline, we probably need to update everything to use --release 21, as that's what the panama repo requires. ------------- Marked as reviewed by mcimadamore (Committer). PR: https://git.openjdk.org/jextract/pull/94 From mcimadamore at openjdk.org Mon Dec 12 13:08:26 2022 From: mcimadamore at openjdk.org (Maurizio Cimadamore) Date: Mon, 12 Dec 2022 13:08:26 GMT Subject: RFR: 7903384: sync jextract for jdk 20 panama API changes In-Reply-To: <31iWkgiqTGsU6zjQEEHKcCUFJKoRrVs2g28aw3N-bFI=.d6904b1f-38a8-4b0e-a680-e1f7b5ce9bba@github.com> References: <31iWkgiqTGsU6zjQEEHKcCUFJKoRrVs2g28aw3N-bFI=.d6904b1f-38a8-4b0e-a680-e1f7b5ce9bba@github.com> Message-ID: <-FJibAl5sfWpl2Lu9bB33UD8hMhhMwVMtse5-6qtMJU=.bc18db10-bc0c-45a5-8dd5-38c9faefc88e@github.com> On Mon, 5 Dec 2022 16:12:25 GMT, Athijegannathan Sundararajan wrote: > Synching jextract with jdk 20 Panama API changes JEP 434: Foreign Function & Memory API (Second Preview) Marked as reviewed by mcimadamore (Committer). ------------- PR: https://git.openjdk.org/jextract/pull/94 From sundar at openjdk.org Mon Dec 12 13:26:24 2022 From: sundar at openjdk.org (Athijegannathan Sundararajan) Date: Mon, 12 Dec 2022 13:26:24 GMT Subject: Integrated: 7903384: sync jextract for jdk 20 panama API changes In-Reply-To: <31iWkgiqTGsU6zjQEEHKcCUFJKoRrVs2g28aw3N-bFI=.d6904b1f-38a8-4b0e-a680-e1f7b5ce9bba@github.com> References: <31iWkgiqTGsU6zjQEEHKcCUFJKoRrVs2g28aw3N-bFI=.d6904b1f-38a8-4b0e-a680-e1f7b5ce9bba@github.com> Message-ID: On Mon, 5 Dec 2022 16:12:25 GMT, Athijegannathan Sundararajan wrote: > Synching jextract with jdk 20 Panama API changes JEP 434: Foreign Function & Memory API (Second Preview) This pull request has now been integrated. Changeset: 23c6ff7d Author: Athijegannathan Sundararajan URL: https://git.openjdk.org/jextract/commit/23c6ff7d1569940b6c2d4112e9a1be958149c526 Stats: 5240 lines in 78 files changed: 3391 ins; 43 del; 1806 mod 7903384: sync jextract for jdk 20 panama API changes Reviewed-by: mcimadamore ------------- PR: https://git.openjdk.org/jextract/pull/94 From mcimadamore at openjdk.org Mon Dec 12 13:58:26 2022 From: mcimadamore at openjdk.org (Maurizio Cimadamore) Date: Mon, 12 Dec 2022 13:58:26 GMT Subject: RFR: Update GHA to jdk20 Message-ID: This PR updates the github actions on the jdk20 branch ------------- Commit messages: - Update GHA to jdk20 Changes: https://git.openjdk.org/jextract/pull/96/files Webrev: https://webrevs.openjdk.org/?repo=jextract&pr=96&range=00 Stats: 15 lines in 1 file changed: 0 ins; 0 del; 15 mod Patch: https://git.openjdk.org/jextract/pull/96.diff Fetch: git fetch https://git.openjdk.org/jextract pull/96/head:pull/96 PR: https://git.openjdk.org/jextract/pull/96 From mcimadamore at openjdk.org Mon Dec 12 13:58:28 2022 From: mcimadamore at openjdk.org (Maurizio Cimadamore) Date: Mon, 12 Dec 2022 13:58:28 GMT Subject: RFR: Update GHA to jdk20 In-Reply-To: References: Message-ID: On Mon, 12 Dec 2022 13:53:16 GMT, Maurizio Cimadamore wrote: > This PR updates the github actions on the jdk20 branch .github/workflows/test.yml line 61: > 59: ${{ matrix.JAVA20_HOME }}/bin/java --version > 60: > 61: - name: 'Setup Java 19' Not sure why this is/was here? ------------- PR: https://git.openjdk.org/jextract/pull/96 From mcimadamore at openjdk.org Mon Dec 12 14:08:23 2022 From: mcimadamore at openjdk.org (Maurizio Cimadamore) Date: Mon, 12 Dec 2022 14:08:23 GMT Subject: RFR: Update GHA to jdk20 [v2] In-Reply-To: References: Message-ID: > This PR updates the github actions on the jdk20 branch Maurizio Cimadamore has updated the pull request incrementally with one additional commit since the last revision: Revert to JDK 18 ------------- Changes: - all: https://git.openjdk.org/jextract/pull/96/files - new: https://git.openjdk.org/jextract/pull/96/files/020d0304..d62b61c0 Webrevs: - full: https://webrevs.openjdk.org/?repo=jextract&pr=96&range=01 - incr: https://webrevs.openjdk.org/?repo=jextract&pr=96&range=00-01 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jextract/pull/96.diff Fetch: git fetch https://git.openjdk.org/jextract pull/96/head:pull/96 PR: https://git.openjdk.org/jextract/pull/96 From mcimadamore at openjdk.org Mon Dec 12 14:21:45 2022 From: mcimadamore at openjdk.org (Maurizio Cimadamore) Date: Mon, 12 Dec 2022 14:21:45 GMT Subject: RFR: Update GHA to jdk20 [v3] In-Reply-To: References: Message-ID: <21KOyv_P1GV6EXHQceHVvyAGPfeYFexI_s_fnnSoVY4=.a6a927cd-9480-4677-a80f-e3b14a455232@github.com> > This PR updates the github actions on the jdk20 branch Maurizio Cimadamore has updated the pull request incrementally with one additional commit since the last revision: Drop JDK 18 ------------- Changes: - all: https://git.openjdk.org/jextract/pull/96/files - new: https://git.openjdk.org/jextract/pull/96/files/d62b61c0..54ce1a4e Webrevs: - full: https://webrevs.openjdk.org/?repo=jextract&pr=96&range=02 - incr: https://webrevs.openjdk.org/?repo=jextract&pr=96&range=01-02 Stats: 5 lines in 1 file changed: 0 ins; 5 del; 0 mod Patch: https://git.openjdk.org/jextract/pull/96.diff Fetch: git fetch https://git.openjdk.org/jextract pull/96/head:pull/96 PR: https://git.openjdk.org/jextract/pull/96 From mcimadamore at openjdk.org Mon Dec 12 14:26:18 2022 From: mcimadamore at openjdk.org (Maurizio Cimadamore) Date: Mon, 12 Dec 2022 14:26:18 GMT Subject: RFR: Update GHA to jdk20 [v4] In-Reply-To: References: Message-ID: > This PR updates the github actions on the jdk20 branch Maurizio Cimadamore has updated the pull request incrementally with one additional commit since the last revision: Drop macos ------------- Changes: - all: https://git.openjdk.org/jextract/pull/96/files - new: https://git.openjdk.org/jextract/pull/96/files/54ce1a4e..6661c609 Webrevs: - full: https://webrevs.openjdk.org/?repo=jextract&pr=96&range=03 - incr: https://webrevs.openjdk.org/?repo=jextract&pr=96&range=02-03 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jextract/pull/96.diff Fetch: git fetch https://git.openjdk.org/jextract pull/96/head:pull/96 PR: https://git.openjdk.org/jextract/pull/96 From mcimadamore at openjdk.org Mon Dec 12 14:29:22 2022 From: mcimadamore at openjdk.org (Maurizio Cimadamore) Date: Mon, 12 Dec 2022 14:29:22 GMT Subject: RFR: Update GHA to jdk20 [v5] In-Reply-To: References: Message-ID: > This PR updates the github actions on the jdk20 branch Maurizio Cimadamore has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains one new commit since the last revision: Drop macos ------------- Changes: - all: https://git.openjdk.org/jextract/pull/96/files - new: https://git.openjdk.org/jextract/pull/96/files/6661c609..b40c8a5c Webrevs: - full: https://webrevs.openjdk.org/?repo=jextract&pr=96&range=04 - incr: https://webrevs.openjdk.org/?repo=jextract&pr=96&range=03-04 Stats: 3 lines in 1 file changed: 0 ins; 3 del; 0 mod Patch: https://git.openjdk.org/jextract/pull/96.diff Fetch: git fetch https://git.openjdk.org/jextract pull/96/head:pull/96 PR: https://git.openjdk.org/jextract/pull/96 From jvernee at openjdk.org Mon Dec 12 14:32:20 2022 From: jvernee at openjdk.org (Jorn Vernee) Date: Mon, 12 Dec 2022 14:32:20 GMT Subject: RFR: Update GHA to jdk20 [v5] In-Reply-To: References: Message-ID: On Mon, 12 Dec 2022 13:53:42 GMT, Maurizio Cimadamore wrote: >> Maurizio Cimadamore has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains one new commit since the last revision: >> >> Drop macos > > .github/workflows/test.yml line 61: > >> 59: ${{ matrix.JAVA20_HOME }}/bin/java --version >> 60: >> 61: - name: 'Setup Java 19' > > Not sure why this is/was here? We need 2 java versions, one to run Gradle, and one to build/run jextract. Version 18 was needed to run gradle. ------------- PR: https://git.openjdk.org/jextract/pull/96 From mcimadamore at openjdk.org Mon Dec 12 15:51:40 2022 From: mcimadamore at openjdk.org (Maurizio Cimadamore) Date: Mon, 12 Dec 2022 15:51:40 GMT Subject: RFR: Update GHA to jdk20 [v6] In-Reply-To: References: Message-ID: > This PR updates the github actions on the jdk20 branch Maurizio Cimadamore has updated the pull request incrementally with four additional commits since the last revision: - Merge pull request #2 from JornVernee/MAC Get build working on Mac as well - use JDK 17 for Gradle - use JDK 19 for Gradle - Add mac ------------- Changes: - all: https://git.openjdk.org/jextract/pull/96/files - new: https://git.openjdk.org/jextract/pull/96/files/b40c8a5c..6a6fd8c5 Webrevs: - full: https://webrevs.openjdk.org/?repo=jextract&pr=96&range=05 - incr: https://webrevs.openjdk.org/?repo=jextract&pr=96&range=04-05 Stats: 9 lines in 1 file changed: 8 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jextract/pull/96.diff Fetch: git fetch https://git.openjdk.org/jextract pull/96/head:pull/96 PR: https://git.openjdk.org/jextract/pull/96 From jvernee at openjdk.org Mon Dec 12 16:07:12 2022 From: jvernee at openjdk.org (Jorn Vernee) Date: Mon, 12 Dec 2022 16:07:12 GMT Subject: RFR: Update GHA to jdk20 [v6] In-Reply-To: References: Message-ID: On Mon, 12 Dec 2022 15:51:40 GMT, Maurizio Cimadamore wrote: >> This PR updates the github actions on the jdk20 branch > > Maurizio Cimadamore has updated the pull request incrementally with four additional commits since the last revision: > > - Merge pull request #2 from JornVernee/MAC > > Get build working on Mac as well > - use JDK 17 for Gradle > - use JDK 19 for Gradle > - Add mac Marked as reviewed by jvernee (no project role). ------------- PR: https://git.openjdk.org/jextract/pull/96 From jvernee at openjdk.org Mon Dec 12 16:12:10 2022 From: jvernee at openjdk.org (Jorn Vernee) Date: Mon, 12 Dec 2022 16:12:10 GMT Subject: RFR: Update GHA to jdk20 [v6] In-Reply-To: References: Message-ID: On Mon, 12 Dec 2022 15:51:40 GMT, Maurizio Cimadamore wrote: >> This PR updates the github actions on the jdk20 branch > > Maurizio Cimadamore has updated the pull request incrementally with four additional commits since the last revision: > > - Merge pull request #2 from JornVernee/MAC > > Get build working on Mac as well > - use JDK 17 for Gradle > - use JDK 19 for Gradle > - Add mac .github/workflows/test.yml line 64: > 62: uses: oracle-actions/setup-java at v1.3.1 > 63: with: > 64: release: 17 Maybe we could add a comment here that says that this sets `JAVA_HOME` for gradle to run on? ------------- PR: https://git.openjdk.org/jextract/pull/96 From mcimadamore at openjdk.org Mon Dec 12 16:21:35 2022 From: mcimadamore at openjdk.org (Maurizio Cimadamore) Date: Mon, 12 Dec 2022 16:21:35 GMT Subject: RFR: Update GHA to jdk20 [v7] In-Reply-To: References: Message-ID: <9-ZirEHaznzY5--v4qiJ_pvE23schUNvVJG5GDzV3Zk=.d18a76b8-b53e-4f5a-a990-5b420b849f0e@github.com> > This PR updates the github actions on the jdk20 branch Maurizio Cimadamore has updated the pull request incrementally with one additional commit since the last revision: Add comment ------------- Changes: - all: https://git.openjdk.org/jextract/pull/96/files - new: https://git.openjdk.org/jextract/pull/96/files/6a6fd8c5..66a200d9 Webrevs: - full: https://webrevs.openjdk.org/?repo=jextract&pr=96&range=06 - incr: https://webrevs.openjdk.org/?repo=jextract&pr=96&range=05-06 Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jextract/pull/96.diff Fetch: git fetch https://git.openjdk.org/jextract pull/96/head:pull/96 PR: https://git.openjdk.org/jextract/pull/96 From jvernee at openjdk.org Mon Dec 12 16:29:50 2022 From: jvernee at openjdk.org (Jorn Vernee) Date: Mon, 12 Dec 2022 16:29:50 GMT Subject: RFR: Update GHA to jdk20 [v7] In-Reply-To: <9-ZirEHaznzY5--v4qiJ_pvE23schUNvVJG5GDzV3Zk=.d18a76b8-b53e-4f5a-a990-5b420b849f0e@github.com> References: <9-ZirEHaznzY5--v4qiJ_pvE23schUNvVJG5GDzV3Zk=.d18a76b8-b53e-4f5a-a990-5b420b849f0e@github.com> Message-ID: On Mon, 12 Dec 2022 16:21:35 GMT, Maurizio Cimadamore wrote: >> This PR updates the github actions on the jdk20 branch > > Maurizio Cimadamore has updated the pull request incrementally with one additional commit since the last revision: > > Add comment Marked as reviewed by jvernee (no project role). ------------- PR: https://git.openjdk.org/jextract/pull/96 From mcimadamore at openjdk.org Mon Dec 12 16:49:35 2022 From: mcimadamore at openjdk.org (Maurizio Cimadamore) Date: Mon, 12 Dec 2022 16:49:35 GMT Subject: Integrated: Update GHA to jdk20 In-Reply-To: References: Message-ID: On Mon, 12 Dec 2022 13:53:16 GMT, Maurizio Cimadamore wrote: > This PR updates the github actions on the jdk20 branch This pull request has now been integrated. Changeset: 04a0914e Author: Maurizio Cimadamore URL: https://git.openjdk.org/jextract/commit/04a0914e0a307e983c04b060d24d5bb28de8ba7d Stats: 17 lines in 1 file changed: 1 ins; 0 del; 16 mod Update GHA to jdk20 Reviewed-by: jvernee ------------- PR: https://git.openjdk.org/jextract/pull/96 From sundar at openjdk.org Mon Dec 12 17:43:10 2022 From: sundar at openjdk.org (Athijegannathan Sundararajan) Date: Mon, 12 Dec 2022 17:43:10 GMT Subject: RFR: 7903399: sync panama branch of jextract for jdk 21 Message-ID: changed to use --enable-preview --source=21 everywhere along apart from changes done in jdk20 branch ------------- Commit messages: - 7903399: sync panama branch of jextract for jdk 21 Changes: https://git.openjdk.org/jextract/pull/97/files Webrev: https://webrevs.openjdk.org/?repo=jextract&pr=97&range=00 Issue: https://bugs.openjdk.org/browse/CODETOOLS-7903399 Stats: 5292 lines in 124 files changed: 3391 ins; 43 del; 1858 mod Patch: https://git.openjdk.org/jextract/pull/97.diff Fetch: git fetch https://git.openjdk.org/jextract pull/97/head:pull/97 PR: https://git.openjdk.org/jextract/pull/97 From mcimadamore at openjdk.org Mon Dec 12 17:49:19 2022 From: mcimadamore at openjdk.org (Maurizio Cimadamore) Date: Mon, 12 Dec 2022 17:49:19 GMT Subject: RFR: 7903399: sync panama branch of jextract for jdk 21 In-Reply-To: References: Message-ID: On Mon, 12 Dec 2022 17:35:41 GMT, Athijegannathan Sundararajan wrote: > changed to use --enable-preview --source=21 everywhere along apart from changes done in jdk20 branch Looks good Please make sure that README is in sync with the fact that we now required JDK 21 Actually, the README file needs changing, as the build properties seem to refer to JDK20 (e.g. jdk20_home). ------------- Marked as reviewed by mcimadamore (Committer). PR: https://git.openjdk.org/jextract/pull/97Changes requested by mcimadamore (Committer). From sundar at openjdk.org Tue Dec 13 08:23:09 2022 From: sundar at openjdk.org (Athijegannathan Sundararajan) Date: Tue, 13 Dec 2022 08:23:09 GMT Subject: RFR: 7903399: sync panama branch of jextract for jdk 21 [v2] In-Reply-To: References: Message-ID: > changed to use --enable-preview --source=21 everywhere along apart from changes done in jdk20 branch Athijegannathan Sundararajan has updated the pull request incrementally with one additional commit since the last revision: changed jdk20_home references to jdk21_home in README.md (review comment) ------------- Changes: - all: https://git.openjdk.org/jextract/pull/97/files - new: https://git.openjdk.org/jextract/pull/97/files/ba7ed4d8..d893d4a5 Webrevs: - full: https://webrevs.openjdk.org/?repo=jextract&pr=97&range=01 - incr: https://webrevs.openjdk.org/?repo=jextract&pr=97&range=00-01 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jextract/pull/97.diff Fetch: git fetch https://git.openjdk.org/jextract pull/97/head:pull/97 PR: https://git.openjdk.org/jextract/pull/97 From sundar at openjdk.org Tue Dec 13 08:24:41 2022 From: sundar at openjdk.org (Athijegannathan Sundararajan) Date: Tue, 13 Dec 2022 08:24:41 GMT Subject: Integrated: 7903399: sync panama branch of jextract for jdk 21 In-Reply-To: References: Message-ID: On Mon, 12 Dec 2022 17:35:41 GMT, Athijegannathan Sundararajan wrote: > changed to use --enable-preview --source=21 everywhere along apart from changes done in jdk20 branch This pull request has now been integrated. Changeset: a6ee3181 Author: Athijegannathan Sundararajan URL: https://git.openjdk.org/jextract/commit/a6ee31813b55b6403785dbf56460a21837264628 Stats: 5294 lines in 125 files changed: 3391 ins; 43 del; 1860 mod 7903399: sync panama branch of jextract for jdk 21 ------------- PR: https://git.openjdk.org/jextract/pull/97 From mcimadamore at openjdk.org Tue Dec 13 15:15:31 2022 From: mcimadamore at openjdk.org (Maurizio Cimadamore) Date: Tue, 13 Dec 2022 15:15:31 GMT Subject: RFR: Fix code sample in README Message-ID: The Point sample in the README contained a reference to `MemorySession`, which is gone from the 20 API. ------------- Commit messages: - Fix code sample in README Changes: https://git.openjdk.org/jextract/pull/98/files Webrev: https://webrevs.openjdk.org/?repo=jextract&pr=98&range=00 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jextract/pull/98.diff Fetch: git fetch https://git.openjdk.org/jextract pull/98/head:pull/98 PR: https://git.openjdk.org/jextract/pull/98 From jvernee at openjdk.org Tue Dec 13 15:51:22 2022 From: jvernee at openjdk.org (Jorn Vernee) Date: Tue, 13 Dec 2022 15:51:22 GMT Subject: RFR: Fix code sample in README In-Reply-To: References: Message-ID: On Tue, 13 Dec 2022 15:09:16 GMT, Maurizio Cimadamore wrote: > The Point sample in the README contained a reference to `MemorySession`, which is gone from the 20 API. Marked as reviewed by jvernee (no project role). ------------- PR: https://git.openjdk.org/jextract/pull/98 From mcimadamore at openjdk.org Tue Dec 13 16:09:29 2022 From: mcimadamore at openjdk.org (Maurizio Cimadamore) Date: Tue, 13 Dec 2022 16:09:29 GMT Subject: Integrated: Fix code sample in README In-Reply-To: References: Message-ID: <4Me8jB8p0QgH8gBxLGVwL6cDhD6Pw-pjzyW8d9kgUrM=.da413470-bab9-458c-9515-4af22d44ac4e@github.com> On Tue, 13 Dec 2022 15:09:16 GMT, Maurizio Cimadamore wrote: > The Point sample in the README contained a reference to `MemorySession`, which is gone from the 20 API. This pull request has now been integrated. Changeset: 61c3e33b Author: Maurizio Cimadamore URL: https://git.openjdk.org/jextract/commit/61c3e33b1f622ce1661d1525a07c67d273461de1 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Fix code sample in README Reviewed-by: jvernee ------------- PR: https://git.openjdk.org/jextract/pull/98 From mennen at openjdk.org Wed Dec 14 03:48:06 2022 From: mennen at openjdk.org (Michael Ennen) Date: Wed, 14 Dec 2022 03:48:06 GMT Subject: RFR: Add third-party sample list to README, populate with java-vulkan. In-Reply-To: References: Message-ID: On Sun, 27 Nov 2022 05:16:06 GMT, Michael Ennen wrote: > I made a more complex example (1000 lines, mostly because setting up a boilerplate Vulkan program is super lengthy) of using jextract on Vulkan and Win32 APIs. > > I think it may be too lengthy and too much of a maintenance burden to commit to the `/samples` directory, so I thought maybe including a section on third-party samples would be better. > > If this is not something you want to entertain that's totally understandable, but thought I would put it out there a bigger sample that interfaces with a pretty complex API may be helpful to others. Updated to work with JDK 20 (Build 27) and greater: https://github.com/brcolow/java-vulkan/commit/171f167782eea538b19b60d5fa73e9f75a112f6d ------------- PR: https://git.openjdk.org/jextract/pull/93 From mauriziocasciano7 at gmail.com Tue Dec 27 15:53:51 2022 From: mauriziocasciano7 at gmail.com (Maurizio Casciano) Date: Tue, 27 Dec 2022 16:53:51 +0100 Subject: JExtract unknown type name 'intmax_t' for /usr/include/yara.h Message-ID: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mauriziocasciano7 at gmail.com Wed Dec 28 17:23:12 2022 From: mauriziocasciano7 at gmail.com (Maurizio Casciano) Date: Wed, 28 Dec 2022 18:23:12 +0100 Subject: JExtract unknown type name 'intmax_t' for /usr/include/yara.h In-Reply-To: References: Message-ID: 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 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: