Closed sendaoYan closed 1 month ago
Description riscv64环境使用gcc13编译报错c1_CodeStubs.hpp:438:25: error: ‘this’ pointer is null [-Werror=nonnull]
Steps to Reproduce Steps to reproduce the behavior:
/usr/bin/g++ -MMD -MF build/linux-riscv64-normal-server-release/hotspot/variant-server/libjvm/objs/c1_LIRAssembler.d.tmp -fpch-preprocess -Ibuild/linux-riscv64-normal-server-release/hotspot/variant-server/libjvm/objs/precompiled -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_GNU_SOURCE -D_REENTRANT -pipe -fno-rtti -fno-exceptions -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer -fcheck-new -fstack-protector -std=gnu++98 -DLIBC=gnu -DSUPPORTS_CLOCK_MONOTONIC -DLINUX -Wpointer-arith -Wsign-compare -Wunused-function -Wundef -Wformat=2 -Wunused-value -Woverloaded-virtual -Wreturn-type -fPIC -fmacro-prefix-map== -DVM_LITTLE_ENDIAN -D_LP64=1 -fno-delete-null-pointer-checks -fno-lifetime-dse -Wno-format-zero-length -Wtype-limits -Wuninitialized -DPRODUCT -DTARGET_ARCH_riscv -DINCLUDE_SUFFIX_OS=_linux -DINCLUDE_SUFFIX_CPU=_riscv -DINCLUDE_SUFFIX_COMPILER=_gcc -DTARGET_COMPILER_gcc -DRISCV64 -DHOTSPOT_LIB_ARCH='"riscv64"' -DCOMPILER1 -DCOMPILER2 -DDTRACE_ENABLED -DINCLUDE_JVMCI=0 -DINCLUDE_AOT=0 -DINCLUDE_ZGC=0 -DINCLUDE_SHENANDOAHGC=0 -Ibuild/linux-riscv64-normal-server-release/hotspot/variant-server/gensrc/adfiles -Isrc/hotspot/share -Isrc/hotspot/os/linux -Isrc/hotspot/os/posix -Isrc/hotspot/cpu/riscv -Isrc/hotspot/os_cpu/linux_riscv -Ibuild/linux-riscv64-normal-server-release/hotspot/variant-server/gensrc -Isrc/hotspot/share/precompiled -Isrc/hotspot/share/include -Isrc/hotspot/os/posix/include -Ibuild/linux-riscv64-normal-server-release/support/modules_include/java.base -Ibuild/linux-riscv64-normal-server-release/support/modules_include/java.base/linux -Isrc/java.base/share/native/libjimage -g -Werror -O3 -c -o build/linux-riscv64-normal-server-release/hotspot/variant-server/libjvm/objs/c1_LIRAssembler.o src/hotspot/share/c1/c1_LIRAssembler.cpp
Expected behavior git@github.com:openjdk/riscv-port-jdk11u.git代码仓正常编译&链接
Execution environment
$ uname -a ; cat /etc/os-release ; free -h ; lscpu | head -n 25 ; java -version ; java -Xinternalversion ; gcc -v Linux fedora-riscv 6.1.31 #1 SMP Thu Jun 15 01:30:00 CST 2023 riscv64 GNU/Linux NAME="Fedora Linux" VERSION="38 (Workstation Edition)" ID=fedora VERSION_ID=38 VERSION_CODENAME="" PLATFORM_ID="platform:f38" PRETTY_NAME="Fedora Linux 38 (Workstation Edition)" ANSI_COLOR="0;38;2;60;110;180" LOGO=fedora-logo-icon CPE_NAME="cpe:/o:fedoraproject:fedora:38" DEFAULT_HOSTNAME="fedora" HOME_URL="https://fedoraproject.org/" DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f38/system-administrators-guide/" SUPPORT_URL="https://ask.fedoraproject.org/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Fedora" REDHAT_BUGZILLA_PRODUCT_VERSION=38 REDHAT_SUPPORT_PRODUCT="Fedora" REDHAT_SUPPORT_PRODUCT_VERSION=38 SUPPORT_END=2024-05-14 VARIANT="Workstation Edition" VARIANT_ID=workstation total used free shared buff/cache available Mem: 125Gi 1.3Gi 106Gi 22Mi 17Gi 123Gi Swap: 8.0Gi 0B 8.0Gi Architecture: riscv64 Byte Order: Little Endian CPU(s): 64 On-line CPU(s) list: 0-63 NUMA node(s): 4 NUMA node0 CPU(s): 0-7,16-23 NUMA node1 CPU(s): 8-15,24-31 NUMA node2 CPU(s): 32-39,48-55 NUMA node3 CPU(s): 40-47,56-63 openjdk version "11.0.23.19" 2024-04-16 OpenJDK Runtime Environment (Alibaba Dragonwell Extended Edition)-11.0.22.19+7-ga (build 11.0.23.19+7) OpenJDK 64-Bit Server VM (Alibaba Dragonwell Extended Edition)-11.0.22.19+7-ga (build 11.0.23.19+7, mixed mode) OpenJDK 64-Bit Server VM (11.0.23.19+7) for linux-riscv64 JRE (11.0.23.19+7), built on Apr 26 2024 03:22:06 by "" with gcc 9.2.0 Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/riscv64-redhat-linux/13/lto-wrapper Target: riscv64-redhat-linux Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,m2,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-libstdcxx-backtrace --with-libstdcxx-zoneinfo=/usr/share/zoneinfo --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-13.2.1-20230728/obj-riscv64-redhat-linux/isl-install --enable-gnu-indirect-function --with-arch=rv64gc --with-abi=lp64d --with-multilib-list=lp64d --build=riscv64-redhat-linux --with-build-config=bootstrap-lto --enable-link-serialization=1 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 13.2.1 20230728 (Red Hat 13.2.1-1) (GCC)
hotspot_variant-server_libjvm_objs_c1_LIRAssembler.o.cmdline.log hotspot_variant-server_libjvm_objs_c1_LIRAssembler.o.log
已合入
Description riscv64环境使用gcc13编译报错c1_CodeStubs.hpp:438:25: error: ‘this’ pointer is null [-Werror=nonnull]
Steps to Reproduce Steps to reproduce the behavior:
Expected behavior git@github.com:openjdk/riscv-port-jdk11u.git代码仓正常编译&链接
Execution environment
hotspot_variant-server_libjvm_objs_c1_LIRAssembler.o.cmdline.log hotspot_variant-server_libjvm_objs_c1_LIRAssembler.o.log