git.iko.soy/typeable/nixpkgs
on master help sign in
arrow-cpp: fix build on architectures other than x86_64

Settting ARROW_USE_SIMD=OFF used to fix i686 build for 1.12.0. The fix for ARROW-5007 should help on aarch64.

commit43c7477345774db80d34f61a86e597bb89a0ac19 authorDmitry Kalinkin <dmitry.kalinkin@gmail.com> dateFri 12 Apr 2019, 00:20 (8 years ago) parent45da663
1 file changed+6−1
pkgs/development/libraries/arrow-cpp/default.nix+6−1
pkgs/development/libraries/arrow-cpp/default.nix+6−1
@@ -44,6 +44,11 @@ stdenv.mkDerivation rec {
4444 cp ${Finduriparser_cmake} cmake_modules/Finduriparser.cmake
4545
4646 patchShebangs build-support/
47+
48+ # Fix build for ARROW_USE_SIMD=OFF
49+ # https://jira.apache.org/jira/browse/ARROW-5007
50+ sed -i src/arrow/util/sse-util.h -e '1i#include "arrow/util/logging.h"'
51+ sed -i src/arrow/util/neon-util.h -e '1i#include "arrow/util/logging.h"'
4752 '';
4853
4954 cmakeFlags = [
@@ -52,7 +57,7 @@ stdenv.mkDerivation rec {
5257 "-DARROW_PARQUET=ON"
5358 "-DARROW_PYTHON=ON"
5459 "-Duriparser_SOURCE=SYSTEM"
55− ];
60+ ] ++ stdenv.lib.optional (!stdenv.isx86_64) "-DARROW_USE_SIMD=OFF";
5661
5762 doInstallCheck = true;
5863 PARQUET_TEST_DATA = if doInstallCheck then "${parquet-testing}/data" else null;