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

[Packaging][wheel] Could NOT Find LLVM_DIR Error when Building with Gandiva

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.17.1
    • None
    • C++ - Gandiva, Python
    • None

    Description

      The error mentioned in https://issues.apache.org/jira/browse/ARROW-3874 appears when trying to build with Gandiva on macOS, Amazon Linux and Ubuntu 18.04. After running docker-compose run -e PYTHON_VERSION="3.7" centos-python-manylinux1 I get the error

      CMake Error at /opt/_internal/cpython-3.7.6/lib/python3.7/site-packages/cmake/data/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
        Could NOT find LLVMAlt (missing: LLVM_PACKAGE_VERSION CLANG_EXECUTABLE
        LLVM_FOUND LLVM_LINK_EXECUTABLE)
       Call Stack (most recent call first):
        /opt/_internal/cpython-3.7.6/lib/python3.7/site-packages/cmake/data/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
        cmake_modules/FindLLVMAlt.cmake:71 (find_package_handle_standard_args)
        src/gandiva/CMakeLists.txt:28 (find_package)
      

       

      Attempting to set LLVM_DIR using export LLVM_DIR does not work. Also, setting the -DLLVM_DIR flag for CMAKE by changing the build_arrow.sh file does not seem to work either. Interesting to note is that there was a patch given for a file called FindLLVM.cmake which does not exist and there is only FindLLVMAlt.cmake now.

       

       

      Attachments

        1. error-log-build-docker.txt
          39 kB
          Nolo Ogbirner
        2. errorlogbuild.txt
          11 kB
          Nolo Ogbirner
        3. error-build-with-llvmflag.txt
          56 kB
          Nolo Ogbirner
        4. build_arrow.sh
          5 kB
          Nolo Ogbirner

        Activity

          People

            Unassigned Unassigned
            Lachrymatory Nolo Ogbirner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: