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

Stanislaw commented on ARROW-17748:
-----------------------------------

ehh, something goes wrong I can't install this patch maybe above syntax is wrong

> not able to install arrow on alpine 3.16
> ----------------------------------------
>
>                 Key: ARROW-17748
>                 URL: https://issues.apache.org/jira/browse/ARROW-17748
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Integration
>    Affects Versions: 9.0.0
>            Reporter: Stanislaw
>            Priority: Critical
>
> Hi we're facing an issue with integration on the latest version on alpine, it 
> seems that the root cause is placed on arrow package.
> We've tested a few of version and we're able to install only arrow in version 
> 3.0.0 
> It's seems that this package is not compatible 
>  
> this is a dockerfile which we're using for
> //this image python:3.16-alpine has been created from the scratch 
>  
> {code:java}
> FROM python:3.16-alpine
> RUN apk update \
>     && apk upgrade \
>     && apk add --no-cache build-base \
>         autoconf \
>         bash \
>         bison \
>         boost-dev \
>         cmake \
>         flex \
>         libressl-dev \
>         zlib-dev
> RUN pip install --no-cache-dir six pytest numpy cython
> RUN pip install --no-cache-dir pandas
> ARG ARROW_VERSION=9.0.0
> ARG ARROW_BUILD_TYPE=release
> ENV ARROW_HOME=/usr/local \
>     PARQUET_HOME=/usr/local
> #Download and build apache-arrow
> RUN mkdir /arrow \
>     && wget -q 
> https://github.com/apache/arrow/archive/apache-arrow-${ARROW_VERSION}.tar.gz 
> -O /tmp/apache-arrow.tar.gz \
>     && tar -xvf /tmp/apache-arrow.tar.gz -C /arrow --strip-components 1 \
>     && mkdir -p /arrow/cpp/build \
>     && cd /arrow/cpp/build \
>     && cmake -DCMAKE_BUILD_TYPE=$ARROW_BUILD_TYPE \
>         -DOPENSSL_ROOT_DIR=/usr/local/ssl \
>         -DCMAKE_INSTALL_LIBDIR=lib \
>         -DCMAKE_INSTALL_PREFIX=$ARROW_HOME \
>         -DARROW_WITH_BZ2=ON \
>         -DARROW_WITH_ZLIB=ON \
>         -DARROW_WITH_ZSTD=ON \
>         -DARROW_WITH_LZ4=ON \
>         -DARROW_WITH_SNAPPY=ON \
>         -DARROW_PARQUET=ON \
>         -DARROW_PYTHON=ON \
>         -DARROW_PLASMA=ON \
>         -DARROW_BUILD_TESTS=OFF \
>         .. \
>     && make -j$(nproc) \
>     && make install \
>     && cd /arrow/python \
>     && python setup.py build_ext --build-type=$ARROW_BUILD_TYPE 
> --with-parquet \
>     && python setup.py install \
>     && rm -rf /arrow /tmp/apache-arrow.tar.gz {code}
> link to describe a bug
> [https://gist.github.com/bskaggs/fc3c8d0d553be54e2645616236fdc8c6]
>  
> and the final output of error. Please double check and release the fix.
>  
> {code:java}
> #12 164.8 -- stderr output is:
> #12 164.8 In file included from 
> /arrow/cpp/build/thrift_ep-prefix/src/thrift_ep/lib/cpp/src/thrift/transport/TSocket.cpp:37:
> #12 164.8 /usr/include/sys/poll.h:1:2: warning: #warning redirecting 
> incorrect #include <sys/poll.h> to <poll.h> [-Wcpp]
> #12 164.8     1 | #warning redirecting incorrect #include <sys/poll.h> to 
> <poll.h>
> #12 164.8       |  ^~~~~~~
> #12 164.8 In file included from 
> /arrow/cpp/build/thrift_ep-prefix/src/thrift_ep/lib/cpp/src/thrift/transport/TServerSocket.cpp:33:
> #12 164.8 /usr/include/sys/poll.h:1:2: warning: #warning redirecting 
> incorrect #include <sys/poll.h> to <poll.h> [-Wcpp]
> #12 164.8     1 | #warning redirecting incorrect #include <sys/poll.h> to 
> <poll.h>
> #12 164.8       |  ^~~~~~~
> #12 164.8 In file included from 
> /arrow/cpp/build/thrift_ep-prefix/src/thrift_ep/lib/cpp/src/thrift/transport/TSSLSocket.cpp:34:
> #12 164.8 /usr/include/sys/poll.h:1:2: warning: #warning redirecting 
> incorrect #include <sys/poll.h> to <poll.h> [-Wcpp]
> #12 164.8     1 | #warning redirecting incorrect #include <sys/poll.h> to 
> <poll.h>
> #12 164.8       |  ^~~~~~~
> #12 164.8 
> /arrow/cpp/build/thrift_ep-prefix/src/thrift_ep/lib/cpp/src/thrift/transport/TSSLSocket.cpp:
>  In function 'void apache::thrift::transport::cleanupOpenSSL()':
> #12 164.8 
> /arrow/cpp/build/thrift_ep-prefix/src/thrift_ep/lib/cpp/src/thrift/transport/TSSLSocket.cpp:157:3:
>  error: 'OPENSSL_thread_stop' was not declared in this scope; did you mean 
> 'OPENSSL_realloc'?
> #12 164.8   157 |   OPENSSL_thread_stop();
> #12 164.8       |   ^~~~~~~~~~~~~~~~~~~
> #12 164.8       |   OPENSSL_realloc
> #12 164.8 
> /arrow/cpp/build/thrift_ep-prefix/src/thrift_ep/lib/cpp/src/thrift/transport/TSSLSocket.cpp:
>  In member function 'virtual void 
> apache::thrift::transport::TSSLSocket::close()':
> #12 164.8 
> /arrow/cpp/build/thrift_ep-prefix/src/thrift_ep/lib/cpp/src/thrift/transport/TSSLSocket.cpp:395:5:
>  error: 'OPENSSL_thread_stop' was not declared in this scope; did you mean 
> 'OPENSSL_realloc'?
> #12 164.8   395 |     OPENSSL_thread_stop();
> #12 164.8       |     ^~~~~~~~~~~~~~~~~~~
> #12 164.8       |     OPENSSL_realloc
> #12 164.8 make[5]: *** [lib/cpp/CMakeFiles/thrift.dir/build.make:566: 
> lib/cpp/CMakeFiles/thrift.dir/src/thrift/transport/TSSLSocket.cpp.o] Error 1
> #12 164.8 make[5]: *** Waiting for unfinished jobs....
> #12 164.8 make[4]: *** [CMakeFiles/Makefile2:125: 
> lib/cpp/CMakeFiles/thrift.dir/all] Error 2
> #12 164.8 make[3]: *** [Makefile:156: all] Error 2
> #12 164.8
> #12 164.8 CMake Error at 
> /arrow/cpp/build/thrift_ep-prefix/src/thrift_ep-stamp/thrift_ep-build-RELEASE.cmake:47
>  (message):
> #12 164.8   Stopping after outputting logs.
> #12 164.8
> #12 164.8
> #12 164.8 make[2]: *** [CMakeFiles/thrift_ep.dir/build.make:86: 
> thrift_ep-prefix/src/thrift_ep-stamp/thrift_ep-build] Error 1
> #12 164.8 make[1]: *** [CMakeFiles/Makefile2:940: 
> CMakeFiles/thrift_ep.dir/all] Error 2
> #12 164.8 make[1]: *** Waiting for unfinished jobs....
> #12 187.8 -- re2_ep build command succeeded.  See also 
> /arrow/cpp/build/re2_ep-prefix/src/re2_ep-stamp/re2_ep-build-*.log
> #12 187.8 [ 20%] Performing install step for 're2_ep'
> #12 188.7 -- re2_ep install command succeeded.  See also 
> /arrow/cpp/build/re2_ep-prefix/src/re2_ep-stamp/re2_ep-install-*.log
> #12 188.7 [ 20%] Completed 're2_ep'
> #12 188.7 [ 20%] Built target re2_ep
> #12 212.4 -- jemalloc_ep build command succeeded.  See also 
> /arrow/cpp/build/jemalloc_ep-prefix/src/jemalloc_ep-stamp/jemalloc_ep-build-*.log
> #12 212.4 [ 20%] Performing install step for 'jemalloc_ep'
> #12 212.5 -- jemalloc_ep install command succeeded.  See also 
> /arrow/cpp/build/jemalloc_ep-prefix/src/jemalloc_ep-stamp/jemalloc_ep-install-*.log
> #12 212.5 [ 20%] Completed 'jemalloc_ep'
> #12 212.5 [ 20%] Built target jemalloc_ep
> #12 212.5 make: *** [Makefile:146: all] Error 2
> ------
> executor failed running [/bin/sh -c mkdir /arrow     && wget -q 
> https://github.com/apache/arrow/archive/apache-arrow-${ARROW_VERSION}.tar.gz 
> -O /tmp/apache-arrow.tar.gz     && tar -xvf /tmp/apache-arrow.tar.gz -C 
> /arrow --strip-components 1     && mkdir -p /arrow/cpp/build     && cd 
> /arrow/cpp/build     && cmake -DCMAKE_BUILD_TYPE=$ARROW_BUILD_TYPE         
> -DOPENSSL_ROOT_DIR=/usr/local/ssl         -DCMAKE_INSTALL_LIBDIR=lib         
> -DCMAKE_INSTALL_PREFIX=$ARROW_HOME         -DARROW_WITH_BZ2=ON         
> -DARROW_WITH_ZLIB=ON         -DARROW_WITH_ZSTD=ON         -DARROW_WITH_LZ4=ON 
>         -DARROW_WITH_SNAPPY=ON         -DARROW_PARQUET=ON         
> -DARROW_PYTHON=ON         -DARROW_PLASMA=ON         -DARROW_BUILD_TESTS=OFF   
>       ..     && make -j$(nproc)     && make install     && cd /arrow/python   
>   && python setup.py build_ext --build-type=$ARROW_BUILD_TYPE --with-parquet  
>    && python setup.py install     && rm -rf /arrow /tmp/apache-arrow.tar.gz]: 
> exit code: 2 {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to