Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-17440

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 8.0.1
    • 10.0.0
    • C++
    • Arch Linux riscv64

    Description

      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"
      ^
      

      Attachments

        Issue Links

          Activity

            People

              yibocai Yibo Cai
              felixonmars Felix Yan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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