-
Notifications
You must be signed in to change notification settings - Fork 729
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
ibmjvmti.h not found in OpenJ9 SDK #1252
Comments
@SueChaplain this problem should be added to the 0.8 release notes. The ibmjvmti.h file is missing from the include directory, code that uses "ibm" jvmti extensions can't be compiled. |
@pshipton, Hang pointed out that ibmjvmti.h is included in https://github.com/eclipse/openj9/blob/master/runtime/include/ibmjvmti.h. The reason why we are seeing this test failure may have to do with the fact that when compiling the test, we are not supplying the 'runtime' folder into IFLAGS option of the gcc command line of this test's makefile. I am testing out the fix. I will remove this issue from openj9 and create one under openj9-systemtest if the fix works. |
The reported issue is a valid problem. Users shouldn't have to have the OpenJ9 source available in order to use the include file. It should be in the include directory of the "JDK" image produced by an OpenJ9 build, similarly to how jvmi.h is available there. |
@hangshao0 FYI. |
I believe this is a problem with the ibmruntimes/openj9-openjdk-jdk8 extensions wrt 'composition' of the final jdk/jre. If I do a search against Adopt-OpenJ9 built binaries its found for 9 but not 8.
I think this should be raised against the openj9-openjdk-jdk8 repo. |
I agree with @jdekonin.
currently, we don't copy i will create a pull request in |
Closes: eclipse-openj9/openj9#1252 Signed-off-by: Babneet Singh [email protected]
Closes: eclipse-openj9/openj9#1252 Signed-off-by: Babneet Singh [email protected]
Closes: eclipse-openj9/openj9#1252 Signed-off-by: Babneet Singh <[email protected]>
@babsingh I verified your fix by running the openj9 systemtests sharedClasses jvmti native tests in a personal build using the sdk you provided: 10:39:21 openjdk version "1.8.0_172-internal" |
Overview
There seems to be a bug in building OpenJ9 with the OpenJDK extensions. The code is included in the VM, but the ibmjvmti.h file is not included in the include directory.
Test failure
Link
https://ci.adoptopenjdk.net/view/work%20in%20progress/job/test_personal/280/console
How to reproduce
The error can be reproduced using a personal build in ci.Adopt, using the following steps:
Include the disabled failing test in openj9-systemtest:
1.1) Create a fork and a branch of
https://github.com/eclipse/openj9-systemtest/
1.2) In your branch, reverse the following change in
openj9.test.sharedClasses.jvmti/build.xml
: https://github.com/eclipse/openj9-systemtest/pull/18/files (i.e., add the old version of the target calledbuild
, and remove the new version of the same where the if condition for "openj9" was added).1.3) Push your branch to your remote.
Create a fork and a branch of
https://github.com/AdoptOpenJDK/openjdk-tests
In your branch, point to the change you made in step (1):
3.1) Open
/openjdk-tests/systemtest/build.xml
3.2) Update the target called
clone_openj9-systemtest
to include your the name of your branch of your own openj9-systemtest repo's fork, for example:4.1) From a browser, go to ci.adopt test_personal build : https://ci.adoptopenjdk.net/view/work%20in%20progress/job/test_personal/
4.2) Click "Build with Parameters" and fill them out as follows:
4.2.1) personalRepo = type in the name of your openjdk-tests fork created in step (2) above.
4.2.2) personalBranch = type in the name of your openjdk-tests branch created in step (2) above.
4.2.3) JAVA_IMPL = openj9
4.2.4 JVM_VERSION = openjdk8-openj9
4.2.5) TESTPROJECT = systemtest
4.2.6) TARGET = MauveSingleThreadLoadTest_0
4.2.7) SDK_RESOURCE = nightly
Leave the rest as default and launch the build. This will download the latest nightly build of openjkd8-openj9 sdk from Adopt and run the build, which will in tern make an attempt to build
openj9-systemtest/openj9.test.sharedClasses.jvmti/src/native/sharedClasses.c
and reproduce the ibmjvmti.h not found issue.The text was updated successfully, but these errors were encountered: