Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java 17 cannot start on AIX 7.2 #847

Closed
gvernier opened this issue Jul 21, 2023 · 5 comments
Closed

Java 17 cannot start on AIX 7.2 #847

gvernier opened this issue Jul 21, 2023 · 5 comments
Labels
bug Something isn't working platform:aix Issues related to AIX stale

Comments

@gvernier
Copy link

Please provide a brief summary of the bug

Hello,
I'm trying to run java 17 on an AIX7.2TL05SP05 and I get the following error:
rs95:/tmp/jdk-17.0.7+7-jre/bin# oslevel -s
7200-05-05-2246

rs95:/tmp/jdk-17.0.7+7-jre/bin# ./java -version
Error: dl failure on line 542
Error: failed /tmp/jdk-17.0.7+7-jre/lib/server/libjvm.so, because 0509-022 Cannot load module /tmp/jdk-17.0.7+7-jre/lib/server/libjvm.so.
0509-150 Dependent module libc++.a(shr_64.o) could not be loaded.
0509-022 Unable to load module libc++.a(shr_64.o).
0509-026 System error: A file or directory in the path name does not exist.
0509-022 Unable to load module /tmp/jdk-17.0.7+7-jre/lib/server/libjvm.so.
0509-150 Dependent module /tmp/jdk-17.0.7+7-jre/lib/server/libjvm.so could not be loaded.

I have retrieved the following archive : https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.7%2B7/OpenJDK17U-jre_ppc64_aix_hotspot_17.0.7_7.tar.gz

A similar ticket has already been opened, but there was no resolution.
On my system, the xlc++ installed is version XLC 16.1.
Thank you in advance for your help.

Gaël

Please provide steps to reproduce where possible

No response

Expected Results

show java version

Actual Results

rs95:/tmp/jdk-17.0.7+7-jre/bin# ./java -version
Error: dl failure on line 542
Error: failed /tmp/jdk-17.0.7+7-jre/lib/server/libjvm.so, because 0509-022 Cannot load module
0509-150 Dependent module libc++.a(shr_64.o) could not be loaded.
0509-022 Cannot load module libc++.a(shr_64.o).
0509-026 System error: A file or directory in the path name does not exist.
0509-022 Cannot load module /tmp/jdk-17.0.7+7-jre/lib/server/libjvm.so.
0509-150 Dependent module /tmp/jdk-17.0.7+7-jre/lib/server/libjvm.so could not be loaded.

What Java Version are you using?

17.0.7+7

What is your operating system and platform?

AIX 7.2TL05SP05

How did you install Java?

I download from github

Did it work before?

No response

Did you test with the latest update version?

No response

Did you test with other Java versions?

No response

Relevant log output

No response

@gvernier gvernier added the bug Something isn't working label Jul 21, 2023
@karianna karianna added Waiting on OP platform:aix Issues related to AIX labels Jul 21, 2023
@karianna
Copy link
Contributor

@gvernier Can you try the 17.0.8 release? Should be out in a few days.

@gvernier
Copy link
Author

@karianna I don't think the latest version is available for OS AIX. There is a ppc64 version for Linux. Do you have this version for AIX?

@karianna
Copy link
Contributor

See adoptium.net - the banner there has a link to our status page for getting the builds out this week including AIX.

@gvernier
Copy link
Author

I think I've found the solution.
XLC version management is not easy. There are several different versions for each type of fileset (the runtime part or the compiler part). And the libc++.rte fileset missed, which is not installed as standard.

To sum up, here are the XLC prerequisites for it to work:
lslpp -l | egrep -i "xlc|libc++" :
libc++.rte 16.1.0.5 APPLIED IBM XL C++ Runtime for AIX 7.1
xlC.adt.include 16.1.0.5 APPLIED C Set ++ Application
xlC.aix61.rte 16.1.0.5 APPLIED IBM XL C++ Runtime for AIX 6.1
xlC.msg.en_US.rte 16.1.0.5 APPLIED IBM XL C++ Runtime
xlC.rte 16.1.0.5 APPLIED IBM XL C++ Runtime for AIX
xlCcmp.13.1.0 13.1.0.12 APPLIED XL C++ compiler
xlCcmp.13.1.0.bundle 13.1.0.0 COMMITTED XL C++ media defined bundles
xlCcmp.13.1.0.lib 13.1.0.12 APPLIED XL C++ libraries
xlCcmp.13.1.0.license 13.1.0.0 COMMITTED XL C++ license files
xlCcmp.13.1.0.ndi 13.1.0.12 APPLIED XL C++ non-default
xlCcmp.13.1.0.tools 13.1.0.12 APPLIED XL C++ tools
xlccmp.13.1.0 13.1.0.12 APPLIED XL C compiler
xlccmp.13.1.0.bundle 13.1.0.0 COMMITTED XL C media defined bundles
xlccmp.13.1.0.lib 13.1.0.12 APPLIED XL C libraries for AIX 6.1 and
xlccmp.13.1.0.license 13.1.0.0 COMMITTED XL C license files
xlccmp.13.1.0.ndi 13.1.0.12 APPLIED XL C non-default installation
bos.rte.libc 7.2.5.2 APPLIED libc Library
bos.rte.libcfg 7.2.5.0 APPLIED libcfg Library
bos.rte.libcur 7.2.5.0 APPLIED libcurses Library

For me, you need have libc++ and xlC.x.x in version 16.1.0.X.
Whatever xlCcmp version i think.
I hope that's clear.

The good result !
./java -version
openjdk version "17.0.6" 2023-01-17
IBM Semeru Runtime Open Edition 17.0.6.0 (build 17.0.6+10)
Eclipse OpenJ9 VM 17.0.6.0 (build openj9-0.36.0, JRE 17 AIX ppc64-64-Bit Compressed References 20230117_375 (JIT enabled, AOT enabled)
OpenJ9 - e68fb241f
OMR - f491bbf6f
JCL - 927b34f84c8 based on jdk-17.0.6+10)

Gaël

@github-actions
Copy link

We are marking this issue as stale because it has not been updated for a while. This is just a way to keep the support issues queue manageable.
It will be closed soon unless the stale label is removed by a committer, or a new comment is made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform:aix Issues related to AIX stale
Projects
None yet
Development

No branches or pull requests

2 participants