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

Enrico Guiraud edited comment on ARROW-11890 at 8/11/21, 9:04 AM:
------------------------------------------------------------------

Hi Kouhei,

thanks for the suggestion! If I understand correctly those are cmake options to 
pass when building arrow? Our case is that we install it from repos and then we 
get warnings when we call `find_package(Arrow)`.

This Dockerfile reproduces the issue:

 
{code:java}
FROM ubuntu:20.04
 # ROOT deps
 RUN apt-get update && \
 DEBIAN_FRONTEND=noninteractive TZ=Asia/Singapore apt-get -y -q install \
 dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev \
 libxft-dev libxext-dev python libssl-dev \
 gfortran libpcre3-dev \
 xlibmesa-glu-dev libglew1.5-dev libftgl-dev \
 libmysqlclient-dev libfftw3-dev libcfitsio-dev \
 graphviz-dev libavahi-compat-libdnssd-dev \
 libldap2-dev python-dev libxml2-dev libkrb5-dev \
 libgsl0-dev git

 # arrow
 RUN apt-get install -y -V ca-certificates lsb-release wget
 RUN wget 
[https://apache.jfrog.io/artifactory/arrow/ubuntu/apache-arrow-apt-source-latest-focal.deb]
 RUN apt-get install -y -V ./apache-arrow-apt-source-latest-focal.deb
 RUN apt-get update
 RUN apt-get install -y -V libarrow-dev # For C++
 RUN apt-get install -y -V libarrow-glib-dev # For GLib (C)
 RUN apt-get install -y -V libarrow-dataset-dev # For Apache Arrow Dataset C++
 RUN apt-get install -y -V libarrow-flight-dev # For Apache Arrow Flight C++

 # ROOT
 RUN git clone [https://github.com/root-project/root.git] root_src
 RUN mkdir root_build
 RUN cmake -B root_build -S root_src -Darrow=ON
{code}

Can you suggest how to tweak our `find_package` invocation to remove the 
warnings?

Thank you very much!


was (Author: eguiraud):
Hi Kouhei,

thanks for the suggestion! If I understand correctly those are cmake options to 
pass when building arrow? Our case is that we install it from repos and then we 
get warnings when we call `find_package(Arrow)`.

This Dockerfile reproduces the issue:

```

FROM ubuntu:20.04

# ROOT deps
RUN apt-get update && \
 DEBIAN_FRONTEND=noninteractive TZ=Asia/Singapore apt-get -y -q install \
 dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev \
 libxft-dev libxext-dev python libssl-dev \
 gfortran libpcre3-dev \
 xlibmesa-glu-dev libglew1.5-dev libftgl-dev \
 libmysqlclient-dev libfftw3-dev libcfitsio-dev \
 graphviz-dev libavahi-compat-libdnssd-dev \
 libldap2-dev python-dev libxml2-dev libkrb5-dev \
 libgsl0-dev git

# arrow
RUN apt-get install -y -V ca-certificates lsb-release wget
RUN wget 
https://apache.jfrog.io/artifactory/arrow/ubuntu/apache-arrow-apt-source-latest-focal.deb
RUN apt-get install -y -V ./apache-arrow-apt-source-latest-focal.deb
RUN apt-get update
RUN apt-get install -y -V libarrow-dev # For C++
RUN apt-get install -y -V libarrow-glib-dev # For GLib (C)
RUN apt-get install -y -V libarrow-dataset-dev # For Apache Arrow Dataset C++
RUN apt-get install -y -V libarrow-flight-dev # For Apache Arrow Flight C++

# ROOT
RUN git clone https://github.com/root-project/root.git root_src
RUN mkdir root_build
RUN cmake -B root_build -S root_src -Darrow=ON
```

Can you suggest how to tweak our `find_package` invocation to remove the 
warnings?

Thank you very much!

> [C++] find_package(Arrow) is broken on Ubuntu 18
> ------------------------------------------------
>
>                 Key: ARROW-11890
>                 URL: https://issues.apache.org/jira/browse/ARROW-11890
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>         Environment: Ubuntu 18.04
>            Reporter: Bowen Xiao
>            Priority: Major
>
> This is similar to https://issues.apache.org/jira/browse/ARROW-10495
>  
> {code:java}
> CMake Warning at /usr/lib/x86_64-linux-gnu/cmake/arrow/Findre2Alt.cmake:25 
> (find_package):
>   By not providing "Findre2.cmake" in CMAKE_MODULE_PATH this project has
>   asked CMake to find a package configuration file provided by "re2", but
>   CMake did not find one.  Could not find a package configuration file 
> provided by "re2" with any of
>   the following names:    re2Config.cmake
>     re2-config.cmake  Add the installation prefix of "re2" to 
> CMAKE_PREFIX_PATH or set "re2_DIR"
>   to a directory containing one of the above files.  If "re2" provides a
>   separate development package or SDK, be sure it has been installed.
> Call Stack (most recent call first):
>   /usr/share/cmake-3.10/Modules/CMakeFindDependencyMacro.cmake:48 
> (find_package)
>   /usr/lib/x86_64-linux-gnu/cmake/arrow/ArrowConfig.cmake:95 (find_dependency)
>   test/CMakeLists.txt:11 (find_package){code}
> {code:java}
> // code placeholder
> drwxr-xr-x 1 root root  4096 Mar  6 14:49 .
> drwxr-xr-x 1 root root  4096 Mar  6 13:57 ..
> -rw-r--r-- 1 root root  2702 Jan 19 05:42 ArrowCUDAConfig.cmake
> -rw-r--r-- 1 root root  1269 Jan 19 05:42 ArrowCUDAConfigVersion.cmake
> -rw-r--r-- 1 root root  1415 Jan 19 05:42 ArrowCUDATargets-release.cmake
> -rw-r--r-- 1 root root  4120 Jan 19 05:42 ArrowCUDATargets.cmake
> -rw-r--r-- 1 root root  4680 Jan 19 05:42 ArrowConfig.cmake
> -rw-r--r-- 1 root root  1269 Jan 19 05:42 ArrowConfigVersion.cmake
> -rw-r--r-- 1 root root  2751 Jan 19 05:42 ArrowDatasetConfig.cmake
> -rw-r--r-- 1 root root  1269 Jan 19 05:42 ArrowDatasetConfigVersion.cmake
> -rw-r--r-- 1 root root  1460 Jan 19 05:42 ArrowDatasetTargets-release.cmake
> -rw-r--r-- 1 root root  4147 Jan 19 05:42 ArrowDatasetTargets.cmake
> -rw-r--r-- 1 root root  2718 Jan 19 05:42 ArrowFlightConfig.cmake
> -rw-r--r-- 1 root root  1269 Jan 19 05:42 ArrowFlightConfigVersion.cmake
> -rw-r--r-- 1 root root  1445 Jan 19 05:42 ArrowFlightTargets-release.cmake
> -rw-r--r-- 1 root root  4138 Jan 19 05:42 ArrowFlightTargets.cmake
> -rw-r--r-- 1 root root  7532 Jan 19 05:42 ArrowOptions.cmake
> -rw-r--r-- 1 root root  1342 Jan 19 05:42 ArrowTargets-release.cmake
> -rw-r--r-- 1 root root  4298 Jan 19 05:42 ArrowTargets.cmake
> -rw-r--r-- 1 root root 16770 Jan 19 05:42 FindArrow.cmake
> -rw-r--r-- 1 root root  3527 Jan 19 05:42 FindArrowCUDA.cmake
> -rw-r--r-- 1 root root  3607 Jan 19 05:42 FindArrowDataset.cmake
> -rw-r--r-- 1 root root  3624 Jan 19 05:42 FindArrowFlight.cmake
> -rw-r--r-- 1 root root  5755 Jan 19 05:42 FindBrotli.cmake
> -rw-r--r-- 1 root root  3660 Jan 19 05:42 FindGandiva.cmake
> -rw-r--r-- 1 root root  2984 Jan 19 05:42 FindLz4.cmake
> -rw-r--r-- 1 root root  5258 Jan 19 05:42 FindParquet.cmake
> -rw-r--r-- 1 root root  4095 Jan 19 05:42 FindPlasma.cmake
> -rw-r--r-- 1 root root  2322 Jan 19 05:42 FindSnappy.cmake
> -rw-r--r-- 1 root root  2973 Jan 19 05:42 Findre2Alt.cmake
> -rw-r--r-- 1 root root  2639 Jan 19 05:42 Findutf8proc.cmake
> -rw-r--r-- 1 root root  3183 Jan 19 05:42 Findzstd.cmake
> {code}
>  
>  
> I list the package and not found Findre2.cmake
>  



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

Reply via email to