dragonwell-releng / issues-repo

0 stars 0 forks source link

[riscv64-8u]constantPool.hpp:292:5: error: ‘Bytes’ has not been declared #83

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 /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/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/oops/constantPool.hpp: In member function ‘void ConstantPool::long_at_put(int, jlong)’:
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/oops/constantPool.hpp:292:5: error: ‘Bytes’ has not been declared
  292 |     Bytes::put_native_u8((address)long_at_addr(which), *((u8*) &l));
      |     ^~~~~
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/oops/constantPool.hpp: In member function ‘void ConstantPool::double_at_put(int, jdouble)’:
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/oops/constantPool.hpp:304:5: error: ‘Bytes’ has not been declared
  304 |     Bytes::put_native_u8((address) double_at_addr(which), *((u8*) &d));
      |     ^~~~~

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 make.log

sendaoYan commented 4 months ago
grep "^diff --git" ~/compiler-test/openjdk/patchs/riscv64/JDK-8161258.patch | awk '{print $3}' | sed "s|a/||" > /tmp/files.log ; for i in {aarch64,ppc,riscv,sparc,x86,zero} ; do sed -i "/\/$i\//d" /tmp/files.log ; sed -i "/_$i\//d" /tmp/files.log ; done
while read i ; do if test -f $i ; then if grep -q aarch64 $i ; then grep -q riscv $i || echo $i ; fi ; fi ; done < /tmp/files.log
sendaoYan commented 4 months ago
for i in `grep "#ifdef TARGET_ARCH_aarch64" hotspot/ -rnl` ; do if grep -q aarch64 $i ; then grep -q riscv $i || echo $i ; fi ; done | xargs
sendaoYan commented 4 months ago

build-precompiled.log make-riscv64.log

sendaoYan commented 4 months ago

83.patch To github.com:sendaoYan/riscv-port-jdk8u-ysd.git 9a0515a71d9..82f5f0698fb minus-jbs8276799 -> minus-jbs8276799