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

[C++] arrowConfig.cmake includes uninstalled targets

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.13.0, 0.14.0, 0.14.1, 0.15.0
    • Fix Version/s: 1.0.0
    • Component/s: C++

      Description

      I'm building a CMake project against arrow and I'm using:

      find_package(arrow 0.13 CONFIG REQUIRED)
      

      to get the arrow_shared target in scope. This works for me on macOS. I installed apache-arrow with:

      brew install apache-arrow

      However, when I attempt to build the project in a ubuntu xenial container, I get the following CMake error:

      CMake Error at /usr/lib/x86_64-linux-gnu/cmake/arrow/arrowTargets.cmake:151 (message):
      The imported target "arrow_cuda_shared" references the file
      
      
      "/usr/lib/x86_64-linux-gnu/libarrow_cuda.so.13.0.0"
      
      
      but this file does not exist. Possible reasons include:
      
      
      * The file was deleted, renamed, or moved to another location.
      
      
      * An install or uninstall procedure did not complete successfully.
      
      
      * The installation package was faulty and contained
      
      
      "/usr/lib/x86_64-linux-gnu/cmake/arrow/arrowTargets.cmake"
      
      
      but not all the files it references.
      
      
      Call Stack (most recent call first):
      /usr/lib/x86_64-linux-gnu/cmake/arrow/arrowConfig.cmake:61 (include)
      CMakeLists.txt:15 (find_package)
      

      I installed arrow with:

      curl -sSL "https://dist.apache.org/repos/dist/dev/arrow/KEYS" | apt-key add -
      echo "deb [arch=amd64] https://dl.bintray.com/apache/arrow/ubuntu/ xenial main" | tee -a /etc/apt/sources.list
      apt-get update
      apt-get install -y libarrow-dev=0.13.0-1
      

      I can also install libarrow-cuda-dev, but I don't want to because I don't need it.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kou Kouhei Sutou
                Reporter:
                mbrobbel Matthijs Brobbel
              • 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
                  1h