赞
踩
现象:cpp文件编译报错
- === Output from failing command(s) repeated here ===
- * For target hotspot_variant-server_libjvm_objs_arguments.o:
- /Users/yanmingyang/jdk12/jdk12-06222165c35f/src/hotspot/share/runtime/arguments.cpp:1452:35: error: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Werror,-Wstring-compare]
- if (old_java_vendor_url_bug != DEFAULT_VENDOR_URL_BUG) {
- ^ ~~~~~~~~~~~~~~~~~~~~~~
- 1 error generated.
-
- * All command lines available in /Users/yanmingyang/jdk12/jdk12-06222165c35f/build/macosx-x86_64-server-release/make-support/failure-logs.
- === End of repeated output ===
解决方案:
参照jdk源码目录下build.html Problems with the Build Environment 章节的描述,在执行 bash configure时添加参数 --disable-warnings-as-errors,去除由于警告而造成错误终止编译。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。