build openjdk for windows 10报告错误

dpiehjr4  于 2021-06-26  发布在  Java
关注(0)|答案(0)|浏览(217)

编译器环境:
辛温64
visual studio 2017年
构建源代码:openjdk17
启动jdk:
openjdk版本“15”2020-09-15
openjdk运行时环境(构建15+36-1562)
openjdk 64位服务器虚拟机(构建15+36-1562,混合模式,共享)
执行命令:
bash配置
制作图像
错误消息如下:

$ make images
Building target 'images' in configuration 'windows-x86_64-server-release'
g:\buildjdk\openjdk\src\hotspot\share\compiler\methodMatcher.cpp(268): error C2220: warning treated as error - no 'object' file generated
g:\buildjdk\openjdk\src\hotspot\share\compiler\methodMatcher.cpp(268): warning C4778: 'sscanf' : unterminated format string '%255[*\x01\x02\x03\x04\x05\x06\a\b\n\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f!\"#$%&'*+,-0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\\^_`abcdefghijklmnopqrstuvwxyz{|}~\xe2\x82\xac\xe4\xba\x97\xe5\x84\x8e\xe5\x8e\x97%n'
g:\buildjdk\openjdk\src\hotspot\share\compiler\methodMatcher.cpp(268): warning C4474: 'sscanf' : too many arguments passed for format string
g:\buildjdk\openjdk\src\hotspot\share\compiler\methodMatcher.cpp(268): note: placeholders and their parameters expect 1 variadic arguments, but 3 were provided
g:\buildjdk\openjdk\src\hotspot\share\compiler\methodMatcher.cpp(318): warning C4778: 'sscanf' : unterminated format string '%1022[[);/\x01\x02\x03\x04\x05\x06\a\b\n\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15make[3]:***[lib/CompileJvm.gmk:143: /cygdrive/g/buildjdk/openjdk/build/windows-x86_64-server-release/hotspot/variant-server/libjvm/objs/methodMatcher.obj] Error 1
\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f!\"#$%&'*+,-0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\\^_`abcdefghijklmnopqrstuvwxyz{|}~\xe2\x82\xac\xe4\xba\x97\xe5\x84\x8e\xe5\x8e%n'
g:\buildjdk\openjdk\src\hotspot\share\compiler\methodMatcher.cpp(318): warning C4474: 'sscanf' : too many arguments passed for format string
g:\buildjdk\openjdk\src\hotspot\share\compiler\methodMatcher.cpp(318): note: placeholders and their parameters expect 0 variadic arguments, but 2 were provided
make[2]:***[make/Main.gmk:252: hotspot-server-libs] Error 2
make[2]:***Waiting for unfinished jobs....

ERROR: Build failed for target 'images' in configuration 'windows-x86_64-server-release' (exit code 2)

=== Output from failing command(s) repeated here ===

* For target hotspot_variant-server_libjvm_objs_methodMatcher.obj:

methodMatcher.cpp
g:\buildjdk\openjdk\src\hotspot\share\compiler\methodMatcher.cpp(268): error C2220: warning treated as error - no 'object' file generated
g:\buildjdk\openjdk\src\hotspot\share\compiler\methodMatcher.cpp(268): warning C4778: 'sscanf' : unterminated format string '%255[*\x01\x02\x03\x04\x05\x06\a\b\n\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f!\"#$%&'*+,-0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\\^_`abcdefghijklmnopqrstuvwxyz{|}~\xe2\x82\xac\xe4\xba\x97\xe5\x84\x8e\xe5\x8e\x97%n'
g:\buildjdk\openjdk\src\hotspot\share\compiler\methodMatcher.cpp(268): warning C4474: 'sscanf' : too many arguments passed for format string
g:\buildjdk\openjdk\src\hotspot\share\compiler\methodMatcher.cpp(268): note: placeholders and their parameters expect 1 variadic arguments, but 3 were provided
g:\buildjdk\openjdk\src\hotspot\share\compiler\methodMatcher.cpp(318): warning C4778: 'sscanf' : unterminated format string '%1022[[);/\x01\x02\x03\x04\x05\x06\a\b\n\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f!\"#$%&'*+,-0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\\^_`abcdefghijklmnopqrstuvwxyz{|}~\xe2\x82\xac\xe4\xba\x97\xe5\x84\x8e\xe5\x8e%n'
g:\buildjdk\openjdk\src\hotspot\share\compiler\methodMatcher.cpp(318): warning C4474: 'sscanf' : too many arguments passed for format string
g:\buildjdk\openjdk\src\hotspot\share\compiler\methodMatcher.cpp(318): note: placeholders and their parameters expect 0 variadic arguments, but 2 were provided

