An error will be reported when compiling the master on OrangeP5 Plus

David Holmes david.holmes at oracle.com
Mon Oct 23 02:11:59 UTC 2023


On 21/10/2023 10:18 am, wenshao wrote:
> The running results are as follows:
> 
> ```
> orangepi5plus:jdk:# ./build/linux-aarch64-server-release/jdk/bin/java 
> -Xlog:os+map=trace -Xlog:metaspace*=trace                                
> <master ✗>
> zsh: no matches found: -Xlog:metaspace*=trace
> orangepi5plus:jdk:# ./build/linux-aarch64-server-release/jdk/bin/java 
> -Xlog:os+map=trace -Xlog:metaspace*=trace -XX:-RandomizeClassSpaceLocation
> zsh: no matches found: -Xlog:metaspace*=trace
> ```

That looks like your shell was trying to process the * as a wildcard. 
Try using double-quotes to avoid that.

David
-----

>     ------------------------------------------------------------------
>     From:Thomas Stüfe <thomas.stuefe at gmail.com>
>     Sent At:2023 Oct. 17 (Tue.) 17:25
>     To:WEN Shaojin <shaojin.wensj at alibaba-inc.com>
>     Cc:David Holmes <david.holmes at oracle.com>;
>     hotspot-runtime-dev at openjdk.java.net
>     <hotspot-runtime-dev at openjdk.java.net>; stuefe <stuefe at openjdk.org>
>     Subject:Re: An error will be reported when compiling the master on
>     OrangeP5 Plus
> 
>     Hi Wemshao,
> 
>     could you please run
>     1  "java -Xlog:os+map=trace -Xlog:metaspace*=trace "
>     2  "java -Xlog:os+map=trace -Xlog:metaspace*=trace
>     -XX:-RandomizeClassSpaceLocation"
> 
>     on your box with the failing build? Since the JDK cannot be built
>     correctly, please run the java binary from the build directory
>     inside <build>/jdk/bin/java
> 
>     please send those two logs. Thank you!
> 
>     ..Thomas
> 
> 
>     On Sun, Oct 15, 2023 at 9:58 AM Thomas Stüfe
>     <thomas.stuefe at gmail.com <mailto:thomas.stuefe at gmail.com>> wrote:
>     Okay
> 
>     https://bugs.openjdk.org/browse/JDK-8318119
>     <https://bugs.openjdk.org/browse/JDK-8318119>
> 
>     On Sun, Oct 15, 2023 at 9:40 AM wenshao
>     <shaojin.wensj at alibaba-inc.com
>     <mailto:shaojin.wensj at alibaba-inc.com>> wrote:
>     After testing one by one, I found that this compilation error was
>     caused by PR #15041 ( https://github.com/openjdk/jdk/pull/15041
>     <https://github.com/openjdk/jdk/pull/15041> )
> 
>     ------------------------------------------------------------------
>     From:David Holmes <david.holmes at oracle.com
>     <mailto:david.holmes at oracle.com>>
>     Sent At:2023 Oct. 3 (Tue.) 10:36
>     To:WEN Shaojin <shaojin.wensj at alibaba-inc.com
>     <mailto:shaojin.wensj at alibaba-inc.com>>;
>     hotspot-runtime-dev at openjdk.java.net
>     <mailto:hotspot-runtime-dev at openjdk.java.net>
>     <hotspot-runtime-dev at openjdk.java.net
>     <mailto:hotspot-runtime-dev at openjdk.java.net>>
>     Cc:core-libs-dev <core-libs-dev at openjdk.org
>     <mailto:core-libs-dev at openjdk.org>>
>     Subject:Re: An error will be reported when compiling the master on
>     OrangeP5 Plus
> 
>     Moving to hotspot-runtime-dev as this is a VM crash with compressed
>     Oops.
> 
>     David
> 
>     On 1/10/2023 10:49 am, 温绍锦(高铁) wrote:
>      >
>      > An error will be reported when compiling the master on OrangeP5 Plus
>      >
>     (http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-5-plus.html <http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-5-plus.html> <http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-5-plus.html> <http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-5-plus.html%3E>), but the compilation of the 21u version is passed.
>      >
>      > The error message is as follows:
>      >
>      > ```
>      > Creating
>     support/demos/image/jfc/TransparentRuler/TransparentRuler.jar
>      > Creating support/classlist.jar
>      > /usr/bin/bash: line 15: 854142 Aborted
>      >
>     /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
>      > ERROR: Failed to generate link optimization data. This is likely a
>      > problem with the newly built JVM/JDK.
>      > #
>      > # A fatal error has been detected by the Java Runtime Environment:
>      > #
>      > #  Internal Error (macroAssembler_aarch64.cpp:4654), pid=854142,
>     tid=854143
>      > #  guarantee((shifted_base & 0xffff0000ffffffff) == 0) failed:
>      > compressed class base bad alignment
>      > #
>      > # JRE version:  (22.0) (build )
>      > # Java VM: OpenJDK 64-Bit Server VM (22-internal-adhoc.root.jdk,
>     mixed
>      > mode, sharing, tiered, compressed oops, compressed class ptrs, g1
>     gc,
>      > linux-aarch64)
>      > # Problematic frame:
>      > # V  [libjvm.so+0xae20d0]
>      > MacroAssembler::decode_klass_not_null(Register, Register)+0x250
>      > #
>      > # No core dump will be written. Core dumps have been disabled. To
>     enable
>      > core dumping, try "ulimit -c unlimited" before starting Java again
>      > #
>      > # An error report file with more information is saved as:
>      > # /root/git/jdk/make/hs_err_pid854142.log
>      > #
>      > #
>      > gmake[3]: *** [GenerateLinkOptData.gmk:71:
>      >
>     /root/git/jdk/build/linux-aarch64-server-release/support/link_opt/classlist] Error 134
>      > gmake[2]: *** [make/Main.gmk:649: generate-link-opt-data] Error 2
>      > gmake[2]: *** Waiting for unfinished jobs....
>      > ERROR: Build failed for target 'images' in configuration
>      > 'linux-aarch64-server-release' (exit code 2)
>      > Stopping javac server
>      > No indication of failed target found.
>      > HELP: Try searching the build log for '] Error'.
>      > HELP: Run 'make doctor' to diagnose build problems.
>      > make[1]: *** [/root/git/jdk/make/Init.gmk:323: main] Error 2
>      > make: *** [/root/git/jdk/make/Init.gmk:189: images] Error 2
>      > ```
>      >
>      >
>      >
>      >
>      > 


More information about the hotspot-runtime-dev mailing list