<div class="__aliyun_email_body_block"><div  style="line-height:1.7;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#0070c0;"><div  style="clear:both;"><br ></div><div  style="clear:both;"><span >The results of running the first command are in the attached trace.txt</span></div><div  style="clear:both;">```</div><div  style="clear:both;"><span ><span >./build/linux-aarch64-server-release/jdk/bin/java -Xlog:os+map=trace -Xlog:"metaspace*=trace"  </span></span></div><div  style="clear:both;">```</div><div  style="clear:both;"><br ></div><div  style="clear:both;"><span >Running the second command reports an error:</span></div><div  style="clear:both;"><span >```</span><div  style="clear:both;">orangepi5plus:jdk:# ./build/linux-aarch64-server-release/jdk/bin/java -Xlog:os+map=trace -Xlog:"metaspace*=trace" -XX:-RandomizeClassSpaceLocation</div><div  style="clear:both;">Error: VM option 'RandomizeClassSpaceLocation' is develop and is available only in debug version of VM.</div><div  style="clear:both;">Error: Could not create the Java Virtual Machine.</div><div  style="clear:both;">Error: A fatal exception has occurred. Program will exit.</div><span >```</span></div><blockquote  style="margin-right:.0px;margin-top:.0px;margin-bottom:.0px;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;"><div  style="clear:both;">------------------------------------------------------------------</div><div  style="clear:both;">From:David Holmes <david.holmes@oracle.com></div><div  style="clear:both;">Sent At:2023 Oct. 23 (Mon.) 10:12</div><div  style="clear:both;">To:WEN Shaojin <shaojin.wensj@alibaba-inc.com>; "Thomas Stüfe" <thomas.stuefe@gmail.com></div><div  style="clear:both;">Cc:stuefe <stuefe@openjdk.org>; hotspot-runtime-dev <hotspot-runtime-dev@openjdk.org></div><div  style="clear:both;">Subject:Re: An error will be reported when compiling the master on OrangeP5 Plus</div><div  style="clear:both;"><br ></div>On 21/10/2023 10:18 am, wenshao wrote:<br >> The running results are as follows:<br >> <br >> ```<br >> orangepi5plus:jdk:# ./build/linux-aarch64-server-release/jdk/bin/java <br >> -Xlog:os+map=trace -Xlog:metaspace*=trace                                <br >> <master ✗><br >> zsh: no matches found: -Xlog:metaspace*=trace<br >> orangepi5plus:jdk:# ./build/linux-aarch64-server-release/jdk/bin/java <br >> -Xlog:os+map=trace -Xlog:metaspace*=trace -XX:-RandomizeClassSpaceLocation<br >> zsh: no matches found: -Xlog:metaspace*=trace<br >> ```<br ><br >That looks like your shell was trying to process the * as a wildcard. <br >Try using double-quotes to avoid that.<br ><br >David<br >-----<br ><br >>     ------------------------------------------------------------------<br >>     From:Thomas Stüfe <thomas.stuefe@gmail.com><br >>     Sent At:2023 Oct. 17 (Tue.) 17:25<br >>     To:WEN Shaojin <shaojin.wensj@alibaba-inc.com><br >>     Cc:David Holmes <david.holmes@oracle.com>;<br >>     hotspot-runtime-dev@openjdk.java.net<br >>     <hotspot-runtime-dev@openjdk.java.net>; stuefe <stuefe@openjdk.org><br >>     Subject:Re: An error will be reported when compiling the master on<br >>     OrangeP5 Plus<br >> <br >>     Hi Wemshao,<br >> <br >>     could you please run<br >>     1  "java -Xlog:os+map=trace -Xlog:metaspace*=trace "<br >>     2  "java -Xlog:os+map=trace -Xlog:metaspace*=trace<br >>     -XX:-RandomizeClassSpaceLocation"<br >> <br >>     on your box with the failing build? Since the JDK cannot be built<br >>     correctly, please run the java binary from the build directory<br >>     inside <build>/jdk/bin/java<br >> <br >>     please send those two logs. Thank you!<br >> <br >>     ..Thomas<br >> <br >> <br >>     On Sun, Oct 15, 2023 at 9:58 AM Thomas Stüfe<br >>     <thomas.stuefe@gmail.com <mailto:thomas.stuefe@gmail.com>> wrote:<br >>     Okay<br >> <br >>     <a  href="https://bugs.openjdk.org/browse/JDK-8318119" target="_blank">https://bugs.openjdk.org/browse/JDK-8318119</a><br >>     <<a  href="https://bugs.openjdk.org/browse/JDK-8318119>" target="_blank">https://bugs.openjdk.org/browse/JDK-8318119></a><br >> <br >>     On Sun, Oct 15, 2023 at 9:40 AM wenshao<br >>     <shaojin.wensj@alibaba-inc.com<br >>     <mailto:shaojin.wensj@alibaba-inc.com>> wrote:<br >>     After testing one by one, I found that this compilation error was<br >>     caused by PR #15041 ( <a  href="https://github.com/openjdk/jdk/pull/15041" target="_blank">https://github.com/openjdk/jdk/pull/15041</a><br >>     <<a  href="https://github.com/openjdk/jdk/pull/15041>" target="_blank">https://github.com/openjdk/jdk/pull/15041></a> )<br >> <br >>     ------------------------------------------------------------------<br >>     From:David Holmes <david.holmes@oracle.com<br >>     <mailto:david.holmes@oracle.com>><br >>     Sent At:2023 Oct. 3 (Tue.) 10:36<br >>     To:WEN Shaojin <shaojin.wensj@alibaba-inc.com<br >>     <mailto:shaojin.wensj@alibaba-inc.com>>;<br >>     hotspot-runtime-dev@openjdk.java.net<br >>     <mailto:hotspot-runtime-dev@openjdk.java.net><br >>     <hotspot-runtime-dev@openjdk.java.net<br >>     <mailto:hotspot-runtime-dev@openjdk.java.net>><br >>     Cc:core-libs-dev <core-libs-dev@openjdk.org<br >>     <mailto:core-libs-dev@openjdk.org>><br >>     Subject:Re: An error will be reported when compiling the master on<br >>     OrangeP5 Plus<br >> <br >>     Moving to hotspot-runtime-dev as this is a VM crash with compressed<br >>     Oops.<br >> <br >>     David<br >> <br >>     On 1/10/2023 10:49 am, 温绍锦(高铁) wrote:<br >>      ><br >>      > An error will be reported when compiling the master on OrangeP5 Plus<br >>      ><br >>     (<a  href="http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-5-plus.html" target="_blank">http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-5-plus.html</a> <<a  href="http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-5-plus.html>" target="_blank">http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-5-plus.html></a> <<a  href="http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-5-plus.html>" target="_blank">http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-5-plus.html></a> <<a  href="http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-5-plus.html%3E>" target="_blank">http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-5-plus.html%3E></a>), but the compilation of the 21u version is passed.<br >>      ><br >>      > The error message is as follows:<br >>      ><br >>      > ```<br >>      > Creating<br >>     support/demos/image/jfc/TransparentRuler/TransparentRuler.jar<br >>      > Creating support/classlist.jar<br >>      > /usr/bin/bash: line 15: 854142 Aborted<br >>      ><br >>     /root/git/jdk/build/linux-aarch64-server-release/support/interim-image/bin/java -XX:DumpLoadedClassList=/root/git/jdk/build/linux-aarch64-server-release/support/link_opt/classlist.raw.2 -XX:SharedClassListFile=/root/git/jdk/build/linux-aarch64-server-release/support/link_opt/classlist.interim -XX:SharedArchiveFile=/root/git/jdk/build/linux-aarch64-server-release/support/link_opt/classlist.jsa -Djava.lang.invoke.MethodHandle.TRACE_RESOLVE=true -Duser.language=en -Duser.country=US --module-path /root/git/jdk/build/linux-aarch64-server-release/support/classlist.jar -cp /root/git/jdk/build/linux-aarch64-server-release/support/classlist.jar build.tools.classlist.HelloClasslist 2> /root/git/jdk/build/linux-aarch64-server-release/support/link_opt/stderr > /root/git/jdk/build/linux-aarch64-server-release/support/link_opt/default_jli_trace.txt<br >>      > ERROR: Failed to generate link optimization data. This is likely a<br >>      > problem with the newly built JVM/JDK.<br >>      > #<br >>      > # A fatal error has been detected by the Java Runtime Environment:<br >>      > #<br >>      > #  Internal Error (macroAssembler_aarch64.cpp:4654), pid=854142,<br >>     tid=854143<br >>      > #  guarantee((shifted_base & 0xffff0000ffffffff) == 0) failed:<br >>      > compressed class base bad alignment<br >>      > #<br >>      > # JRE version:  (22.0) (build )<br >>      > # Java VM: OpenJDK 64-Bit Server VM (22-internal-adhoc.root.jdk,<br >>     mixed<br >>      > mode, sharing, tiered, compressed oops, compressed class ptrs, g1<br >>     gc,<br >>      > linux-aarch64)<br >>      > # Problematic frame:<br >>      > # V  [libjvm.so+0xae20d0]<br >>      > MacroAssembler::decode_klass_not_null(Register, Register)+0x250<br >>      > #<br >>      > # No core dump will be written. Core dumps have been disabled. To<br >>     enable<br >>      > core dumping, try "ulimit -c unlimited" before starting Java again<br >>      > #<br >>      > # An error report file with more information is saved as:<br >>      > # /root/git/jdk/make/hs_err_pid854142.log<br >>      > #<br >>      > #<br >>      > gmake[3]: *** [GenerateLinkOptData.gmk:71:<br >>      ><br >>     /root/git/jdk/build/linux-aarch64-server-release/support/link_opt/classlist] Error 134<br >>      > gmake[2]: *** [make/Main.gmk:649: generate-link-opt-data] Error 2<br >>      > gmake[2]: *** Waiting for unfinished jobs....<br >>      > ERROR: Build failed for target 'images' in configuration<br >>      > 'linux-aarch64-server-release' (exit code 2)<br >>      > Stopping javac server<br >>      > No indication of failed target found.<br >>      > HELP: Try searching the build log for '] Error'.<br >>      > HELP: Run 'make doctor' to diagnose build problems.<br >>      > make[1]: *** [/root/git/jdk/make/Init.gmk:323: main] Error 2<br >>      > make: *** [/root/git/jdk/make/Init.gmk:189: images] Error 2<br >>      > ```<br >>      ><br >>      ><br >>      ><br >>      ><br >>      > </blockquote></div></div>