Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8341880

RISC-V: riscv_vector.h native build fails with gcc13 after JDK-8320500

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 24
    • 24
    • other-libs
    • None
    • b20
    • riscv
    • linux

      Build fails with OS shipped gcc13:
      src/jdk.incubator.vector/linux/native/libsleef/lib/vector_math_rvv.c:38:10: fatal error: riscv_vector.h: No such file or directory
         38 | #include <riscv_vector.h>
            | ^~~~~~~~~~~~~~~~
      compilation terminated.

      Standalone build command:
      /usr/bin/gcc -MMD -MF build/linux-riscv64-server-release/support/native/jdk.incubator.vector/libsleef/vector_math_rvv.d.tmp -fpch-preprocess -fvisibility=hidden -pipe -fstack-protector -DLIBC=gnu -D_GNU_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DLINUX -DNDEBUG -fmacro-prefix-map=/home/yansendao/git/jdk/= -std=c11 -fno-strict-aliasing -Wall -Wextra -Wformat=2 -Wpointer-arith -Wreturn-type -Wsign-compare -Wtrampolines -Wundef -Wunused-const-variable=1 -Wunused-function -Wunused-result -Wunused-value -D_LITTLE_ENDIAN '-DARCH="riscv64"' -Driscv64 -D_LP64=1 -fno-omit-frame-pointer -fno-lifetime-dse -fPIC -march=rv64gcv -Isrc/jdk.incubator.vector/linux/native/libsleef/lib -Isrc/jdk.incubator.vector/linux/native/libsleef/generated -Ibuild/linux-riscv64-server-release/support/modules_include/java.base -Isrc/java.base/unix/native/include -Isrc/java.base/share/native/include -g -gdwarf-4 -fdebug-prefix-map=/home/yansendao/git/jdk/= -fdebug-prefix-map=/usr/include/=/usr/include/ -fdebug-prefix-map=/usr/lib/gcc/riscv64-redhat-linux/13/include/=/usr/local/gcc_include/ -fdebug-prefix-map=/usr/include/c++/13/=/usr/local/gxx_include/ -fdebug-prefix-map=/home/yansendao/git/jdk/build/linux-riscv64-server-release/= -Wno-unused-parameter -Wno-unused-function -Wno-sign-compare -Wno-tautological-compare -Wno-ignored-qualifiers -Werror -O3 -c -o build/linux-riscv64-server-release/support/native/jdk.incubator.vector/libsleef/vector_math_rvv.o src/jdk.incubator.vector/linux/native/libsleef/lib/vector_math_rvv.c -frandom-seed=vector_math_rvv.c

      gcc version:
      > /usr/bin/gcc -v
      Using built-in specs.
      COLLECT_GCC=/usr/bin/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)

            syan Sendao Yan
            syan Sendao Yan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: