You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Omer Ozarslan (JIRA)" <ji...@apache.org> on 2019/08/10 17:08:00 UTC

[jira] [Created] (ARROW-6195) [C++] CMake fails with file not found error while bundling thrift if python is not installed

Omer Ozarslan created ARROW-6195:
------------------------------------

             Summary: [C++] CMake fails with file not found error while bundling thrift if python is not installed
                 Key: ARROW-6195
                 URL: https://issues.apache.org/jira/browse/ARROW-6195
             Project: Apache Arrow
          Issue Type: Bug
            Reporter: Omer Ozarslan


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 
RUN git checkout 167cea0 # HEAD as of 10-Aug-19
WORKDIR /app/arrow/cpp/build 
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.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)