使用“ make”命令构建openjdk9的问题

时间:2018-08-05 13:42:03

标签: java

os:mac os 10.13.6

我下载了openJDK9的所有源代码,并阅读了自述文件。我按照它告诉我的方法来构建openJDK9。

下面的命令是我配置构建过程的方式。

bash ./configure --with-target-bits=64 --with-freetype=/usr/local/Cellar/freetype/2.9 --enable-ccache --with-jvm-variants=server,client --with-boot-jdk-jvmargs="-Xlint:deprecation -Xlint:unchecked" --disable-zip-debug-info --disable-warnings-as-errors --with-debug-level=slowdebug 2>&1 | tee configure_mac_x64.log

然后,我键入一个“ make”命令,它在很短的时间内运行良好,直到出现错误。 enter image description here

以下是它的详细日志

Internal exceptions (10 events):
Event: 1.133 Thread 0x00007fe60e004800 Exception <a 'java/lang/NoSuchMethodError'{0x00000007a01b3d20}: java.lang.invoke.LambdaForm$Holder.identity_L(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;> (0x00000007a01b3d20) thrown at [../src/share/vm/interpreter/linkResolver.cpp, line 731]
Event: 1.139 Thread 0x00007fe60e004800 Exception <a 'java/lang/NoSuchMethodError'{0x00000007a01b6180}: java.lang.invoke.LambdaForm$Holder.zero_L(Ljava/lang/Object;)Ljava/lang/Object;> (0x00000007a01b6180) thrown at [../src/share/vm/interpreter/linkResolver.cpp, line 731]
Event: 1.141 Thread 0x00007fe60e004800 Exception <a 'java/lang/NoSuchMethodError'{0x00000007a01bae60}: java.lang.invoke.DirectMethodHandle$Holder.invokeSpecial(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;> (0x00000007a01bae60) thrown at [../src/share/vm/interpreter/linkResolver.cpp,
Event: 1.163 Thread 0x00007fe60e004800 Exception <a 'java/lang/NoSuchMethodError'{0x00000007a01cf170}: java.lang.invoke.DirectMethodHandle$Holder.invokeInterface(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)I> (0x00000007a01cf170) thrown at [../src/share/vm/interpreter/linkResolver.c
Event: 3.209 Thread 0x00007fe60e004800 Exception <a 'java/lang/NoSuchMethodError'{0x00000007a011c9f0}: java.lang.invoke.DirectMethodHandle$Holder.invokeInterface(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;> (0x00000007a011c9f0) thrown at [../src/share/vm/interpreter/linkResolver.cp
Event: 3.322 Thread 0x00007fe60e004800 Exception <a 'java/lang/NoSuchMethodError'{0x00000007a01c61c8}: java.lang.invoke.DirectMethodHandle$Holder.invokeStatic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V> (0x00000007a01c61c8) thrown at [../src/share/vm/interpreter/linkResolver.cpp,
Event: 3.330 Thread 0x00007fe60e004800 Exception <a 'java/lang/NoSuchMethodError'{0x00000007a01cc7e0}: method resolution failed> (0x00000007a01cc7e0) thrown at [../src/share/vm/prims/methodHandles.cpp, line 1256]
Event: 3.351 Thread 0x00007fe60e004800 Exception <a 'java/lang/NoSuchMethodError'{0x00000007a01ed340}: java.lang.invoke.DirectMethodHandle$Holder.invokeStatic(Ljava/lang/Object;Ljava/lang/Object;)I> (0x00000007a01ed340) thrown at [../src/share/vm/interpreter/linkResolver.cpp, line 731]
Event: 3.355 Thread 0x00007fe60e004800 Exception <a 'java/lang/NoSuchMethodError'{0x00000007a01f2bb8}: method resolution failed> (0x00000007a01f2bb8) thrown at [../src/share/vm/prims/methodHandles.cpp, line 1256]
Event: 3.359 Thread 0x00007fe60e004800 Exception <a 'java/lang/NoSuchMethodError'{0x00000007a01f9e28}: java.lang.invoke.DirectMethodHandle$Holder.invokeSpecial(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;> (0x00000007a01f9e28) th

我的问题是我不知道“ NoSuchMethodError”的实际含义是什么? 我将代码复制到第371行的linkResolver.cpp中,从上面获取了信息,它们是:

    // 5. method lookup failed
  if (resolved_method.is_null()) {
    ResourceMark rm(THREAD);
    THROW_MSG_CAUSE_(vmSymbols::java_lang_NoSuchMethodError(),
                    Method::name_and_sig_as_C_string(resolved_klass(),
                                                     link_info.name(),
                                                     link_info.signature()),
                    nested_exception, NULL);
  }

我是openJDK的新手,这对我来说很难找出这些问题。我在这里吸了很长时间。救命!谢谢!

0 个答案:

没有答案