You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Neal Richardson (Jira)" <ji...@apache.org> on 2022/07/02 14:02:00 UTC

[jira] [Updated] (ARROW-16903) [R] Install failure on Ubuntu-22.04 when libboost-filesystem-dev is missing

     [ https://issues.apache.org/jira/browse/ARROW-16903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Neal Richardson updated ARROW-16903:
------------------------------------
    Summary: [R] Install failure on Ubuntu-22.04 when libboost-filesystem-dev is missing  (was: Install failure on Ubuntu-22.04 when libboost-filesystem-dev is missing)

> [R] Install failure on Ubuntu-22.04 when libboost-filesystem-dev is missing
> ---------------------------------------------------------------------------
>
>                 Key: ARROW-16903
>                 URL: https://issues.apache.org/jira/browse/ARROW-16903
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: R
>            Reporter: Jeroen
>            Priority: Major
>
> Trying to install the R package on Ubuntu 22.04 gives the following unhelpful error for any configuration, even when using LIBARROW_MINIMAL=true or FORCE_BUNDLED_BUILD=true
> {code:java}
>    * installing *source* package ‘arrow’ ...
>   ** using staged installation
>   Replacing default rmarkdown theme...
>   *** No libarrow binary found for version 8.0.0.9000 on ubuntu-22.04
>   *** Proceeding without libarrow
>   ------------------------- NOTE ---------------------------
>   There was an issue preparing the Arrow C++ libraries.
>   See https://arrow.apache.org/docs/r/articles/install.html
>   ---------------------------------------------------------
> {code}
> It would be helpful in the message above to mention `ARROW_R_DEV=true` to debug this further because that is not obvious.
> Now the issue turned out to be this:
> {code:java}
> -- Could NOT find Boost: missing: system filesystem (found /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found suitable version "1.74.0", minimum required is "1.58"))
> CMake Error at cmake_modules/ThirdpartyToolchain.cmake:892 (add_library):
>   add_library cannot create imported target "Boost::headers" because another
>   target with the same name already exists.
> Call Stack (most recent call first):
>   cmake_modules/ThirdpartyToolchain.cmake:154 (build_boost)
>   cmake_modules/ThirdpartyToolchain.cmake:255 (build_dependency)
>   cmake_modules/ThirdpartyToolchain.cmake:1005 (resolve_dependency)
>   CMakeLists.txt:567 (include)
> {code}
> So my system had boost, but it did not have libboost-filesystem-dev. This leads to a fatal error, even when we build with bundled dependencies. Is that expected? It is not documented on https://arrow.apache.org/docs/r/articles/install.html that this is a hard requirement.



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