RFR: JDK-8317799 : AIX PPC64: FFI symbol lookup doesn't find symbols

Magnus Ihse Bursie ihse at openjdk.org
Tue Nov 14 11:33:30 UTC 2023


On Mon, 30 Oct 2023 10:54:48 GMT, suchismith1993 <duke at openjdk.org> wrote:

> 1. Adding required compiler flags.
> 2. Adding required symbols.
> 
> JBS-ISSUE : [JDK-8317799](https://bugs.openjdk.org/browse/JDK-8317799)

Okay, I checked the spec for `nativeLinker()`.


     * @implNote The libraries exposed by the {@linkplain #defaultLookup() default lookup} associated with the returned
     * linker are the native libraries loaded in the process where the Java runtime is currently executing. For example,
     * on Linux, these libraries typically include {@code libc}, {@code libm} and {@code libdl}.


So AIX is free to supply a nativeLinker that does not expose any symbols whatsoever, if they do not use dynamic libraries. Then it kind of turns into a test issue anyway, if the tests are written to assume that nativeLinker would return such symbols.

Returning an arbitrary list of hard-coded symbols as is proposed in this PR still seem like the wrong solution to me.

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

PR Comment: https://git.openjdk.org/jdk/pull/16414#issuecomment-1810032403


More information about the build-dev mailing list