Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-10495

[C++] find_package(Arrow) is broken on Ubuntu 18

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 3.0.0
    • Packaging
    • Ubuntu 18

    Description

      On Ubuntu 18, after updating Arrow version to 2.0.0, ROOT  (https://github.com/root-project/root) builds are broken:

      CMake Warning at cmake/modules/SearchInstalledSoftware.cmake:16 (_find_package):
       By not providing "FindRE2.cmake" in CMAKE_MODULE_PATH this project has
       asked CMake to find a package configuration file provided by "RE2", but
       CMake did not find one.
      Could not find a package configuration file provided by "RE2" with any of
       the following names:
      RE2Config.cmake
       re2-config.cmake
      Add the installation prefix of "RE2" to CMAKE_PREFIX_PATH or set "RE2_DIR"
       to a directory containing one of the above files. If "RE2" provides a
       separate development package or SDK, be sure it has been installed.
       Call Stack (most recent call first):
       /usr/share/cmake-3.10/Modules/CMakeFindDependencyMacro.cmake:48 (find_package)
       /usr/lib/x86_64-linux-gnu/cmake/arrow/ArrowConfig.cmake:95 (find_dependency)
       cmake/modules/SearchInstalledSoftware.cmake:16 (_find_package)
      

      Looks like a problem is that for a Debian/Ubuntu packaging is missing FindRE2.cmake in a list https://github.com/apache/arrow/blob/master/dev/tasks/linux-packages/apache-arrow/debian/libarrow-dev.install

      CMake files I got after installation: 

      ~$ ls -la /usr/lib/x86_64-linux-gnu/cmake/arrow
      t
      -rw-r--r-- 1 root root 1175 Okt 13 01:47 arrow-config.cmake
      -rw-r--r-- 1 root root 4677 Okt 13 01:47 ArrowConfig.cmake
      -rw-r--r-- 1 root root 1269 Okt 13 01:47 ArrowConfigVersion.cmake
      -rw-r--r-- 1 root root 7345 Okt 13 01:47 ArrowOptions.cmake
      -rw-r--r-- 1 root root 4298 Okt 13 01:47 ArrowTargets.cmake
      -rw-r--r-- 1 root root 1342 Okt 13 01:47 ArrowTargets-release.cmake
      -rw-r--r-- 1 root root 16770 Okt 13 01:47 FindArrow.cmake
      -rw-r--r-- 1 root root 5755 Okt 13 01:47 FindBrotli.cmake
      -rw-r--r-- 1 root root 3043 Okt 13 01:47 FindLz4.cmake
      -rw-r--r-- 1 root root 5258 Okt 13 01:47 FindParquet.cmake
      -rw-r--r-- 1 root root 2384 Okt 13 01:47 FindSnappy.cmake
      -rw-r--r-- 1 root root 2703 Okt 13 01:47 Findutf8proc.cmake
      -rw-r--r-- 1 root root 3243 Okt 13 01:47 Findzstd.cmake
      -rw-r--r-- 1 root root 2988 Okt 13 01:47 ParquetConfig.cmake
      -rw-r--r-- 1 root root 1269 Okt 13 01:47 ParquetConfigVersion.cmake
      -rw-r--r-- 1 root root 4094 Okt 13 01:47 ParquetTargets.cmake
      -rw-r--r-- 1 root root 1370 Okt 13 01:47 ParquetTargets-release.cmake

       

      Manually adding FindRE2.cmake in /usr/lib/x86_64-linux-gnu/cmake/arrow is fixing CMake configuration issue.

      Attachments

        Issue Links

          Activity

            People

              kou Kouhei Sutou
              oshadura Oksana Shadura
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m

                  Slack

                    Issue deployment