You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2022/01/25 12:14:00 UTC

[jira] [Comment Edited] (ARROW-15445) [C++/Python] pyarrow build incorrectly detects x86 as system process during cross-cimpile

    [ https://issues.apache.org/jira/browse/ARROW-15445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17481775#comment-17481775 ] 

Antoine Pitrou edited comment on ARROW-15445 at 1/25/22, 12:13 PM:
-------------------------------------------------------------------

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)


was (Author: pitrou):
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)