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

[C++] CMake fails with file not found error while bundling thrift if python is not installed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.16.0
    • C++

    Description

      I had this error message while I was trying to reproduce another issue in docker.

      To reproduce:

      ```
      FROM debian:buster
      RUN apt-get update
      RUN DEBIAN_FRONTEND=noninteractive apt-get install -y git build-essential cmake

      WORKDIR /app
      RUN git clone https://github.com/apache/arrow.git
      WORKDIR /app/arrow/cpp/build
      RUN git checkout 167cea0 # HEAD as of 10-Aug-19
      RUN cmake -DARROW_PARQUET=ON -DARROW_DEPENDENCY_SOURCE=BUNDLED ..
      RUN cmake --build . --target thrift_ep -j 8
      ```

      Relevant part of output:
      ```
      Scanning dependencies of target thrift_ep
      [ 66%] Creating directories for 'thrift_ep'
      [ 66%] Performing download step (verify and extract) for 'thrift_ep'
      CMake Error at thrift_ep-stamp/verify-thrift_ep.cmake:11 (message):
      File not found: /thrift/0.12.0/thrift-0.12.0.tar.gz
      make[3]: *** [CMakeFiles/thrift_ep.dir/build.make:90: thrift_ep-prefix/src/thrift_ep-stamp/thrift_ep-download] Error 1
      make[2]: *** [CMakeFiles/Makefile2:916: CMakeFiles/thrift_ep.dir/all] Error 2
      make[1]: *** [CMakeFiles/Makefile2:928: CMakeFiles/thrift_ep.dir/rule] Error 2
      make: *** [Makefile:487: thrift_ep] Error 2
      ```

      Installing python fixes the problem, but this isn't directly clear from the error message. The source of issue is that execute_process in get_apache_mirrors macro silently fails and returns empty APACHE_MIRROR value since PYTHON_EXECUTABLE was empty.

      Attachments

        Issue Links

          Activity

            People

              kou Kouhei Sutou
              ozars Omer Ozarslan
              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 - 0.5h
                  0.5h