Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R] Install failure on Ubuntu-22.04 when libboost-filesystem-dev is missing #32224

Closed
asfimport opened this issue Jun 24, 2022 · 1 comment
Closed

Comments

@asfimport
Copy link
Collaborator

asfimport commented Jun 24, 2022

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

   * installing *source* packagearrow’ ...
  ** 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
  ---------------------------------------------------------

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:

-- 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)

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.

Reporter: Jeroen / @jeroen

Related issues:

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

@asfimport
Copy link
Collaborator Author

David Li / @lidavidm:
Also reported by ARROW-16993

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant