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

Kouhei Sutou commented on ARROW-17291:
--------------------------------------

Do you mean that "do I need to rebuild PyArrow"? If so, you don't need to 
rebuild PyArrow. You can reuse existing PyArrow binaries even when you rebuild 
your Apache Arrow C++ with {{-DARROW_JEMALLOC=OFF}}.

> [C++] Build jemalloc_ep source code failed with Apache Arrow 2.0.0 on aarch64 
> CentOS 7
> --------------------------------------------------------------------------------------
>
>                 Key: ARROW-17291
>                 URL: https://issues.apache.org/jira/browse/ARROW-17291
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>    Affects Versions: 2.0.0
>         Environment: CentOS Linux release 7.9.2009 (Core)
> cross-complier: ARMv8 aarch64
>            Reporter: chendan
>            Priority: Major
>
> I want to build pyarrow for arm platform.  I follow the steps in 
> [https://arrow.apache.org/docs/developers/python.html#build-and-test]. When I 
> finished cmake step and performed make -j4 step there was an error occured:
> {noformat}
> (pyarrow-dev) [root@localhost build]# make -j4
> [  0%] Built target toolchain
> [  0%] Performing configure step for 'jemalloc_ep'
> [  4%] Built target arrow_dataset_objlib
> CMake Error at 
> /root/build/arrow/cpp/build/jemalloc_ep-prefix/src/jemalloc_ep-stamp/jemalloc_ep-configure-DEBUG.cmake:37
>  (message):
>   Command failed: 77
>    './configure' 
> 'AR=/opt/aarch64-kedacom-linux/bin/aarch64-kedacom-linux-gnu-ar' 
> 'CC=/opt/aarch64-kedacom-linux/bin/aarch64-kedacom-linux-gnu-gcc' 
> '{-}{{-}}prefix=/root/build/arrow/cpp/build/jemalloc_ep-prefix/src/jemalloc_ep/dist/'
>  '{-}{{-}}with-jemalloc-prefix=je_arrow_' 
> '{-}{{-}}with-private-namespace=je_arrow_private_' '{-}{{-}}without-export' 
> '{-}{{-}}disable-shared' '{-}{{-}}disable-cxx' '{-}{{-}}disable-libdl' 
> '\{-}-disable-initial-exec-tls'
>   See also
>     
> /root/build/arrow/cpp/build/jemalloc_ep-prefix/src/jemalloc_ep-stamp/jemalloc_ep-configure-*.log
> {noformat}
> – stdout output is:
> {noformat}
> checking for xsltproc... /usr/bin/xsltproc
> 1
> checking for x86_64-conda-linux-gnu-gcc... 2
> /opt/aarch64-kedacom-linux/bin/aarch64-kedacom-linux-gnu-gcc
> write conftest
> checking whether the C compiler works... no
> {noformat}
> – stderr output is:
> {noformat}
> configure: error: in 
> `/root/build/arrow/cpp/build/jemalloc_ep-prefix/src/jemalloc_ep':
> configure: error: C compiler cannot create executables
> See `config.log' for more details
> CMake Error at 
> /root/build/arrow/cpp/build/jemalloc_ep-prefix/src/jemalloc_ep-stamp/jemalloc_ep-configure-DEBUG.cmake:47
>  (message):
>   Stopping after outputting logs.
> make[2]: *** [CMakeFiles/jemalloc_ep.dir/build.make:92: 
> jemalloc_ep-prefix/src/jemalloc_ep-stamp/jemalloc_ep-configure] Error 1
> make[1]: *** [CMakeFiles/Makefile2:725: CMakeFiles/jemalloc_ep.dir/all] Error 
> 2
> make: *** [Makefile:146: all] Error 2
> {noformat}
>  
> I add "echo $CFLAGS" into the jemalloc_ep configure file. The printed CFLAS 
> is wrong:
> {{-march=nocona -mtune=haswell -ftree-vectorize -fPIC 
> -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem 
> /root/anaconda3/envs/pyarrow-dev/include}}
> Nocona is not applicable for armv8 CPU. How to solve it?



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

Reply via email to