[C++] Does not build on RISC-V natively

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • 10.0.0
    • Affects Version/s: 8.0.1
    • Component/s: C++
    • Environment:
      Arch Linux riscv64

      In SetupCxxFlags.cmake, CMAKE_SYSTEM_PROCESSOR is not recognized and thus ARROW_CPU_FLAG is set to "x86". Which makes compilation to fail later with:

      In file included from /build/arrow/src/apache-arrow-8.0.1/cpp/src/arrow/array/validate.cc:33:
      In file included from /build/arrow/src/apache-arrow-8.0.1/cpp/src/arrow/util/utf8.h:32:
      In file included from /build/arrow/src/apache-arrow-8.0.1/cpp/src/arrow/util/simd.h:37:
      /usr/lib/clang/14.0.6/include/nmmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
      #error "This header is only meant to be used on x86 and x64 architecture"
      ^
      

            Assignee:
            Yibo Cai
            Reporter:
            Felix Yan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3h
                3h