You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Alenka Frim (Jira)" <ji...@apache.org> on 2022/09/29 08:27:00 UTC
[jira] [Comment Edited] (ARROW-17753) [C++][Python][Docs] Provide instructions for "fixing" build environment issues
[ https://issues.apache.org/jira/browse/ARROW-17753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17605712#comment-17605712 ]
Alenka Frim edited comment on ARROW-17753 at 9/29/22 8:26 AM:
--------------------------------------------------------------
The fix for this issues is:
* Delete stale Arrow C++ and PyArrow build artifacts before rebuilding: navigate to the arrow folder and run {{git clean -Xfd .}}.
* Delete {{lib}}, {{include}} and {{share}} directories if the Arrow libraries are located on a custom path and not in the arrow folder.
* If Arrow libraries are installed on a custom path instead of a common system one you will have to add the path to {{CMAKE_PREFIX_PATH}}. See: https://arrow.apache.org/docs/dev/cpp/build_system.html
was (Author: alenkaf):
The fix for this issues is:
* Delete stale Arrow C++ and PyArrow build artifacts before rebuilding: navigate to the arrow folder and run git clean -Xfd ..
* Delete lib include and share directories if the Arrow libraries are located on a custom path and not in the arrow folder.
* If Arrow libraries are installed on a custom path instead of a common system one you will have to add the path to CMAKE_PREFIX_PATH. See: https://arrow.apache.org/docs/dev/cpp/build_system.html
> [C++][Python][Docs] Provide instructions for "fixing" build environment issues
> ------------------------------------------------------------------------------
>
> Key: ARROW-17753
> URL: https://issues.apache.org/jira/browse/ARROW-17753
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++, Documentation, Python
> Reporter: Alenka Frim
> Assignee: Anja Boskovic
> Priority: Major
> Labels: pull-request-available
> Fix For: 10.0.0
>
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> Due to bigger changes in the build workflow for Arrow C++ coming up in the 10.0.0 release, failures when building the libraries are quite common. The errors we bump into are similar to:
> {code:java}
> CMake Error at build/dist/lib/cmake/ArrowPython/ArrowPythonConfig.cmake:61 (arrow_keep_backward_compatibility):
> Unknown CMake command "arrow_keep_backward_compatibility".
> Call Stack (most recent call first):
> CMakeLists.txt:240 (find_package)
> {code}
> or
> {code:java}
> -- Found Python3Alt: /Users/alenkafrim/repos/pyarrow-dev-9/bin/python
> CMake Error at /opt/homebrew/Cellar/cmake/3.24.1/share/cmake/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
> By not providing "FindArrow.cmake" in CMAKE_MODULE_PATH this project has
> asked CMake to find a package configuration file provided by "Arrow", but
> CMake did not find one.
> Could not find a package configuration file provided by "Arrow" with any of
> the following names:
> ArrowConfig.cmake
> arrow-config.cmake
> Add the installation prefix of "Arrow" to CMAKE_PREFIX_PATH or set
> "Arrow_DIR" to a directory containing one of the above files. If "Arrow"
> provides a separate development package or SDK, be sure it has been
> installed.
> Call Stack (most recent call first):
> build/dist/lib/cmake/ArrowPython/ArrowPythonConfig.cmake:54 (find_dependency)
> CMakeLists.txt:240 (find_package)
> {code}
> Connected issues:
> - https://issues.apache.org/jira/browse/ARROW-17577
> - https://issues.apache.org/jira/browse/ARROW-17575
--
This message was sent by Atlassian Jira
(v8.20.10#820010)