dragonwell-releng / issues-repo

0 stars 0 forks source link

[riscv64-8u]atomic_linux_riscv.inline.hpp:44:3: error: qualified name does not name a class before ‘:’ token #80

Open sendaoYan opened 4 months ago

sendaoYan commented 4 months 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 ; }
In file included from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/runtime/atomic.inline.hpp:50,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/memory/allocation.inline.hpp:28,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/utilities/array.hpp:29,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/memory/universe.hpp:29,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/code/oopRecorder.hpp:28,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/asm/codeBuffer.hpp:28,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/asm/assembler.hpp:28,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/precompiled/precompiled.hpp:29:
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os_cpu/linux_riscv/vm/atomic_linux_riscv.inline.hpp:44:3: error: qualified name does not name a class before ‘:’ token
   44 |   : Atomic::FetchAndAdd<Atomic::PlatformAdd<byte_size> >
      |   ^
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os_cpu/linux_riscv/vm/atomic_linux_riscv.inline.hpp:44:3: error: expected ‘{’ before ‘:’ token
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os_cpu/linux_riscv/vm/atomic_linux_riscv.inline.hpp:61:10: error: too many template-parameter-lists
   61 | inline T Atomic::PlatformXchg<byte_size>::operator()(T exchange_value,
      |          ^~~~~~
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os_cpu/linux_riscv/vm/atomic_linux_riscv.inline.hpp:73:10: error: too many template-parameter-lists
   73 | inline T Atomic::PlatformCmpxchg<byte_size>::operator()(T exchange_value,
      |          ^~~~~~
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os_cpu/linux_riscv/vm/atomic_linux_riscv.inline.hpp:94:10: error: too many template-parameter-lists
   94 | inline T Atomic::PlatformCmpxchg<4>::operator()(T exchange_value,
      |          ^~~~~~

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

sendaoYan commented 4 months ago

8186476: Generalize Atomic::add with templates

sendaoYan commented 4 months ago

8187977: Generalize Atomic::xchg to use templates

sendaoYan commented 4 months ago

https://bugs.openjdk.org/browse/JDK-8184334

sendaoYan commented 4 months ago

To github.com:sendaoYan/riscv-port-jdk8u-ysd.git 5d688b24470..1abcdb6d6c6 minus-jbs8276799 -> minus-jbs8276799 80.patch