[
https://issues.apache.org/jira/browse/ARROW-17329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17576548#comment-17576548
]
Duncan Bellamy commented on ARROW-17329:
----------------------------------------
cmake command is:
??cmake -B build \??
?? -G Ninja \??
?? -DCMAKE_INSTALL_PREFIX=/usr \??
?? -DCMAKE_INSTALL_LIBDIR=lib \??
?? -DBUILD_SHARED_LIBS=True \??
?? -DCMAKE_BUILD_TYPE=Release \??
?? -DARROW_BUILD_STATIC=OFF \??
?? -DARROW_DEPENDENCY_SOURCE=SYSTEM \??
?? -DARROW_SIMD_LEVEL="NONE" \??
?? -DARROW_RUNTIME_SIMD_LEVEL="NONE" \??
?? -DARROW_BUILD_TESTS=ON \??
?? -DARROW_COMPUTE=ON \??
?? -DARROW_FLIGHT=ON \??
?? -DARROW_GANDIVA=OFF \??
?? -DARROW_HDFS=ON \??
?? -DARROW_IPC=ON \??
?? -DARROW_JEMALLOC=OFF \??
?? -DARROW_ORC=OFF \??
?? -DARROW_PARQUET=ON \??
?? -DARROW_PLASMA=ON \??
?? -DARROW_PYTHON=ON \??
?? -DARROW_TENSORFLOW=ON \??
?? -DARROW_USE_GLOG=ON \??
?? -DARROW_WITH_BROTLI=ON \??
?? -DARROW_WITH_BZ2=ON \ ??
?? -DARROW_WITH_LZ4=ON \ ??
?? -DARROW_WITH_SNAPPY=ON \ ??
?? -DARROW_WITH_ZLIB=ON \ ??
?? -DARROW_WITH_ZSTD=ON \??
?? -DZSTD_LIB=/usr/lib/libzstd.so \??
?? -DPARQUET_REQUIRE_ENCRYPTION=ON \??
?? -S cpp \ ??
?? $CMAKE_CROSSOPTS ??
?? cmake --build build ??
This also now needs ARROW_RUNTTIME_SIMD_LEVEL setting to NONE as well as
ARROW_SIMD_LEVEL, like version 8.
Output here:
[https://gitlab.alpinelinux.org/a16bitsysop/aports/-/jobs/794810]
I found if I patch out resolve_dependency for zstd:
[https://gitlab.alpinelinux.org/alpine/aports/-/blob/4fbf1cad4a506afb87a34e18ed2e58b5389271dc/community/apache-arrow/zstd.patch]
It then starts to build but has another failure as musl does not define:
_SC_LEVEL1_DCACHE_SIZE etc
[https://gitlab.alpinelinux.org/a16bitsysop/aports/-/jobs/794822#L1351]
Which I tried patch to use the fallback function, but the fallback function
still uses the struct with the defines in.
> Build fails on alpine linux for arrow 9.0.0, /usr/local/include in
> INTERFACE_INCLUDE_DIRECTORIES
> ------------------------------------------------------------------------------------------------
>
> Key: ARROW-17329
> URL: https://issues.apache.org/jira/browse/ARROW-17329
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Affects Versions: 9.0.0
> Environment: alpine linux edge
> Reporter: Duncan Bellamy
> Priority: Blocker
> Fix For: 9.0.1
>
>
> zstd can now only be found if ??{{-DZSTD_LIB=/usr/lib/libzstd.so}}?? is
> passed to cmake
> trying to compile 9.0.0.0 I now get the error:
> {noformat}
> ??-- Configuring done??
> ??CMake Error in src/arrow/CMakeLists.txt:??
> ??Imported target "zstd::libzstd" includes non-existent path??
> ??"/usr/local/include"??
> ??in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:??
> * ??The path was deleted, renamed, or moved to another location.??
> * ??An install or uninstall procedure did not complete successfully.??
> * ??The installation package was faulty and references files it does not??
> ??provide.??
> ??CMake Error in src/arrow/CMakeLists.txt:??
> ??Imported target "zstd::libzstd" includes non-existent path??
> ??"/usr/local/include"??
> ??in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:??
> * ??The path was deleted, renamed, or moved to another location.??
> * ??An install or uninstall procedure did not complete successfully.??
> * ??The installation package was faulty and references files it does not??
> ??provide.??
> ??CMake Error in src/arrow/dataset/CMakeLists.txt:??
> ??Imported target "zstd::libzstd" includes non-existent path??
> ??"/usr/local/include"??
> ??in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:??
> * ??The path was deleted, renamed, or moved to another location.??
> * ??An install or uninstall procedure did not complete successfully.??
> * ??The installation package was faulty and references files it does not??
> ??provide.??
> ??– Generating done??
> {noformat}
> /usr/local/include does not exist in my build environment, or the builders
> for alpine linux
--
This message was sent by Atlassian Jira
(v8.20.10#820010)