RFR: Add support for AIX in build process [v3]

Suchismith Roy sroy at openjdk.org
Thu Dec 4 07:59:52 UTC 2025


On Mon, 1 Dec 2025 17:38:00 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

>> src/main/java/org/openjdk/jextract/clang/libclang/Index_h.java line 105:
>> 
>>> 103:             }
>>> 104:         }
>>> 105:         SYMBOL_LOOKUP = SymbolLookup.libraryLookup(libName + "(libclang.so.14)", Arena.global());
>> 
>> Pleas fix the indentation here.
>
> Also, hard-coding paths the the build directories in the production code seems fishy. It also shouldn't be needed. If the library is properly included in the runtime image, that's where it can be found, and I'm expecting the call to `libraryLookup` to succeed.
> 
> If it doesn't then there's something wrong with the runtime image. You might want to test grabbing the .jmod file from the build, and creating another runtime image with it, and then trying to access some of the jextract API classes in e.g. a jshell session, to see if the library can be loaded.

@JornVernee  for AIX dynamic libraries we need to mention the shared member (libclang.so.14) for it succeed.

@JornVernee  not sure if  there a way to fetch clang version

-------------

PR Review Comment: https://git.openjdk.org/jextract/pull/297#discussion_r2587952959
PR Review Comment: https://git.openjdk.org/jextract/pull/297#discussion_r2587959256


More information about the jextract-dev mailing list