JDK-8339557 : libgraal build broken by changes in JDK-8339112
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 24
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2024-09-04
  • Updated: 2024-09-05
  • Resolved: 2024-09-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 24
24 masterFixed
Related Reports
Relates :  
Description
The following test failed in the JDK24 CI:

build/graal/LibGraalPresent.java

Here's a snippet from the log file:

[libjvmcicompiler.dylib:57848] Currently used VM configuration is: Java HotSpot(TM) 64-Bit Server VM
[libjvmcicompiler.dylib:57848] ]"). Use -Xlog:jit+compilation for more detail.
[libjvmcicompiler.dylib:57848] WARNING: Unknown module: org.graalvm.jniutils specified to --add-exports
[libjvmcicompiler.dylib:57848] Fatal error: jdk.vm.ci.common.JVMCIError: VM config values missing that should be present in JDK 24 jvmci-24+14 darwin-aarch64 (java.home=/System/Volumes/Data/mesos/work_dir/slaves/6bbe0543-8c5a-457e-b0ca-dfa2833be967-S6308/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/149a7e62-47d7-4a78-9cf5-68bb4b5ced79/runs/ccac60f4-ff21-4bf5-a558-5e501bdaa8d0/workspace/build/macosx-aarch64-debug/support/mxbuild/sdk/darwin-aarch64/GRAALVM_986B8FD011_JAVA24_STAGE1/graalvm-986b8fd011-java24-24.2.0-dev, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, java.vm.version=24-ea+14-1507):
[libjvmcicompiler.dylib:57848]     JVM_ACC_HAS_FINALIZER at jdk.graal.compiler/jdk.graal.compiler.hotspot.GraalHotSpotVMConfig.<init>(GraalHotSpotVMConfig.java:254)
[libjvmcicompiler.dylib:57848]     JVM_ACC_IS_HIDDEN_CLASS at jdk.graal.compiler/jdk.graal.compiler.hotspot.GraalHotSpotVMConfig.<init>(GraalHotSpotVMConfig.java:256)
[libjvmcicompiler.dylib:57848] Set the debug.jdk.graal.jvmciConfigCheck system property to "ignore" to suppress this error or to "warn" to emit a warning and continue execution.
[libjvmcicompiler.dylib:57848] Currently used Java home directory is /System/Volumes/Data/mesos/work_dir/slaves/6bbe0543-8c5a-457e-b0ca-dfa2833be967-S6308/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/149a7e62-47d7-4a78-9cf5-68bb4b5ced79/runs/ccac60f4-ff21-4bf5-a558-5e501bdaa8d0/workspace/build/macosx-aarch64-debug/support/mxbuild/sdk/darwin-aarch64/GRAALVM_986B8FD011_JAVA24_STAGE1/graalvm-986b8fd011-java24-24.2.0-dev.
[libjvmcicompiler.dylib:57848] Currently used VM configuration is: Java HotSpot(TM) 64-Bit Server VM
[libjvmcicompiler.dylib:57848] 
[libjvmcicompiler.dylib:57848] 	at jdk.graal.compiler/jdk.graal.compiler.hotspot.GraalHotSpotVMConfigAccess.reportError(GraalHotSpotVMConfigAccess.java:229)
[libjvmcicompiler.dylib:57848] 	at jdk.graal.compiler/jdk.graal.compiler.hotspot.GraalHotSpotVMConfigAccess.reportErrors(GraalHotSpotVMConfigAccess.java:199)
[libjvmcicompiler.dylib:57848] 	at jdk.graal.compiler/jdk.graal.compiler.hotspot.GraalHotSpotVMConfig.<init>(GraalHotSpotVMConfig.java:66)
[libjvmcicompiler.dylib:57848] 	at jdk.graal.compiler/jdk.graal.compiler.hotspot.HotSpotGraalRuntime.<init>(HotSpotGraalRuntime.java:131)
[libjvmcicompiler.dylib:57848] 	at jdk.graal.compiler/jdk.graal.compiler.hotspot.HotSpotGraalCompilerFactory.createCompiler(HotSpotGraalCompilerFactory.java:212)
[libjvmcicompiler.dylib:57848] 	at jdk.graal.compiler/jdk.graal.compiler.hotspot.HotSpotGraalCompilerFactory.createCompiler(HotSpotGraalCompilerFactory.java:190)
[libjvmcicompiler.dylib:57848] 	at jdk.graal.compiler/jdk.graal.compiler.hotspot.HotSpotGraalCompilerFactory.createCompiler(HotSpotGraalCompilerFactory.java:51)
[libjvmcicompiler.dylib:57848] 	at jdk.internal.vm.ci@24-ea/jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.getCompiler(HotSpotJVMCIRuntime.java:856)
[libjvmcicompiler.dylib:57848] 	at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.GraalAccess.<clinit>(GraalAccess.java:50)
[libjvmcicompiler.dylib:57848] 	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.isValidArchitecture(NativeImageGeneratorRunner.java:366)
[libjvmcicompiler.dylib:57848] 	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.verifyValidJavaVersionAndPlatform(NativeImageGeneratorRunner.java:639)
[libjvmcicompiler.dylib:57848] 	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:376)
[libjvmcicompiler.dylib:57848] 	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:730)
[libjvmcicompiler.dylib:57848] 	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.start(NativeImageGeneratorRunner.java:151)
[libjvmcicompiler.dylib:57848] 	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:99)
  File "/System/Volumes/Data/mesos/work_dir/jib-master/install/jpg/infra/builddeps/cpython-macosx_aarch64/3.8.16+20230116+1.0/cpython-macosx_aarch64-3.8.16+20230116+1.0.tar.gz/python/lib/python3.8/threading.py", line 890, in _bootstrap
    self._bootstrap_inner()
  File "/System/Volumes/Data/mesos/work_dir/jib-master/install/jpg/infra/builddeps/cpython-macosx_aarch64/3.8.16+20230116+1.0/cpython-macosx_aarch64-3.8.16+20230116+1.0.tar.gz/python/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/System/Volumes/Data/mesos/work_dir/slaves/6bbe0543-8c5a-457e-b0ca-dfa2833be967-S6308/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/149a7e62-47d7-4a78-9cf5-68bb4b5ced79/runs/ccac60f4-ff21-4bf5-a558-5e501bdaa8d0/workspace/mx/src/mx/_impl/mx.py", line 395, in run
    super(_DummyProcess, self).run()
  File "/System/Volumes/Data/mesos/work_dir/jib-master/install/jpg/infra/builddeps/cpython-macosx_aarch64/3.8.16+20230116+1.0/cpython-macosx_aarch64-3.8.16+20230116+1.0.tar.gz/python/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/System/Volumes/Data/mesos/work_dir/slaves/6bbe0543-8c5a-457e-b0ca-dfa2833be967-S6308/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/149a7e62-47d7-4a78-9cf5-68bb4b5ced79/runs/ccac60f4-ff21-4bf5-a558-5e501bdaa8d0/workspace/mx/src/mx/_impl/mx.py", line 14669, in executeTask
    task.execute()
  File "/System/Volumes/Data/mesos/work_dir/slaves/6bbe0543-8c5a-457e-b0ca-dfa2833be967-S6308/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/149a7e62-47d7-4a78-9cf5-68bb4b5ced79/runs/ccac60f4-ff21-4bf5-a558-5e501bdaa8d0/workspace/mx/src/mx/_impl/build/tasks/build.py", line 165, in execute
    _built = self.build()
  File "/System/Volumes/Data/mesos/work_dir/slaves/6bbe0543-8c5a-457e-b0ca-dfa2833be967-S6308/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/149a7e62-47d7-4a78-9cf5-68bb4b5ced79/runs/ccac60f4-ff21-4bf5-a558-5e501bdaa8d0/workspace/graal/sdk/mx.sdk/mx_sdk_vm_impl.py", line 2436, in build
    self.svm_support.native_image(build_args, output_file)
  File "/System/Volumes/Data/mesos/work_dir/slaves/6bbe0543-8c5a-457e-b0ca-dfa2833be967-S6308/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/149a7e62-47d7-4a78-9cf5-68bb4b5ced79/runs/ccac60f4-ff21-4bf5-a558-5e501bdaa8d0/workspace/graal/sdk/mx.sdk/mx_sdk_vm_impl.py", line 1244, in native_image
    mx.run(native_image_command, nonZeroIsFatal=True, out=out, err=err)
  File "/System/Volumes/Data/mesos/work_dir/slaves/6bbe0543-8c5a-457e-b0ca-dfa2833be967-S6308/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/149a7e62-47d7-4a78-9cf5-68bb4b5ced79/runs/ccac60f4-ff21-4bf5-a558-5e501bdaa8d0/workspace/mx/src/mx/_impl/mx.py", line 13441, in run
    abort(retcode)
  File "/System/Volumes/Data/mesos/work_dir/slaves/6bbe0543-8c5a-457e-b0ca-dfa2833be967-S6308/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/149a7e62-47d7-4a78-9cf5-68bb4b5ced79/runs/ccac60f4-ff21-4bf5-a558-5e501bdaa8d0/workspace/mx/src/mx/_impl/support/logging.py", line 254, in abort
    traceback.print_stack()

[16:09:18] Building libjvmcicompiler.dylib.image: Failed due to error: 1
/System/Volumes/Data/mesos/work_dir/jib-master/install/jpg/infra/builddeps/cpython-macosx_aarch64/3.8.16+20230116+1.0/cpython-macosx_aarch64-3.8.16+20230116+1.0.tar.gz/python/lib/python3.8/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
  warnings.warn('resource_tracker: There appear to be %d '

java.lang.Exception: libjvmcicompiler.dylib not found
	at LibGraalPresent.main(LibGraalPresent.java:79)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:573)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
	at java.base/java.lang.Thread.run(Thread.java:1575)

JavaTest Message: Test threw exception: java.lang.Exception
JavaTest Message: shutting down test

result: Failed. Execution failed: `main' threw exception: java.lang.Exception: libjvmcicompiler.dylib not found