sendaoYan / riscv-port-jdk8u-ysd

https://openjdk.org/projects/riscv-port
GNU General Public License v2.0
0 stars 0 forks source link

[riscv64-8u]abstractInterpreter.hpp:232:50: error: ‘is_Java_byte_ordering_different’ is not a member of ‘Bytes’ #8

Open sendaoYan opened 6 days ago

sendaoYan commented 6 days ago
/usr/bin/g++ -DLINUX -D_GNU_SOURCE -DRISCV64 -DPRODUCT -I. -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/prims -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/precompiled -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/cpu/riscv/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os_cpu/linux_riscv/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os/linux/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os/posix/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"25.412-b00\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"yansendao\"" -DHOTSPOT_LIB_ARCH=\"riscv64\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\""  -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_riscv -DTARGET_ARCH_MODEL_riscv -DTARGET_OS_ARCH_linux_riscv -DTARGET_OS_ARCH_MODEL_linux_riscv64 -DTARGET_COMPILER_gcc -DINCLUDE_JFR=1 -DCOMPILER2 -DCOMPILER1 -fPIC -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden  -pipe -fno-strict-aliasing  -fno-omit-frame-pointer -O3  -g -DVM_LITTLE_ENDIAN -D_LP64=1 -Werror -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value -Wformat=2 -Wreturn-type   -fstack-protector  -fno-delete-null-pointer-checks -fno-lifetime-dse -std=gnu++98 -DDTRACE_ENABLED -c -MMD -MP -MF ../generated/dependencies/precompiled.hpp.gch.d -fpch-deps -x c++-header /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/precompiled/precompiled.hpp -o precompiled.hpp.gch && { echo Done with /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/precompiled/precompiled.hpp; }
In file included from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/interpreter/cppInterpreter.hpp:28,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/interpreter/interpreter.hpp:29,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/runtime/frame.inline.hpp:30,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/prims/methodHandles.hpp:30,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/ci/ciMethod.hpp:33,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/code/debugInfoRec.hpp:30,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/ci/ciEnv.hpp:31,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/ci/ciUtilities.hpp:28,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/ci/ciNullObject.hpp:30,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/ci/ciConstant.hpp:29,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/ci/ciArray.hpp:29,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/precompiled/precompiled.hpp:33:
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/interpreter/abstractInterpreter.hpp: In static member function ‘static jint* AbstractInterpreter::int_addr_in_slot(intptr_t*)’:
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/interpreter/abstractInterpreter.hpp:232:50: error: ‘is_Java_byte_ordering_different’ is not a member of ‘Bytes’
  232 |     if ((int) sizeof(jint) < wordSize && !Bytes::is_Java_byte_ordering_different())
      |                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/runtime/frame.inline.hpp:110:
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/cpu/riscv/vm/frame_riscv.inline.hpp: In member function ‘void frame::init(intptr_t*, intptr_t*, address)’:
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/cpu/riscv/vm/frame_riscv.inline.hpp:58:25: error: ‘CompiledMethod’ has not been declared
   58 |   address original_pc = CompiledMethod::get_deopt_original_pc(this);
      |                         ^~~~~~~~~~~~~~

build-precompiled.log make-riscv64.log

sendaoYan commented 6 days ago

8068054: AARCH64: Assembler interpreter, shared runtime

sendaoYan commented 6 days ago

build-precompiled.log make-riscv64.log To github.com:sendaoYan/riscv-port-jdk8u-ysd.git e87d085b9e8..a2373c018ba minus-jbs8276799 -> minus-jbs8276799

sendaoYan commented 6 days ago

hotspot/src/cpu/aarch64/vm/bytes_aarch64.hpp文件在jdk8u里,845d40ae217ff47ec53e2fd655b95933aa35eac6这个commit加上了这个bytes_aarch64.hpp文件,文件包含is_Java_byte_ordering_different实现;

jdk9u里对bytes_aarch64.hpp文件的修改有2个commit,8068054(8068054: AARCH64: Assembler interpreter, shared runtime)、8161258(8161258: Simplify including platform files),在8068054这个commit里增加了bytes_aarch64.hpp文件,文件包含is_Java_byte_ordering_different实现;

jdk10u里8187443(8187443: Forest Consolidation: Move files to unified layout)这个commit修改了bytes_aarch64.hpp文件,rename from hotspot/src/cpu/aarch64/vm/bytes_aarch64.hpp to src/hotspot/cpu/aarch64/bytes_aarch64.hpp,文件里已经没有包含is_Java_byte_ordering_different函数实现