[ https://issues.apache.org/jira/browse/ARROW-15445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17481775#comment-17481775 ]
Antoine Pitrou commented on ARROW-15445: ---------------------------------------- Well, apparently CMAKE_SYSTEM_PROCESSOR is "x86_64". Are you sure you are cross-compiling correctly? According to the CMake docs: {quote}When cross-compiling, a CMAKE_TOOLCHAIN_FILE should set the CMAKE_SYSTEM_PROCESSOR variable to match target architecture that it specifies (via CMAKE_<LANG>{_}COMPILER and perhaps CMAKE{_}<LANG>_COMPILER_TARGET). {quote} (in https://cmake.org/cmake/help/latest/variable/CMAKE_SYSTEM_PROCESSOR.html) > [C++/Python] pyarrow build incorrectly detects x86 as system process during > cross-cimpile > ----------------------------------------------------------------------------------------- > > Key: ARROW-15445 > URL: https://issues.apache.org/jira/browse/ARROW-15445 > Project: Apache Arrow > Issue Type: Bug > Components: C++, Python > Reporter: Uwe Korn > Priority: Major > > When cross-compiling {{pyarrow}} for aarch64 or ppc64le we run into the > following issue: > {code:java} > -- System processor: x86_64 > -- Performing Test CXX_SUPPORTS_SSE4_2 > -- Performing Test CXX_SUPPORTS_SSE4_2 - Failed > -- Performing Test CXX_SUPPORTS_AVX2 > -- Performing Test CXX_SUPPORTS_AVX2 - Failed > -- Performing Test CXX_SUPPORTS_AVX512 > -- Performing Test CXX_SUPPORTS_AVX512 - Failed > -- Arrow build warning level: PRODUCTION > CMake Error at cmake_modules/SetupCxxFlags.cmake:456 (message): > SSE4.2 required but compiler doesn't support it. > Call Stack (most recent call first): > CMakeLists.txt:121 (include) > -- Configuring incomplete, errors occurred! > {code} > The error is valid as we are building for a target system that doesn't > support SSE at all. -- This message was sent by Atlassian Jira (v8.20.1#820001)