* All command lines available in /cygdrive/g/buildjdk/openjdk/build/windows-x86_64-server-release/make-support/failure-logs.

=== End of repeated output ===

No indication of failed target found.
Hint: Try searching the build log for '] Error'.
Hint: See doc/building.html#troubleshooting for assistance.

make[1]:***[/cygdrive/g/buildJDK/openjdk/make/Init.gmk:315: main] Error 2
make:***[/cygdrive/g/buildJDK/openjdk/make/Init.gmk:186: images] Error 2

热点\u variant-server \u libjvm \u objs \u methodmatcher.obj.cmdline

/cygdrive/g/buildjdk/openjdk/build/windows-x86_64-server-release/fixpath exec /cygdrive/c/progra~2/micros~2/2017/profes~1/vc/tools/msvc/1416~1.270/bin/hostx86/x64/cl.exe -showIncludes -Fp/cygdrive/g/buildjdk/openjdk/build/windows-x86_64-server-release/hotspot/variant-server/libjvm/objs/BUILD_LIBJVM.pch -Yuprecompiled.hpp -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DNOMINMAX -DWIN32_LEAN_AND_MEAN -nologo -MD -MP -std:c++14 -DLIBC=default -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_ -W3 -pathmap:g:\buildjdk\openjdk=s -pathmap:g:\buildjdk\openjdk=s -experimental:deterministic -wd5048 -DVM_LITTLE_ENDIAN -D_LP64=1 -DPRODUCT -DTARGET_ARCH_x86 -DINCLUDE_SUFFIX_OS=_windows -DINCLUDE_SUFFIX_CPU=_x86 -DINCLUDE_SUFFIX_COMPILER=_visCPP -DTARGET_COMPILER_visCPP -DAMD64 -DHOTSPOT_LIB_ARCH='"amd64"' -DCOMPILER1 -DCOMPILER2 -I/cygdrive/g/buildjdk/openjdk/build/windows-x86_64-server-release/hotspot/variant-server/gensrc/adfiles -I/cygdrive/g/buildjdk/openjdk/src/hotspot/share -I/cygdrive/g/buildjdk/openjdk/src/hotspot/os/windows -I/cygdrive/g/buildjdk/openjdk/src/hotspot/cpu/x86 -I/cygdrive/g/buildjdk/openjdk/src/hotspot/os_cpu/windows_x86 -I/cygdrive/g/buildjdk/openjdk/build/windows-x86_64-server-release/hotspot/variant-server/gensrc -I/cygdrive/g/buildjdk/openjdk/src/hotspot/share/precompiled -I/cygdrive/g/buildjdk/openjdk/src/hotspot/share/include -I/cygdrive/g/buildjdk/openjdk/src/hotspot/os/windows/include -I/cygdrive/g/buildjdk/openjdk/build/windows-x86_64-server-release/support/modules_include/java.base -I/cygdrive/g/buildjdk/openjdk/build/windows-x86_64-server-release/support/modules_include/java.base/win32 -I/cygdrive/g/buildjdk/openjdk/src/java.base/share/native/libjimage -I/cygdrive/g/buildjdk/openjdk/build/windows-x86_64-server-release/hotspot/variant-server/gensrc/adfiles -I/cygdrive/g/buildjdk/openjdk/src/hotspot/share -I/cygdrive/g/buildjdk/openjdk/src/hotspot/os/windows -I/cygdrive/g/buildjdk/openjdk/src/hotspot/cpu/x86 -I/cygdrive/g/buildjdk/openjdk/src/hotspot/os_cpu/windows_x86 -I/cygdrive/g/buildjdk/openjdk/build/windows-x86_64-server-release/hotspot/variant-server/gensrc -Z7 -wd4800 -wd4307 -wd4100 -wd4127 -wd4146 -wd4201 -wd4244 -wd4291 -wd4351 -wd4511 -wd4512 -wd4514 -wd4624 -wd4996 -WX -I/cygdrive/c/progra~2/micros~2/2017/profes~1/vc/tools/msvc/1416~1.270/atlmfc/include -I/cygdrive/c/progra~2/micros~2/2017/profes~1/vc/tools/msvc/1416~1.270/include -I/cygdrive/c/progra~2/wi3cf2~1/10/include/100177~1.0/ucrt -I/cygdrive/c/progra~2/wi3cf2~1/10/include/100177~1.0/shared -I/cygdrive/c/progra~2/wi3cf2~1/10/include/100177~1.0/um -I/cygdrive/c/progra~2/wi3cf2~1/10/include/100177~1.0/winrt -I/cygdrive/c/progra~2/wi3cf2~1/10/include/100177~1.0/cppwinrt -O2 -Oy- -c -Fo/cygdrive/g/buildjdk/openjdk/build/windows-x86_64-server-release/hotspot/variant-server/libjvm/objs/methodMatcher.obj /cygdrive/g/buildjdk/openjdk/src/hotspot/share/compiler/methodMatcher.cpp

