[ https://issues.apache.org/jira/browse/ARROW-17265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17579610#comment-17579610 ]
chendan commented on ARROW-17265: --------------------------------- [~rokm] I run make -j4 in cpp/build. I found that some libs were built out: libarrow.a libarrow_python.a libarrow_python.so.200 libarrow.so libarrow.so.200.0.0 libarrow_bundled_dependencies.a libarrow_python.so libarrow_python.so.200.0.0 libarrow.so.200 libparquet.a However make command was not finished successfully: /opt/aarch64-kedacom-linux/lib/gcc/aarch64-kedacom-linux-gnu/8.3.0/../../../../aarch64-kedacom-linux-gnu/bin/ld: /root/anaconda3/envs/pyarrow-dev/lib/libthrift.so: error adding symbols: file in wrong format This is because the libthrift.so has not been built out by my ARM cross-complier. Are the libs list upon enough for building python libs? I have tried it. An error occured: (pyarrow-dev) [root@localhost python]# python setup.py install Traceback (most recent call last): File "setup.py", line 634, in <module> url='https://arrow.apache.org/' File "/root/anaconda3/envs/pyarrow-dev/lib/python3.6/site-packages/setuptools/__init__.py", line 153, in setup return distutils.core.setup(**attrs) File "/root/anaconda3/envs/pyarrow-dev/lib/python3.6/distutils/core.py", line 108, in setup _setup_distribution = dist = klass(attrs) File "/root/anaconda3/envs/pyarrow-dev/lib/python3.6/site-packages/setuptools/dist.py", line 457, in __init__ for k, v in attrs.items() File "/root/anaconda3/envs/pyarrow-dev/lib/python3.6/distutils/dist.py", line 281, in __init__ self.finalize_options() File "/root/anaconda3/envs/pyarrow-dev/lib/python3.6/site-packages/setuptools/dist.py", line 830, in finalize_options for ep in sorted(loaded, key=by_order): File "/root/anaconda3/envs/pyarrow-dev/lib/python3.6/site-packages/setuptools/dist.py", line 829, in <lambda> loaded = map(lambda e: e.load(), filtered) File "/root/anaconda3/envs/pyarrow-dev/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2450, in load return self.resolve() File "/root/anaconda3/envs/pyarrow-dev/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2456, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/root/anaconda3/envs/pyarrow-dev/lib/python3.6/site-packages/setuptools_scm/__init__.py", line 5 from __future__ import annotations ^ SyntaxError: future feature annotations is not defined I google it. It seems that I need to use python3.7 version to run setup.py. But I need to use python3.6. How to solve it? > build python lib failed on both X86 and ARMv8 > --------------------------------------------- > > Key: ARROW-17265 > URL: https://issues.apache.org/jira/browse/ARROW-17265 > Project: Apache Arrow > Issue Type: Bug > Components: Python > Affects Versions: 2.0.0, 8.0.0 > Environment: os: centos 7.9 > CPU: X86_64 > Reporter: chendan > Priority: Critical > Labels: RedHat > Attachments: CMakeError.log, CMakeOutput-1.log, CMakeOutput.log > > > I want to build pyarrow lib in ARM platform. I download pyarrow source code > version 8.0.0 and run "python setup.py install". An error occur: > Using ld linker > Configured for RELEASE build (set with cmake > -DCMAKE_BUILD_TYPE=\{release,debug,...}) > -- Build Type: RELEASE > -- Generator: Unix Makefiles > -- Build output directory: > /root/build/pyarrow-8.0.0/build/temp.linux-x86_64-3.6/release > -- Found Python3: /root/anaconda3/envs/py36test/bin/python (found version > "3.6.13") found components: Interpreter Development.Module NumPy > -- Found Python3Alt: /root/anaconda3/envs/py36test/bin/python > -- Found PkgConfig: /usr/bin/pkg-config (found version "0.27.1") > -- Could NOT find Arrow (missing: Arrow_DIR) > -- Checking for module 'arrow' > -- No package 'arrow' found > CMake Error at > /usr/local/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:230 > (message): > Could NOT find Arrow (missing: ARROW_INCLUDE_DIR ARROW_LIB_DIR > ARROW_FULL_SO_VERSION ARROW_SO_VERSION) > Call Stack (most recent call first): > /usr/local/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:594 > (_FPHSA_FAILURE_MESSAGE) > cmake_modules/FindArrow.cmake:450 (find_package_handle_standard_args) > cmake_modules/FindArrowPython.cmake:46 (find_package) > CMakeLists.txt:231 (find_package) > -- Configuring incomplete, errors occurred! > > This error always occur no matter what version I choose(pyarrow 8.0.0 or > 2.0.0) and no matter what platform (X86 or ARM c complier) I choose. When I > downloaded arrow source code and enter python folder and run "python setup.py > install" the same error occur. > It seems that it's an bug on cmake files. I could not build python lib for my > ARM plarform. -- This message was sent by Atlassian Jira (v8.20.10#820010)