Felix Yan created ARROW-17440:
---------------------------------
Summary: Does not build on RISC-V natively
Key: ARROW-17440
URL: https://issues.apache.org/jira/browse/ARROW-17440
Project: Apache Arrow
Issue Type: Bug
Components: Packaging
Affects Versions: 8.0.1
Environment: Arch Linux riscv64
Reporter: Felix Yan
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:
{noformat}
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"
^
{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)