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

Steven Smith commented on ARROW-11888:
--------------------------------------

> re2Config.cmake

MacPorts does not provide this cmake file and does not use a cmake build for 
re2 because re2 itself recommends against using cmake:

"RE2 supports CMake mostly for the sake of users who don't have GNU make (e.g. 
Visual Studio users, Xcode users) and only partly – and unenthusiastically – 
for the sake of CMake users."

See: [https://github.com/macports/macports-ports/pull/9836]

[https://github.com/google/re2/issues/274]

We use a standard install of re2 that includes these files:

$ port contents re2
Port re2 contains:
 /opt/local/include/re2/filtered_re2.h
 /opt/local/include/re2/re2.h
 /opt/local/include/re2/set.h
 /opt/local/include/re2/stringpiece.h
 /opt/local/lib/libre2.9.0.0.dylib
 /opt/local/lib/libre2.9.dylib
 /opt/local/lib/libre2.a
 /opt/local/lib/libre2.dylib
 /opt/local/lib/pkgconfig/re2.pc
 /opt/local/share/doc/re2/AUTHORS
 /opt/local/share/doc/re2/CONTRIBUTORS
 /opt/local/share/doc/re2/LICENSE
 /opt/local/share/doc/re2/README
 /opt/local/share/doc/re2/syntax.html
 /opt/local/share/doc/re2/syntax.txt

> 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
>         Attachments: main.log
>
>
> 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/%[email protected]%3E]
> [http://mail-archives.apache.org/mod_mbox/arrow-jira/202009.mbox/%3cjira.13327607.1600156125000.372264.1600157460...@atlassian.jira%3E]
>  * [https://www.mail-archive.com/[email protected]/msg20631.html]
>  * [https://github.com/macports/macports-ports/pull/7791]



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

Reply via email to