[
https://issues.apache.org/jira/browse/ARROW-10412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17222821#comment-17222821
]
Steven Smith commented on ARROW-10412:
--------------------------------------
Here's the grpc binaries and cmake files, all created with a cmake build of
grpc. All the shared libraries are in ${prefix}/lib.
{code:java}
$ ls -lah /opt/local/bin/grpc_*
-rwxr-xr-x 1 root wheel 111K Oct 28 12:31 /opt/local/bin/grpc_cpp_plugin*
-rwxr-xr-x 1 root wheel 55K Oct 28 12:31 /opt/local/bin/grpc_csharp_plugin*
-rwxr-xr-x 1 root wheel 54K Oct 28 12:31 /opt/local/bin/grpc_node_plugin*
-rwxr-xr-x 1 root wheel 78K Oct 28 12:31
/opt/local/bin/grpc_objective_c_plugin*
-rwxr-xr-x 1 root wheel 62K Oct 28 12:31 /opt/local/bin/grpc_php_plugin*
-rwxr-xr-x 1 root wheel 49K Oct 28 12:31 /opt/local/bin/grpc_python_plugin*
-rwxr-xr-x 1 root wheel 52K Oct 28 12:31 /opt/local/bin/grpc_ruby_plugin*
{code}
{code:java}
$ ls -lah /opt/local/lib/cmake/grpc/
total 32
drwxr-xr-x 7 root wheel 224B Oct 28 12:31 ./
drwxr-xr-x 82 root admin 2.6K Oct 28 18:43 ../
-rw-r--r-- 1 root wheel 497B Oct 28 12:30 gRPCConfig.cmake
-rw-r--r-- 1 root wheel 923B Oct 28 12:30 gRPCConfigVersion.cmake
-rw-r--r-- 1 root wheel 9.7K Oct 28 12:30 gRPCTargets-macports.cmake
-rw-r--r-- 1 root wheel 8.1K Oct 28 12:30 gRPCTargets.cmake
drwxr-xr-x 4 root wheel 128B Oct 28 12:31 modules/
{code}
> [C++] Cmake Build Fails with grpc 1.33.1, "GRPC_CPP_PLUGIN-NOTFOUND: program
> not found or is not executable"
> ------------------------------------------------------------------------------------------------------------
>
> Key: ARROW-10412
> URL: https://issues.apache.org/jira/browse/ARROW-10412
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Affects Versions: 2.0.0
> Reporter: Steven Smith
> Priority: Major
> Labels: cmake, grpc
> Attachments: ad7d47f2f9e6.txt
>
>
> A cmake build of Apache Arrow 2.0.0 fails when using library grpc version
> 1.33.1 with the error:
> {code:java}
> GRPC_CPP_PLUGIN-NOTFOUND: program not found or is not executable
> {code}
> 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:
>
> {code:java}
> /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.{code}
> Example build log: [https://paste.z0k.xyz/ad7d47f2f9e6.txt]
> Cmake flags:
> {code:java}
> -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}
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)