You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2020/09/15 10:18:00 UTC

[jira] [Resolved] (ARROW-10011) [C++] Make FindRE2.cmake re-entrant

     [ https://issues.apache.org/jira/browse/ARROW-10011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antoine Pitrou resolved ARROW-10011.
------------------------------------
    Fix Version/s: 2.0.0
       Resolution: Fixed

Issue resolved by pull request 8192
[https://github.com/apache/arrow/pull/8192]

> [C++] Make FindRE2.cmake re-entrant
> -----------------------------------
>
>                 Key: ARROW-10011
>                 URL: https://issues.apache.org/jira/browse/ARROW-10011
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++, FlightRPC
>    Affects Versions: 1.0.0, 1.0.1
>            Reporter: Uwe Korn
>            Assignee: Uwe Korn
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.0.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Repeated calls to FindRE2.cmake try to recreate the exisiting target {{RE2::re2}} which is prohibited by CMake and fails with the following error:
> {code}
> CMake Warning (dev) at C:/Miniconda37-x64/envs/arrow/Library/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
>   The package name passed to `find_package_handle_standard_args` (RE2) does
>   not match the name of the calling package (re2).  This can lead to problems
>   in calling code that expects `find_package` result variables (e.g.,
>   `_FOUND`) to follow a certain pattern.
> Call Stack (most recent call first):
>   cmake_modules/FindRE2.cmake:63 (find_package_handle_standard_args)
>   C:/Miniconda37-x64/envs/arrow/Library/lib/cmake/grpc/gRPCConfig.cmake:21 (find_package)
>   cmake_modules/ThirdpartyToolchain.cmake:2472 (find_package)
>   CMakeLists.txt:495 (include)
> This warning is for project developers.  Use -Wno-dev to suppress it.
> CMake Error at cmake_modules/FindRE2.cmake:66 (add_library):
>   add_library cannot create imported target "RE2::re2" because another target
>   with the same name already exists.
> Call Stack (most recent call first):
>   C:/Miniconda37-x64/envs/arrow/Library/lib/cmake/grpc/gRPCConfig.cmake:21 (find_package)
>   cmake_modules/ThirdpartyToolchain.cmake:2472 (find_package)
>   CMakeLists.txt:495 (include)
> {code}
> Note that this issue only occurs currently on case-insensitive file systems when ARROW_FLIGHT=ON is set.



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