apache / arrow

Apache Arrow is the universal columnar format and multi-language toolbox for fast data interchange and in-memory analytics
https://arrow.apache.org/
Apache License 2.0
14.56k stars 3.54k forks source link

[Doc][C++][Python]Building on M1 with conda and "-DARROW_JEMALLOC=OFF" #31459

Open asfimport opened 2 years ago

asfimport commented 2 years ago

Add a note to C++ and Python development documentation about issues building on M1 inside conda env with similar errors:


Invalid configuration `arm64-apple-darwin20.0.0': machine `arm64-apple' not recognized
configure: error: /bin/sh build-aux/config.sub arm64-apple-darwin20.0.0 failed

suggesting the use of


"-DARROW_JEMALLOC=OFF"

Reporter: Alenka Frim / @AlenkaF

Note: This issue was originally created as ARROW-16040. Please see the migration documentation for further details.

asfimport commented 2 years ago

Yibo Cai / @cyb70289: Will you upload the build steps and failure message? I can build arrow c++ on m1 with jemalloc. But I didn't tested python.

asfimport commented 2 years ago

Xinyu Zeng / @XinyuZeng: I think it is related to the conda environment. Straightly follow the python development doc using conda will result in this build failure in c++.

asfimport commented 2 years ago

Alenka Frim / @AlenkaF: Thank you @cyb70289 for pointing out the lack of the report description!

I built with "-DARROW_JEMALLOC=OFF" for a while now and tried without this flag just now (to post the failure message) and it works fine!

@XinyuZeng could you pls upload the build steps and the full failure message? Maybe to the issue where the discussion originates from: https://issues.apache.org/jira/browse/ARROW-15459 .

In case there will be no need to add content to the documentation, I will close this issue.