dragonwell-releng / issues-repo

0 stars 0 forks source link

[riscv64-8u]orderAccess.inline.hpp:48:11: fatal error: orderAccess_linux_riscv.inline.hpp: No such file or directory #76

Open sendaoYan opened 5 months ago

sendaoYan commented 5 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 /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/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/share/vm/runtime/orderAccess.inline.hpp:48:11: fatal error: orderAccess_linux_riscv.inline.hpp: No such file or directory
   48 | # include "orderAccess_linux_riscv.inline.hpp"
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

build-precompiled.log make-riscv64.log

sendaoYan commented 5 months ago

8204301: Make OrderAccess functions available to hpp rather than inline.hpp files

sendaoYan commented 5 months ago

JDK-8204301.patch

sendaoYan commented 5 months ago
git mv hotspot/src/os_cpu/linux_riscv/vm/orderAccess_linux_riscv.hpp hotspot/src/os_cpu/linux_riscv/vm/orderAccess_linux_riscv.inline.hpp
sendaoYan commented 5 months ago
diff --git a/hotspot/src/os_cpu/linux_riscv/vm/orderAccess_linux_riscv.inline.hpp b/hotspot/src/os_cpu/linux_riscv/vm/orderAccess_linux_riscv.inline.hpp
index 5b5d35553f7..2caec2d95e3 100644
--- a/hotspot/src/os_cpu/linux_riscv/vm/orderAccess_linux_riscv.inline.hpp
+++ b/hotspot/src/os_cpu/linux_riscv/vm/orderAccess_linux_riscv.inline.hpp
@@ -23,11 +23,12 @@
  *
  */

-#ifndef OS_CPU_LINUX_RISCV_ORDERACCESS_LINUX_RISCV_HPP
-#define OS_CPU_LINUX_RISCV_ORDERACCESS_LINUX_RISCV_HPP
-
-// Included in orderAccess.hpp header file.
+#ifndef OS_CPU_LINUX_RISCV_ORDERACCESS_LINUX_RISCV_INLINE_HPP
+#define OS_CPU_LINUX_RISCV_ORDERACCESS_LINUX_RISCV_INLINE_HPP

+#include "runtime/atomic.hpp"
+#include "runtime/orderAccess.hpp"
+#include "runtime/os.hpp"
 #include "runtime/vm_version.hpp"

 // Implementation of class OrderAccess.
@@ -71,4 +72,4 @@ struct OrderAccess::PlatformOrderedStore<byte_size, RELEASE_X_FENCE>
   void operator()(T v, volatile T* p) const { release_store(p, v); OrderAccess::fence(); }
 };

-#endif // OS_CPU_LINUX_RISCV_ORDERACCESS_LINUX_RISCV_HPP
+#endif // OS_CPU_LINUX_RISCV_ORDERACCESS_LINUX_RISCV_INLINE_HPP
sendaoYan commented 5 months ago

8233787: Break cycle in vm_version* includes

sendaoYan commented 5 months ago

To github.com:sendaoYan/riscv-port-jdk8u-ysd.git 0a16b6efc42..bedb955e8af minus-jbs8276799 -> minus-jbs8276799