Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[riscv64-8u]orderAccess_linux_riscv.inline.hpp:55:21: error: ‘PlatformOrderedLoad’ is not a class template #82

Open
sendaoYan opened this issue Jun 28, 2024 · 3 comments
Assignees

Comments

@sendaoYan
Copy link

/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/runtime/orderAccess.inline.hpp:48,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os/linux/vm/os_linux.inline.hpp:29,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/utilities/histogram.hpp:32,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/runtime/mutex.hpp:30,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/classfile/classLoaderData.hpp:32,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/oops/typeArrayKlass.hpp:28,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/oops/typeArrayOop.hpp:29,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/oops/constantPool.hpp:32,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/oops/method.hpp:33,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/runtime/frame.hpp:28,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/code/codeBlob.hpp:30,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/code/codeCache.hpp:28,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/cpu/riscv/vm/assembler_riscv.inline.hpp:32,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/asm/assembler.inline.hpp:49,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/precompiled/precompiled.hpp:30:
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os_cpu/linux_riscv/vm/orderAccess_linux_riscv.inline.hpp:55:21: error: ‘PlatformOrderedLoad’ is not a class template
   55 | struct OrderAccess::PlatformOrderedLoad<byte_size, X_ACQUIRE>
      |                     ^~~~~~~~~~~~~~~~~~~
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os_cpu/linux_riscv/vm/orderAccess_linux_riscv.inline.hpp:55:52: error: ‘X_ACQUIRE’ was not declared in this scope
   55 | struct OrderAccess::PlatformOrderedLoad<byte_size, X_ACQUIRE>
      |                                                    ^~~~~~~~~
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os_cpu/linux_riscv/vm/orderAccess_linux_riscv.inline.hpp:56:1: error: qualified name does not name a class before ‘{’ token
   56 | {
      | ^
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os_cpu/linux_riscv/vm/orderAccess_linux_riscv.inline.hpp:62:21: error: ‘PlatformOrderedStore’ is not a class template
   62 | struct OrderAccess::PlatformOrderedStore<byte_size, RELEASE_X>
      |                     ^~~~~~~~~~~~~~~~~~~~
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os_cpu/linux_riscv/vm/orderAccess_linux_riscv.inline.hpp:62:53: error: ‘RELEASE_X’ was not declared in this scope
   62 | struct OrderAccess::PlatformOrderedStore<byte_size, RELEASE_X>
      |                                                     ^~~~~~~~~
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os_cpu/linux_riscv/vm/orderAccess_linux_riscv.inline.hpp:63:1: error: qualified name does not name a class before ‘{’ token
   63 | {
      | ^
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os_cpu/linux_riscv/vm/orderAccess_linux_riscv.inline.hpp:69:21: error: ‘PlatformOrderedStore’ is not a class template
   69 | struct OrderAccess::PlatformOrderedStore<byte_size, RELEASE_X_FENCE>
      |                     ^~~~~~~~~~~~~~~~~~~~
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os_cpu/linux_riscv/vm/orderAccess_linux_riscv.inline.hpp:69:53: error: ‘RELEASE_X_FENCE’ was not declared in this scope
   69 | struct OrderAccess::PlatformOrderedStore<byte_size, RELEASE_X_FENCE>
      |                                                     ^~~~~~~~~~~~~~~
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os_cpu/linux_riscv/vm/orderAccess_linux_riscv.inline.hpp:70:1: error: qualified name does not name a class before ‘{’ token
   70 | {
      | ^

build-precompiled.log
make-fastdebug-aarch64.log
make-fastdebug-x86_64.log
make-release-aarch64.log
make-release-x86_64.log
make-riscv64.log
make-slowdebug-aarch64.log
make-slowdebug-x86_64.log

@sendaoYan sendaoYan self-assigned this Jun 28, 2024
@sendaoYan
Copy link
Author

8188813: Generalize OrderAccess to use templates

@sendaoYan
Copy link
Author

JDK-8188813.patch

@sendaoYan
Copy link
Author

build-precompiled.log
make-riscv64.log
82.patch
To github.com:sendaoYan/riscv-port-jdk8u-ysd.git
74557fa9673..213f8c0e146 minus-jbs8276799 -> minus-jbs8276799

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant