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

[C++] CMake Build Fails with grpc 1.33.1, "GRPC_CPP_PLUGIN-NOTFOUND: program not found or is not executable"

    XMLWordPrintableJSON

Details

    Description

      A cmake build of Apache Arrow 2.0.0 fails when using library grpc version 1.33.1 with the error: 

      GRPC_CPP_PLUGIN-NOTFOUND: program not found or is not executable
      

      This is for a Macports port of Apache Arrow; see https://github.com/macports/macports-ports/pull/7791.

      The build previously worked on grpc version 1.30.2. (Correction: this was using the Makefile, not the cmake system.)

      I am following the build instructions at 

      https://github.com/apache/arrow/blob/master/docs/source/developers/python.rst#build-and-test

      I verify that the executable grpc_cpp_plugin is installed with all grpc shared libraries.

      I've read cpp/cmake_modules/FindgRPCAlt.cmake and believe that I've set all the correct flags for cmake (below) and believe that this is an issue with the arrow cmake configuration.

      The error occurs at this line:

       

      /opt/local/bin/protoc -I/opt/local/var/macports/build/_Users_runner_work_1_s_devel_apache-arrow/apache-arrow/work/arrow-2.0.0/cpp/../format --cpp_out=/opt/local/var/macports/build/_Users_runner_work_1_s_devel_apache-arrow/apache-arrow/work/build/src/arrow/flight /opt/local/var/macports/build/_Users_runner_work_1_s_devel_apache-arrow/apache-arrow/work/arrow-2.0.0/cpp/../format/Flight.proto
      cd /opt/local/var/macports/build/_Users_runner_work_1_s_devel_apache-arrow/apache-arrow/work/build/src/arrow/flight && /opt/local/bin/protoc -I/opt/local/var/macports/build/_Users_runner_work_1_s_devel_apache-arrow/apache-arrow/work/arrow-2.0.0/cpp/../format --grpc_out=/opt/local/var/macports/build/_Users_runner_work_1_s_devel_apache-arrow/apache-arrow/work/build/src/arrow/flight --plugin=protoc-gen-grpc=GRPC_CPP_PLUGIN-NOTFOUND /opt/local/var/macports/build/_Users_runner_work_1_s_devel_apache-arrow/apache-arrow/work/arrow-2.0.0/cpp/../format/Flight.proto
      GRPC_CPP_PLUGIN-NOTFOUND: program not found or is not executable
      Please specify a program using absolute path or make sure the program is available in your PATH system variable
      --grpc_out: protoc-gen-grpc: Plugin failed with status code 1.

      Example build log: https://paste.z0k.xyz/ad7d47f2f9e6.txt

      Cmake flags: 

                          -DARROW_FLIGHT=ON \
                          -DARROW_GRPC_USE_SHARED=ON \
                          -DARROW_JEMALLOC=OFF \
                          -DARROW_ORC=ON \
                          -DARROW_PARQUET=ON \
                          -DARROW_PLASMA=ON \
                          -DARROW_PROTOBUF_USE_SHARED=ON \
                          -DARROW_PYTHON=ON \
                          -DARROW_USE_CCACHE=OFF \
                          -DARROW_WITH_BZ2=ON \
                          -DARROW_WITH_ZLIB=ON \
                          -DARROW_WITH_ZSTD=ON \
                          -DARROW_WITH_LZ4=ON \
                          -DARROW_WITH_SNAPPY=ON \
                          -DARROW_WITH_BROTLI=ON \
                          -DARROW_INSTALL_NAME_RPATH=OFF \
                          -DCARES_PREFIX=${prefix} \
                          -DgRPC_INSTALL=OFF \
                          -DgRPC_ROOT=${prefix} \
                          -DgRPC_BUILD_TESTS=OFF \
                          -DgRPC_CARES_PROVIDER=package \
                          -DgRPC_ABSL_PROVIDER=package \
                          -DgRPC_PROTOBUF_PROVIDER=package \
                          -DgRPC_RE2_PROVIDER=package \
                          -DgRPC_SSL_PROVIDER=package \
                          -DgRPC_ZLIB_PROVIDER=package \
                          -DLLVM_ROOT=${llvm_prefix}
      

      Attachments

        1. 8ad82fffe224.txt
          1024 kB
          Steven Smith
        2. ad7d47f2f9e6.txt
          8.00 MB
          Steven Smith

        Issue Links

          Activity

            People

              kou Kouhei Sutou
              s.t.smith Steven Smith
              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 10m
                  1h 10m