link error: unresolved external symbol "int __cdecl convert_to_unicode(char const *,wchar_t * *)
Vitaly Provodin
vitaly.provodin at jetbrains.com
Wed Jun 16 23:47:49 UTC 2021
Hi all,
Building OpenJDK on Windows I am faced with the following error
---------------------------8<---------------------------
os_windows.obj : error LNK2019: unresolved external symbol "int __cdecl convert_to_unicode(char const *,wchar_t * *)" (?convert_to_unicode@@YAHPEBDPEAPEA_W at Z) referenced in function "public: static void __cdecl os::set_native_thread_name(char const *)" (?set_native_thread_name at os@@SAXPEBD at Z)
c:\buildagent\work\d0555747f6bd5c6\build\windows-x86_64-server-release\support\modules_libs\java.base\server\jvm.dll : fatal error LNK1120: 1 unresolved externals
make[3]: *** [lib/CompileJvm.gmk:144: /cygdrive/c/buildagent/work/d0555747f6bd5c6/build/windows-x86_64-server-release/support/modules_libs/java.base/server/jvm.dll] Error 1
make[2]: *** [make/Main.gmk:252: hotspot-server-libs] Error 2
make[2]: *** Waiting for unfinished jobs....
ERROR: Build failed for targets 'clean images test-image' in configuration 'windows-x86_64-server-release' (exit code 2)
---------------------------8<---------------------------
The issue was integrated with the patch https://github.com/openjdk/jdk/commit/9f3c7e74ff00a7550742ed8b9d6671c2d4bb6041 that fixes https://bugs.openjdk.java.net/browse/JDK-8238649 Call new Win32 API SetThreadDescription in os::set_native_thread_name
After reverting this commit the build completes successfully
Note Visual Studio 2019 Developer Command Prompt v16.8.5 is used for building
Is this issue actual for me only? - could not find any mentions about it (in maillists, JBS)
Could you please advice how it can be resolved?
Thanks in advance,
Vitaly
More information about the build-dev
mailing list