-
Notifications
You must be signed in to change notification settings - Fork 738
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
AArch64: Fails to build when OpenSSL is enabled #5018
Comments
This is really an issue with the extensions, like https://github.com/ibmruntimes/openj9-openjdk-jdk8 and https://github.com/ibmruntimes/openj9-openjdk-jdk11 |
@knn-k What version of OpenJDK were you trying to build? jdk11 or jdk12? |
There is a change going in to only build OpenSSL if we are bundling the OpenSSL library with the JDK. Tried to follow your updated instructions but got this error when running the
Is this a know issue? |
Updated the
as the deb9u2 versions didn't seem to exist. Docker image now gets built correctly. |
I am trying to build using I guess we don't need to bundle the OpenSSL library with the AArch64 runtime. |
The AArch64 Linux runtime was built successfully in the cross-compiling environment using What would be the easiest way to see if it works or not? |
You could try compiling this small java test:
and then run with
which should give the following output which states that the native crypto library was loaded
|
Tried adding code to the openssl.gmk to use the correct OpenSSL configure options to compile with linux-aarch64 but that causes the build of OpenSSL to fail with an error:
It seems |
My build with
It is the same as the output from a build without the |
If you are not bundling the libcrypto library then that message means that it could not find the library on the system. Do you know if the system has OpenSSL installed and where the libcrypto library is? |
I have been busy working on other tasks.
|
With the latest code the libcrypto.so is not statically loaded but is now dynamically loaded so that is probably why the readily command doesn't show the libcrypto.so file. As it is dynamically loads the library, libcrypto.so needs to be available on the libpath on the system, or bundled as part of the jdk. |
Thank you for the information.
I am going to investigate it. |
It turned out that there was mismatch between libcrypto.so.1.1 I used and the OS version.
I will add comment to the building instructions on building with OpenSSL. |
This commit adds comments for AArch64 Linux build with OpenSSL to the Build_Instructions_V11. Fixes: eclipse-openj9#5018 Signed-off-by: knn-k <konno@jp.ibm.com>
Excellent. Glad this now all works correctly. |
@knn-k I've had it working ok with |
Build of AArch64 runtime fails if you specify
--with-openssl=fetched
in runningconfigure
.The build environment of AArch64 runtime expects cross-compilation on x86 at this point. The build process compiles
libcrypto.so
targeting x86 instead of AArch64.The text was updated successfully, but these errors were encountered: