-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 25, 27
-
Component/s: hotspot
-
b05
-
riscv
-
linux
sh configure --with-debug-level=release --with-jvm-variants=client --enable-unlimited-crypto --with-native-debug-symbols=internal --with-boot-jdk=/home/openeuler/tools/boot-jdk --with-jtreg=/home/openeuler/tools/jtreg --with-gtest=/home/openeuler/tools/googletest
Error log:
```
====================================================
A new configuration has been successfully created in
/home/openeuler/jdk/build/linux-riscv64-client-release
using configure arguments '--with-debug-level=release --with-jvm-variants=client --enable-unlimited-crypto --with-native-debug-symbols=internal --with-boot-jdk=/home/openeuler/tools/boot-jdk --with-jtreg=/home/openeuler/tools/jtreg --with-gtest=/home/openeuler/tools/googletest'.
Configuration summary:
* Name: linux-riscv64-client-release
* Debug level: release
* HS debug level: product
* JVM variants: client
* JVM features: client: 'cds compiler1 dtrace epsilongc g1gc jfr jni-check jvmti management parallelgc serialgc services shenandoahgc vm-structs zgc'
* OpenJDK target: OS: linux, CPU architecture: riscv, address length: 64
* Version string: 27-internal-adhoc.openeuler.jdk (27-internal)
* Source date: 1768276392 (2026-01-13T03:53:12Z)
Tools summary:
* Boot JDK: openjdk version "27-testing" 2026-09-15 OpenJDK Runtime Environment (build 27-testing-builds.shipilev.net-openjdk-jdk-b6738-20260113-0047) OpenJDK 64-Bit Server VM (build 27-testing-builds.shipilev.net-openjdk-jdk-b6738-20260113-0047, mixed mode, sharing) (at /home/openeuler/tools/boot-jdk)
* Toolchain: gcc (GNU Compiler Collection)
* C Compiler: Version 14.3.1 (at /usr/bin/gcc)
* C++ Compiler: Version 14.3.1 (at /usr/bin/g++)
Build performance summary:
* Build jobs: 64
* Memory limit: 128787 MB
Building target 'images' in configuration 'linux-riscv64-client-release'
Compiling up to 1 files for BUILD_TOOLS_HOTSPOT
Compiling up to 9 files for BUILD_TOOLS_LANGTOOLS
Compiling up to 2 files for BUILD_JVMTI_TOOLS
Compiling 10 properties into resource bundles for jdk.jshell
Compiling 19 properties into resource bundles for jdk.javadoc
Compiling 15 properties into resource bundles for jdk.jdeps
Generating classes for compiler.properties launcher.properties
Generating FlagsEnum
Compiling 18 properties into resource bundles for jdk.compiler
Compiling up to 360 files for BUILD_jdk.compiler.interim
Compiling up to 145 files for BUILD_jdk.internal.md.interim
Compiling up to 215 files for BUILD_jdk.javadoc.interim
Compiling up to 17 files for BUILD_JAVAC_SERVER
Compiling up to 136 files for BUILD_java.compiler.interim
Creating support/modules_libs/java.base/client/libjvm.so from 1090 file(s)
Creating hotspot/variant-client/libjvm/libgtest/libgtest.a from 2 file(s)
Creating hotspot/variant-client/libjvm/gtest/libjvm.so from 208 file(s)
Creating hotspot/variant-client/libjvm/gtest/gtestLauncher from 1 file(s)
In file included from /home/openeuler/jdk/src/hotspot/cpu/riscv/vm_version_riscv.hpp:33,
from /home/openeuler/jdk/src/hotspot/share/runtime/vm_version.hpp:30,
from /home/openeuler/jdk/src/hotspot/share/runtime/orderAccess.hpp:29,
from /home/openeuler/jdk/src/hotspot/share/runtime/atomicAccess.hpp:32,
from /home/openeuler/jdk/src/hotspot/share/oops/oop.hpp:36,
from /home/openeuler/jdk/src/hotspot/share/runtime/handles.hpp:29,
from /home/openeuler/jdk/src/hotspot/share/classfile/vmClasses.hpp:30,
from /home/openeuler/jdk/src/hotspot/share/classfile/javaClasses.hpp:28,
from /home/openeuler/jdk/src/hotspot/share/classfile/javaClasses.inline.hpp:28,
from /home/openeuler/jdk/src/hotspot/share/precompiled/precompiled.hpp:32:
/home/openeuler/jdk/src/hotspot/cpu/riscv/vm_version_riscv.cpp: In static member function ‘static void VM_Version::common_initialize()’:
/home/openeuler/jdk/src/hotspot/share/runtime/globals_extension.hpp:35:32: error: ‘Flag_AlignVector_enum’ was not declared in this scope; did you mean ‘Flag_LogEvents_enum’?
35 | #define FLAG_MEMBER_ENUM(name) Flag_##name##_enum
| ^~~~~
/home/openeuler/jdk/src/hotspot/share/runtime/globals_extension.hpp:77:60: note: in expansion of macro ‘FLAG_MEMBER_ENUM’
77 | #define FLAG_IS_DEFAULT(name) (JVMFlag::is_default(FLAG_MEMBER_ENUM(name)))
| ^~~~~~~~~~~~~~~~
/home/openeuler/jdk/src/hotspot/cpu/riscv/vm_version_riscv.cpp:170:7: note: in expansion of macro ‘FLAG_IS_DEFAULT’
170 | if (FLAG_IS_DEFAULT(AlignVector)) {
| ^~~~~~~~~~~~~~~
/home/openeuler/jdk/src/hotspot/cpu/riscv/vm_version_riscv.cpp:171:22: error: ‘AlignVector’ was not declared in this scope; did you mean ‘unaligned_vector’?
171 | FLAG_SET_DEFAULT(AlignVector,
| ^~~~~~~~~~~
/home/openeuler/jdk/src/hotspot/share/runtime/globals_extension.hpp:82:41: note: in definition of macro ‘FLAG_SET_DEFAULT’
82 | #define FLAG_SET_DEFAULT(name, value) ((name) = (value))
| ^~~~
gmake[3]: *** [lib/CompileJvm.gmk:182: /home/openeuler/jdk/build/linux-riscv64-client-release/hotspot/variant-client/libjvm/objs/vm_version_riscv.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
Compiling up to 190 files for BUILD_TOOLS_JDK
Compiling up to 30 files for BUILD_JRTFS
Compiling up to 2 files for COMPILE_DEPEND
Creating support/modules_libs/java.base/jrt-fs.jar
Compiling 11 properties into resource bundles for java.logging
Compiling 4 properties into resource bundles for jdk.httpserver
Compiling 11 properties into resource bundles for jdk.management.agent
Compiling up to 2 files for BUILD_BREAKITERATOR_BASE
Compiling up to 2 files for BUILD_BREAKITERATOR_LD
Compiling 11 properties into resource bundles for jdk.jartool
Compiling 4 properties into resource bundles for jdk.jdi
Compiling 4 properties into resource bundles for jdk.jartool
Compiling 9 properties into resource bundles for jdk.jlink
Compiling 4 properties into resource bundles for jdk.jlink
Compiling 4 properties into resource bundles for jdk.jlink
Compiling 11 properties into resource bundles for java.base
Compiling 3 properties into resource bundles for java.base
Compiling 22 properties into resource bundles for java.base
Compiling 11 properties into resource bundles for java.base
gmake[2]: *** [make/Main.gmk:242: hotspot-client-libs] Error 2
gmake[2]: *** Waiting for unfinished jobs....
```
Error log:
```
====================================================
A new configuration has been successfully created in
/home/openeuler/jdk/build/linux-riscv64-client-release
using configure arguments '--with-debug-level=release --with-jvm-variants=client --enable-unlimited-crypto --with-native-debug-symbols=internal --with-boot-jdk=/home/openeuler/tools/boot-jdk --with-jtreg=/home/openeuler/tools/jtreg --with-gtest=/home/openeuler/tools/googletest'.
Configuration summary:
* Name: linux-riscv64-client-release
* Debug level: release
* HS debug level: product
* JVM variants: client
* JVM features: client: 'cds compiler1 dtrace epsilongc g1gc jfr jni-check jvmti management parallelgc serialgc services shenandoahgc vm-structs zgc'
* OpenJDK target: OS: linux, CPU architecture: riscv, address length: 64
* Version string: 27-internal-adhoc.openeuler.jdk (27-internal)
* Source date: 1768276392 (2026-01-13T03:53:12Z)
Tools summary:
* Boot JDK: openjdk version "27-testing" 2026-09-15 OpenJDK Runtime Environment (build 27-testing-builds.shipilev.net-openjdk-jdk-b6738-20260113-0047) OpenJDK 64-Bit Server VM (build 27-testing-builds.shipilev.net-openjdk-jdk-b6738-20260113-0047, mixed mode, sharing) (at /home/openeuler/tools/boot-jdk)
* Toolchain: gcc (GNU Compiler Collection)
* C Compiler: Version 14.3.1 (at /usr/bin/gcc)
* C++ Compiler: Version 14.3.1 (at /usr/bin/g++)
Build performance summary:
* Build jobs: 64
* Memory limit: 128787 MB
Building target 'images' in configuration 'linux-riscv64-client-release'
Compiling up to 1 files for BUILD_TOOLS_HOTSPOT
Compiling up to 9 files for BUILD_TOOLS_LANGTOOLS
Compiling up to 2 files for BUILD_JVMTI_TOOLS
Compiling 10 properties into resource bundles for jdk.jshell
Compiling 19 properties into resource bundles for jdk.javadoc
Compiling 15 properties into resource bundles for jdk.jdeps
Generating classes for compiler.properties launcher.properties
Generating FlagsEnum
Compiling 18 properties into resource bundles for jdk.compiler
Compiling up to 360 files for BUILD_jdk.compiler.interim
Compiling up to 145 files for BUILD_jdk.internal.md.interim
Compiling up to 215 files for BUILD_jdk.javadoc.interim
Compiling up to 17 files for BUILD_JAVAC_SERVER
Compiling up to 136 files for BUILD_java.compiler.interim
Creating support/modules_libs/java.base/client/libjvm.so from 1090 file(s)
Creating hotspot/variant-client/libjvm/libgtest/libgtest.a from 2 file(s)
Creating hotspot/variant-client/libjvm/gtest/libjvm.so from 208 file(s)
Creating hotspot/variant-client/libjvm/gtest/gtestLauncher from 1 file(s)
In file included from /home/openeuler/jdk/src/hotspot/cpu/riscv/vm_version_riscv.hpp:33,
from /home/openeuler/jdk/src/hotspot/share/runtime/vm_version.hpp:30,
from /home/openeuler/jdk/src/hotspot/share/runtime/orderAccess.hpp:29,
from /home/openeuler/jdk/src/hotspot/share/runtime/atomicAccess.hpp:32,
from /home/openeuler/jdk/src/hotspot/share/oops/oop.hpp:36,
from /home/openeuler/jdk/src/hotspot/share/runtime/handles.hpp:29,
from /home/openeuler/jdk/src/hotspot/share/classfile/vmClasses.hpp:30,
from /home/openeuler/jdk/src/hotspot/share/classfile/javaClasses.hpp:28,
from /home/openeuler/jdk/src/hotspot/share/classfile/javaClasses.inline.hpp:28,
from /home/openeuler/jdk/src/hotspot/share/precompiled/precompiled.hpp:32:
/home/openeuler/jdk/src/hotspot/cpu/riscv/vm_version_riscv.cpp: In static member function ‘static void VM_Version::common_initialize()’:
/home/openeuler/jdk/src/hotspot/share/runtime/globals_extension.hpp:35:32: error: ‘Flag_AlignVector_enum’ was not declared in this scope; did you mean ‘Flag_LogEvents_enum’?
35 | #define FLAG_MEMBER_ENUM(name) Flag_##name##_enum
| ^~~~~
/home/openeuler/jdk/src/hotspot/share/runtime/globals_extension.hpp:77:60: note: in expansion of macro ‘FLAG_MEMBER_ENUM’
77 | #define FLAG_IS_DEFAULT(name) (JVMFlag::is_default(FLAG_MEMBER_ENUM(name)))
| ^~~~~~~~~~~~~~~~
/home/openeuler/jdk/src/hotspot/cpu/riscv/vm_version_riscv.cpp:170:7: note: in expansion of macro ‘FLAG_IS_DEFAULT’
170 | if (FLAG_IS_DEFAULT(AlignVector)) {
| ^~~~~~~~~~~~~~~
/home/openeuler/jdk/src/hotspot/cpu/riscv/vm_version_riscv.cpp:171:22: error: ‘AlignVector’ was not declared in this scope; did you mean ‘unaligned_vector’?
171 | FLAG_SET_DEFAULT(AlignVector,
| ^~~~~~~~~~~
/home/openeuler/jdk/src/hotspot/share/runtime/globals_extension.hpp:82:41: note: in definition of macro ‘FLAG_SET_DEFAULT’
82 | #define FLAG_SET_DEFAULT(name, value) ((name) = (value))
| ^~~~
gmake[3]: *** [lib/CompileJvm.gmk:182: /home/openeuler/jdk/build/linux-riscv64-client-release/hotspot/variant-client/libjvm/objs/vm_version_riscv.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
Compiling up to 190 files for BUILD_TOOLS_JDK
Compiling up to 30 files for BUILD_JRTFS
Compiling up to 2 files for COMPILE_DEPEND
Creating support/modules_libs/java.base/jrt-fs.jar
Compiling 11 properties into resource bundles for java.logging
Compiling 4 properties into resource bundles for jdk.httpserver
Compiling 11 properties into resource bundles for jdk.management.agent
Compiling up to 2 files for BUILD_BREAKITERATOR_BASE
Compiling up to 2 files for BUILD_BREAKITERATOR_LD
Compiling 11 properties into resource bundles for jdk.jartool
Compiling 4 properties into resource bundles for jdk.jdi
Compiling 4 properties into resource bundles for jdk.jartool
Compiling 9 properties into resource bundles for jdk.jlink
Compiling 4 properties into resource bundles for jdk.jlink
Compiling 4 properties into resource bundles for jdk.jlink
Compiling 11 properties into resource bundles for java.base
Compiling 3 properties into resource bundles for java.base
Compiling 22 properties into resource bundles for java.base
Compiling 11 properties into resource bundles for java.base
gmake[2]: *** [make/Main.gmk:242: hotspot-client-libs] Error 2
gmake[2]: *** Waiting for unfinished jobs....
```
- relates to
-
JDK-8368732 RISC-V: Detect support for misaligned vector access via hwprobe
-
- Resolved
-
- links to
-
Commit(master)
openjdk/jdk/de6f35ef
-
Review(master)
openjdk/jdk25u-dev/146
-
Review(master)
openjdk/jdk26u/14
-
Review(master)
openjdk/jdk/29182