开发者社区> 问答> 正文

mac下执行make命令编译OpenJdk8无法加载iostream,希望那位大神能给予解答,死等

WARNING: You have the following ALT_ variables set: ALT_PARALLEL_COMPILE_JOBS=2 ALT_ variables are deprecated and will be ignored. Please clean your environment.

Building OpenJDK for target 'all' in configuration 'macosx-x86_64-normal-server-release'

Starting langtools

Compiling 2 files for BUILD_TOOLS Compiling 32 properties into resource bundles Compiling 782 files for BUILD_BOOTSTRAP_LANGTOOLS ?: ???????????????? API? ?: ??????, ??? -Xlint:deprecation ????? Creating langtools/dist/bootstrap/lib/javac.jar Updating langtools/dist/lib/src.zip Compiling 785 files for BUILD_FULL_JAVAC ?: ???????????????? API? ?: ??????, ??? -Xlint:deprecation ????? Creating langtools/dist/lib/classes.jar

Finished langtools (build time 00:00:21)

Starting hotspot

make[2]: warning: -jN forced in submake: disabling jobserver mode. INFO: ENABLE_FULL_DEBUG_SYMBOLS=1 INFO: ENABLE_FULL_DEBUG_SYMBOLS=1 INFO: ENABLE_FULL_DEBUG_SYMBOLS=1 INFO: ENABLE_FULL_DEBUG_SYMBOLS=1 INFO: ENABLE_FULL_DEBUG_SYMBOLS=1 Creating Makefile ... Creating directory list ../shared_dirs.lst Creating flags.make ... Creating flags_vm.make ... Creating vm.make ... Creating adlc.make ... Creating jvmti.make ... Creating trace.make ... Creating sa.make ... Creating dtrace.make ... INFO: ENABLE_FULL_DEBUG_SYMBOLS=1 Creating Makefile ... Creating flags.make ... Creating flags_vm.make ... Creating vm.make ... Creating adlc.make ... Creating jvmti.make ... Creating trace.make ... Creating sa.make ... Creating dtrace.make ... INFO: ENABLE_FULL_DEBUG_SYMBOLS=1 Creating Makefile ... Creating flags.make ... Creating flags_vm.make ... Creating vm.make ... Creating adlc.make ... Creating jvmti.make ... Creating trace.make ... Creating sa.make ... Creating dtrace.make ... INFO: ENABLE_FULL_DEBUG_SYMBOLS=1 Creating Makefile ... Creating flags.make ... Creating flags_vm.make ... Creating vm.make ... Creating adlc.make ... Creating jvmti.make ... Creating trace.make ... Creating sa.make ... Creating dtrace.make ... Compiling /Users/zt/Source_code/JDK/openjdk-jdk8u-jdk8u/hotspot/src/share/vm/adlc/adlparse.cpp Compiling /Users/zt/Source_code/JDK/openjdk-jdk8u-jdk8u/hotspot/src/share/vm/adlc/archDesc.cpp Compiling /Users/zt/Source_code/JDK/openjdk-jdk8u-jdk8u/hotspot/src/share/vm/adlc/arena.cpp Compiling /Users/zt/Source_code/JDK/openjdk-jdk8u-jdk8u/hotspot/src/share/vm/adlc/dfa.cpp warningwarning: : include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]

warningwarning: : include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]

Compiling /Users/zt/Source_code/JDK/openjdk-jdk8u-jdk8u/hotspot/src/share/vm/adlc/dict2.cpp warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found] In file included from /Users/zt/Source_code/JDK/openjdk-jdk8u-jdk8u/hotspot/src/share/vm/adlc/arena.cpp:25: /Users/zt/Source_code/JDK/openjdk-jdk8u-jdk8u/hotspot/src/share/vm/adlc/adlc.hpp:35:10: fatal error: 'iostream' file not found In file included from /Users/zt/Source_code/JDK/openjdk-jdk8u-jdk8u/hotspot/src/share/vm/adlc/dfa.cpp:26: /Users/zt/Source_code/JDK/openjdk-jdk8u-jdk8u/hotspot/src/share/vm/adlc/adlc.hpp:35:10: fatal error#include ^~~~~~~~~~: 'iostream' file not found

#include ^~~~~~~~~~ In file included from /Users/zt/Source_code/JDK/openjdk-jdk8u-jdk8u/hotspot/src/share/vm/adlc/archDesc.cpp:27: /Users/zt/Source_code/JDK/openjdk-jdk8u-jdk8u/hotspot/src/share/vm/adlc/adlc.hpp:35:10: fatal error: 'iostream' file not found #include ^~~~~~~~~~ In file included from /Users/zt/Source_code/JDK/openjdk-jdk8u-jdk8u/hotspot/src/share/vm/adlc/adlparse.cpp:27: /Users/zt/Source_code/JDK/openjdk-jdk8u-jdk8u/hotspot/src/share/vm/adlc/adlc.hpp:35:10: fatal error: 'iostream' file not found #include ^~~~~~~~~~ In file included from /Users/zt/Source_code/JDK/openjdk-jdk8u-jdk8u/hotspot/src/share/vm/adlc/dict2.cpp:27: /Users/zt/Source_code/JDK/openjdk-jdk8u-jdk8u/hotspot/src/share/vm/adlc/adlc.hpp:35:10: fatal error: 'iostream' file not found #include ^~~~~~~~~~ 1 warning and 1 error generated. 1 warning and 1 error generated. make[6]: *** [../generated/adfiles/arena.o] Error 1 make[6]: *** Waiting for unfinished jobs.... 1 warning and 1 error generated. make[6]: *** [../generated/adfiles/dict2.o] Error 1 1 warning and 1 error generated. make[6]: *** [../generated/adfiles/dfa.o] Error 1 make[6]: *** [../generated/adfiles/archDesc.o] Error 1 1 warning and 1 error generated. make[6]: *** [../generated/adfiles/adlparse.o] Error 1 make[5]: *** [ad_stuff] Error 2 make[4]: *** [product] Error 2 make[3]: *** [generic_build2] Error 2 make[2]: *** [product] Error 2 make[1]: *** [/Users/zt/Source_code/JDK/openjdk-jdk8u-jdk8u/build/macosx-x86_64-normal-server-release/hotspot/_hotspot.timestamp] Error 2 make: *** [hotspot-only] Error 2

展开
收起
诡摩 2019-10-25 18:48:07 2614 0
2 条回答
写回答
取消 提交回答
  • https://blog.csdn.net/quantum7/article/details/10848635

    2022-03-23 13:07:23
    赞同 展开评论 打赏
  • 老铁,问题解决了吗

    2020-04-06 19:01:42
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
15分钟打造你自己的小程序更新版 立即下载
小程序 大世界 立即下载
《15分钟打造你自己的小程序》 立即下载