dragonwell-releng / issues-repo

0 stars 0 forks source link

[riscv64-8u]error: ‘jint’ does not name a type #45

Open sendaoYan opened 3 weeks ago

sendaoYan commented 3 weeks ago
In file included from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp:28,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/utilities/globalDefinitions.hpp:38,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/utilities/debug.hpp:28:
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/prims/jni.h:63:9: error: ‘jint’ does not name a type; did you mean ‘int’?
   63 | typedef jint            jsize;
      |         ^~~~
      |         int
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/prims/jni.h:122:5: error: ‘jbyte’ does not name a type
  122 |     jbyte    b;
      |     ^~~~~

make.log

sendaoYan commented 3 weeks ago
diff --git a/hotspot/src/share/vm/prims/jni_md.h b/hotspot/src/share/vm/prims/jni_md.h
index 6209a664496..f72fa267a78 100644
--- a/hotspot/src/share/vm/prims/jni_md.h
+++ b/hotspot/src/share/vm/prims/jni_md.h
@@ -30,6 +30,9 @@
 #ifdef TARGET_ARCH_aarch64
 # include "jni_aarch64.h"
 #endif
+#ifdef TARGET_ARCH_riscv
+# include "jni_riscv.h"
+#endif
 #ifdef TARGET_ARCH_sparc
 # include "jni_sparc.h"
 #endif
sendaoYan commented 3 weeks ago

To github.com:sendaoYan/riscv-port-jdk8u-ysd.git 18d59c95407..d8f3d55cd06 jbs8276799 -> jbs8276799