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

Fix JDK24 Windows unresolved external symbols #20829

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

JasonFengJ9
Copy link
Member

Fix JDK24 Windows unresolved external symbols

JDK24_x86-64_windows

19:49:03  thrname_core.c
19:49:03  LINK: command "/cygdrive/c/users/jenkins/workspace/build_jdk24_x86-64_windows_personal/build/windows-x86_64-server-release/tools/link /nologo @CMakeFiles/jvm_redirect.dir/objects1.rsp /out:jvm.dll /implib:redirector_jvm.lib /pdb:/cygdrive/c/users/jenkins/workspace/build_jdk24_x86-64_windows_personal/build/windows-x86_64-server-release/vm/runtime/redirector/jvm.pdb /dll /version:0.0 /machine:x64 -subsystem:console -machine:AMD64 /NOLOGO /INCREMENTAL:NO -entry:_DllMainCRTStartup /debug /opt:icf /opt:ref /debug /DEF:jvm_redirect.def kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST:EMBED,ID=2" failed (exit code 96) with the following output:
19:49:03  jvm_redirect.def : error LNK2001: unresolved external symbol JVM_GetInheritedAccessControlContext
19:49:03  jvm_redirect.def : error LNK2001: unresolved external symbol JVM_GetStackAccessControlContext
19:49:03  redirector_jvm.lib : fatal error LNK1120: 2 unresolved externals
19:49:03  make[6]: *** [runtime/redirector/CMakeFiles/jvm_redirect.dir/build.make:138: runtime/redirector/jvm.dll] Error 255
19:49:03  make[6]: *** Deleting file 'runtime/redirector/jvm.dll'
19:49:03  make[5]: *** [CMakeFiles/Makefile2:7709: runtime/redirector/CMakeFiles/jvm_redirect.dir/all] Error 2

09:14:47  [ 49%] Building CXX object runtime/gc_structs/CMakeFiles/j9gcstructs.dir/VMThreadListIterator.cpp.obj
09:14:48  LINK: command "/cygdrive/c/users/jenkins/workspace/build_jdk24_x86-64_windows_personal/build/windows-x86_64-server-release/tools/link /nologo @CMakeFiles/jclse.dir/objects1.rsp /out:../jclse29.dll /implib:../lib/jclse29.lib /pdb:/cygdrive/c/users/jenkins/workspace/build_jdk24_x86-64_windows_personal/build/windows-x86_64-server-release/vm/runtime/jclse29.pdb /dll /version:0.0 /machine:x64 -subsystem:console -machine:AMD64 /NOLOGO /INCREMENTAL:NO -entry:_DllMainCRTStartup /debug /opt:icf /opt:ref /debug /DEF:jclse.def ../lib/j9hookable29.lib ../lib/j9zlib29.lib ../lib/j9util.lib ../lib/j9utilcore.lib ../lib/j9avl.lib ../lib/j9hashtable.lib ../lib/j9pool.lib ../lib/sunvmi.lib ../lib/omrsig.lib ../lib/j9thr29.lib Ws2_32.lib ../lib/omrutil.lib ../lib/j9hashtable.lib ../lib/omrutil.lib ../lib/j9avl.lib ../lib/j9pool.lib ../lib/j9util.lib ../lib/j9stackmap.lib ../lib/j9util.lib ../lib/j9stackmap.lib ../lib/j9simplepool.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST:EMBED,ID=2" failed (exit code 96) with the following output:
09:14:48  jclse.def : error LNK2001: unresolved external symbol Java_java_security_AccessController_getAccSnapshot
09:14:48  jclse.def : error LNK2001: unresolved external symbol Java_java_security_AccessController_getCallerPD
09:14:48  ../lib/jclse29.lib : fatal error LNK1120: 2 unresolved externals
09:14:48  make[6]: *** [runtime/jcl/CMakeFiles/jclse.dir/build.make:1202: runtime/jclse29.dll] Error 255

The failure was only seen on the Windows platform.

Signed-off-by: Jason Feng [email protected]

@pshipton pshipton merged commit 6d451b1 into eclipse-openj9:master Dec 12, 2024
2 checks passed
@JasonFengJ9 JasonFengJ9 deleted the jdk24win branch December 12, 2024 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants