You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Kouhei Sutou (Jira)" <ji...@apache.org> on 2021/03/06 21:18:00 UTC

[jira] [Commented] (ARROW-11888) Cmake build of Apache Arrow fails using grpc's Findre2.cmake with "add_library cannot create imported target "RE2::re2" because another target with the same name already exists."

    [ https://issues.apache.org/jira/browse/ARROW-11888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17296660#comment-17296660 ] 

Kouhei Sutou commented on ARROW-11888:
--------------------------------------

The latest build shows {{gprc_cpp_plugin}} related error:

{noformat}
  cd /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_devel_apache-arrow/apache-arrow/work/build/src/arrow/flight && /opt/local/bin/protoc -I/opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_devel_apache-arrow/apache-arrow/work/arrow-3.0.0/cpp/../format --grpc_out=/opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_devel_apache-arrow/apache-arrow/work/build/src/arrow/flight --plugin=protoc-gen-grpc=/opt/local/bin/grpc_cpp_plugin /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_devel_apache-arrow/apache-arrow/work/arrow-3.0.0/cpp/../format/Flight.proto
  dyld: Library not loaded: /opt/local/lib/libprotoc.22.dylib
    Referenced from: /opt/local/bin/grpc_cpp_plugin
    Reason: image not found
  --grpc_out: protoc-gen-grpc: Plugin killed by signal 6.
{noformat}

Could you confirm that {{/opt/local/lib/libprotoc.22.dylib}} exists?

> Cmake build of Apache Arrow fails using grpc's Findre2.cmake with "add_library cannot create imported target "RE2::re2" because another target with the same name already exists."
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ARROW-11888
>                 URL: https://issues.apache.org/jira/browse/ARROW-11888
>             Project: Apache Arrow
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>         Environment: macOS 10.15.7 19H524
> Xcode 12.4 12D4e
>            Reporter: Steven Smith
>            Priority: Major
>
> I'm trying to create a MacPorts port of Apache Arrow. See [https://github.com/macports/macports-ports/pull/7791]
> I'm using a library install of grpc, version 1.36.2. This issue is also observed with grpc version 1.35.0.
> The grpc cmake file [Findre2.cmake|https://github.com/grpc/grpc/blob/master/cmake/modules/Findre2.cmake] causes this cmake error when building pyarrow.
> I see that there is also a fileĀ Findre2.cmake created and installed in the cmake build of arrow. Also see this issue raised at grpc, [https://github.com/grpc/grpc/issues/25434]
> Error:
> :info:build CMake Error at /opt/local/lib/cmake/grpc/modules/Findre2.cmake:29 (add_library):
> :info:build add_library cannot create imported target "re2::re2" because another target
> :info:build with the same name already exists.
> Related:
>  * [http://mail-archives.apache.org/mod_mbox/arrow-dev/202009.mbox/%3C6ECB7D60-844F-410D-8840-24F2CE261752@yahoo.com%3E]
> [http://mail-archives.apache.org/mod_mbox/arrow-jira/202009.mbox/%3CJIRA.13327607.1600156125000.372264.1600157460269@Atlassian.JIRA%3E]
>  * [https://www.mail-archive.com/dev@arrow.apache.org/msg20631.html]
>  * [https://github.com/macports/macports-ports/pull/7791]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)