Closed sendaoYan closed 2 weeks ago
/home/yansendao/software/gcc/gcc-13.2.0-binary/bin/g++ -DLINUX -D_GNU_SOURCE -DAARCH64 -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/aarch64/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os_cpu/linux_aarch64/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=\"aarch64\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_aarch64 -DTARGET_ARCH_MODEL_aarch64 -DTARGET_OS_ARCH_linux_aarch64 -DTARGET_OS_ARCH_MODEL_linux_aarch64 -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 -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/hSpaceCounters.o.d -fpch-deps -o hSpaceCounters.o /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/gc_implementation/shared/hSpaceCounters.cpp Compiling /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/runtime/handles.cpp rm -f handles.o Compiling /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/utilities/hashtable.cpp rm -f hashtable.o In file included from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/runtime/orderAccess.inline.hpp:45, 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/aarch64/vm/assembler_aarch64.inline.hpp:32, from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/asm/assembler.inline.hpp:46, from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/precompiled/precompiled.hpp:30: In static member function 'static void* OrderAccess::load_ptr_acquire(const volatile void*)', inlined from 'nmethod* volatile Method::code() const' at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/oops/method.hpp:454:127, inlined from 'static bool CompileBroker::compilation_is_complete(methodHandle, int, int)' at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/compiler/compileBroker.cpp:1463:37, inlined from 'static bool CompileBroker::compilation_is_complete(methodHandle, int, int)' at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/compiler/compileBroker.cpp:1448:6, inlined from 'static nmethod* CompileBroker::compile_method(methodHandle, int, int, methodHandle, int, const char*, Thread*)' at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/compiler/compileBroker.cpp:1357:34: /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os_cpu/linux_aarch64/vm/orderAccess_linux_aarch64.inline.hpp:78:28: error: 'long unsigned int __atomic_load_8(const volatile void*, int)' writing 8 bytes into a region of size 0 overflows the destination [-Werror=stringop-overflow=] 78 | { void* data; __atomic_load((void* const volatile *)p, &data, __ATOMIC_ACQUIRE); return data; } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In static member function 'static nmethod* CompileBroker::compile_method(methodHandle, int, int, methodHandle, int, const char*, Thread*)': cc1plus: note: destination object is likely at address zero
make-x86_64.log make-aarch64.log make-riscv64.log
cd build/linux-aarch64-normal-server-release/hotspot/linux_aarch64_compiler2/generated
make clean之后无法复现
make-x86_64.log make-aarch64.log make-riscv64.log