热点\u variant-server \u libjvm \u objs \u methodmatcher.obj.log

methodMatcher.cpp
Note: including file: g:\buildjdk\openjdk\src\hotspot\share\classfile/symbolTable.hpp
Note: including file:  g:\buildjdk\openjdk\src\hotspot\share\utilities/tableStatistics.hpp
Note: including file: g:\buildjdk\openjdk\src\hotspot\share\compiler/methodMatcher.hpp
Note: including file: g:\buildjdk\openjdk\src\hotspot\share\memory/oopFactory.hpp
g:\buildjdk\openjdk\src\hotspot\share\compiler\methodMatcher.cpp(268): error C2220: warning treated as error - no 'object' file generated
g:\buildjdk\openjdk\src\hotspot\share\compiler\methodMatcher.cpp(268): warning C4778: 'sscanf' : unterminated format string '%255[*\x01\x02\x03\x04\x05\x06\a\b\n\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f!\"#$%&'*+,-0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\\^_`abcdefghijklmnopqrstuvwxyz{|}~\xe2\x82\xac\xe4\xba\x97\xe5\x84\x8e\xe5\x8e\x97%n'
g:\buildjdk\openjdk\src\hotspot\share\compiler\methodMatcher.cpp(268): warning C4474: 'sscanf' : too many arguments passed for format string
g:\buildjdk\openjdk\src\hotspot\share\compiler\methodMatcher.cpp(268): note: placeholders and their parameters expect 1 variadic arguments, but 3 were provided
g:\buildjdk\openjdk\src\hotspot\share\compiler\methodMatcher.cpp(318): warning C4778: 'sscanf' : unterminated format string '%1022[[);/\x01\x02\x03\x04\x05\x06\a\b\n\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f!\"#$%&'*+,-0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\\^_`abcdefghijklmnopqrstuvwxyz{|}~\xe2\x82\xac\xe4\xba\x97\xe5\x84\x8e\xe5\x8e%n'
g:\buildjdk\openjdk\src\hotspot\share\compiler\methodMatcher.cpp(318): warning C4474: 'sscanf' : too many arguments passed for format string
g:\buildjdk\openjdk\src\hotspot\share\compiler\methodMatcher.cpp(318): note: placeholders and their parameters expect 0 variadic arguments, but 2 were provided

如何处理错误消息,谢谢。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题