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

Benjamin Kietzman updated ARROW-4879:
-------------------------------------
    Description: 
I'm using conda's flatbuffers, but after the cmake refactor I get the following 
error:
{code}
$ uname --all
Linux pop-os 4.18.0-15-generic #16pop0~18.04.1-Ubuntu SMP Thu Feb 21 16:15:23 
UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

$ conda list | grep -E 'flatbuffers|cmake'
cmake                     3.12.2               h52cb24c_0  
flatbuffers               1.7.1                hf484d3e_0  

$ cmake -DCMAKE_BUILD_TYPE=Release -DARROW_PARQUET=on 
-DBUILD_WARNING_LEVEL=CHECKIN -DCMAKE_EXPORT_COMPILE_COMMANDS=on -GNinja ../..
...
-- Building using CMake version: 3.12.2
-- The C compiler identification is Clang 7.0.1
-- The CXX compiler identification is Clang 7.0.0
-- Check for working C compiler: 
/home/bkietz/miniconda3/envs/pyarrow-dev/bin/clang-7
-- Check for working C compiler: 
/home/bkietz/miniconda3/envs/pyarrow-dev/bin/clang-7 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++-7
-- Check for working CXX compiler: /usr/bin/clang++-7 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Arrow version: 0.13.0 (full: '0.13.0-SNAPSHOT')
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- clang-tidy not found
-- clang-format found at /usr/bin/clang-format-7
-- infer not found
-- Found PythonInterp: /home/bkietz/miniconda3/envs/pyarrow-dev/bin/python 
(found version "3.6.8") 
-- Found cpplint executable at /home/bkietz/arrow/cpp/build-support/cpplint.py
-- Compiler command: env LANG=C /usr/bin/clang++-7 -v
-- Compiler version: clang version 7.0.0-3~ubuntu0.18.04.1 
(tags/RELEASE_700/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/8
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8.5
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/7
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/8
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/8
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0
Candidate multilib: .;@m64
Selected multilib: .;@m64

-- Compiler id: Clang
Selected compiler clang 7.0
-- Performing Test CXX_SUPPORTS_SSE4_2
-- Performing Test CXX_SUPPORTS_SSE4_2 - Success
-- Performing Test CXX_SUPPORTS_ALTIVEC
-- Performing Test CXX_SUPPORTS_ALTIVEC - Success
-- Performing Test CXX_SUPPORTS_ARMCRC
-- Performing Test CXX_SUPPORTS_ARMCRC - Failed
-- Arrow build warning level: CHECKIN
Using ld linker
Configured for RELEASE build (set with cmake 
-DCMAKE_BUILD_TYPE={release,debug,...})
-- Build Type: RELEASE
-- Using CONDA approach to find dependencies
-- Using CONDA_PREFIX: /home/bkietz/miniconda3/envs/pyarrow-dev
-- Setting (unset) dependency *_ROOT variables: 
/home/bkietz/miniconda3/envs/pyarrow-dev
-- BOOST_VERSION: 1.67.0
-- BROTLI_VERSION: v0.6.0
-- BZIP2_VERSION: 1.0.6
-- CARES_VERSION: 1.15.0
-- DOUBLE_CONVERSION_VERSION: v3.1.1
-- FLATBUFFERS_VERSION: v1.10.0
-- GBENCHMARK_VERSION: v1.4.1
-- GFLAGS_VERSION: v2.2.0
-- GLOG_VERSION: v0.3.5
-- GRPC_VERSION: v1.18.0
-- GTEST_VERSION: 1.8.1
-- JEMALLOC_VERSION: 17c897976c60b0e6e4f4a365c751027244dada7a
-- LZ4_VERSION: v1.8.3
-- ORC_VERSION: 1.5.4
-- PROTOBUF_VERSION: v3.6.1
-- RAPIDJSON_VERSION: 2bbd33b33217ff4a73434ebf10cdac41e2ef5e34
-- RE2_VERSION: 2018-10-01
-- SNAPPY_VERSION: 1.1.3
-- THRIFT_VERSION: 0.12.0
-- ZLIB_VERSION: 1.2.8
-- ZSTD_VERSION: v1.3.7
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- Performing Test DOUBLE_CONVERSION_HAS_CASE_INSENSIBILITY
-- Performing Test DOUBLE_CONVERSION_HAS_CASE_INSENSIBILITY - Failed
-- Checking for modules 'libbrotlicommon;libbrotlienc;libbrotlidec'
--   Found libbrotlicommon, version 1.0.7
--   Found libbrotlienc, version 1.0.7
--   Found libbrotlidec, version 1.0.7
-- Found Brotli: 
/home/bkietz/miniconda3/envs/pyarrow-dev/lib/libbrotlicommon.so  
-- Checking for module 'libglog'
--   Found libglog, version 0.3.5
-- Found GLOG: /home/bkietz/miniconda3/envs/pyarrow-dev/include  
-- Checking for module 'thrift'
--   No package 'thrift' found
-- Found Thrift: /home/bkietz/miniconda3/envs/pyarrow-dev/lib/libthrift.so  
-- Building (vendored) jemalloc from source
-- RapidJSON found. Headers: /home/bkietz/miniconda3/envs/pyarrow-dev/include
CMake Error at cmake_modules/ThirdpartyToolchain.cmake:146 (find_package):
  By not providing "FindFlatbuffers.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "Flatbuffers", but CMake did not find one.

  Could not find a package configuration file provided by "Flatbuffers" with
  any of the following names:

    FlatbuffersConfig.cmake
    flatbuffers-config.cmake

  Add the installation prefix of "Flatbuffers" to CMAKE_PREFIX_PATH or set
  "Flatbuffers_DIR" to a directory containing one of the above files.  If
  "Flatbuffers" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  cmake_modules/ThirdpartyToolchain.cmake:1315 (resolve_dependency)
  CMakeLists.txt:536 (include)


-- Configuring incomplete, errors occurred!
See also "/home/bkietz/arrow/cpp/build/rel/CMakeFiles/CMakeOutput.log".
See also "/home/bkietz/arrow/cpp/build/rel/CMakeFiles/CMakeError.log".
{code}

  was:
I'm using conda's flatbuffers, but after the cmake refactor I get the following 
error:
{code}
CMake Error at cmake_modules/ThirdpartyToolchain.cmake:146 (find_package):
  By not providing "FindFlatbuffers.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "Flatbuffers", but CMake did not find one.

  Could not find a package configuration file provided by "Flatbuffers" with
  any of the following names:

    FlatbuffersConfig.cmake
    flatbuffers-config.cmake

  Add the installation prefix of "Flatbuffers" to CMAKE_PREFIX_PATH or set
  "Flatbuffers_DIR" to a directory containing one of the above files.  If
  "Flatbuffers" provides a separate development package or SDK, be sure it
  has been installed.
{code}


> [C++] cmake can't use conda's flatbuffers
> -----------------------------------------
>
>                 Key: ARROW-4879
>                 URL: https://issues.apache.org/jira/browse/ARROW-4879
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>            Reporter: Benjamin Kietzman
>            Assignee: Benjamin Kietzman
>            Priority: Minor
>             Fix For: 0.13.0
>
>
> I'm using conda's flatbuffers, but after the cmake refactor I get the 
> following error:
> {code}
> $ uname --all
> Linux pop-os 4.18.0-15-generic #16pop0~18.04.1-Ubuntu SMP Thu Feb 21 16:15:23 
> UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
> $ conda list | grep -E 'flatbuffers|cmake'
> cmake                     3.12.2               h52cb24c_0  
> flatbuffers               1.7.1                hf484d3e_0  
> $ cmake -DCMAKE_BUILD_TYPE=Release -DARROW_PARQUET=on 
> -DBUILD_WARNING_LEVEL=CHECKIN -DCMAKE_EXPORT_COMPILE_COMMANDS=on -GNinja ../..
> ...
> -- Building using CMake version: 3.12.2
> -- The C compiler identification is Clang 7.0.1
> -- The CXX compiler identification is Clang 7.0.0
> -- Check for working C compiler: 
> /home/bkietz/miniconda3/envs/pyarrow-dev/bin/clang-7
> -- Check for working C compiler: 
> /home/bkietz/miniconda3/envs/pyarrow-dev/bin/clang-7 -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Check for working CXX compiler: /usr/bin/clang++-7
> -- Check for working CXX compiler: /usr/bin/clang++-7 -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Arrow version: 0.13.0 (full: '0.13.0-SNAPSHOT')
> -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
> -- clang-tidy not found
> -- clang-format found at /usr/bin/clang-format-7
> -- infer not found
> -- Found PythonInterp: /home/bkietz/miniconda3/envs/pyarrow-dev/bin/python 
> (found version "3.6.8") 
> -- Found cpplint executable at /home/bkietz/arrow/cpp/build-support/cpplint.py
> -- Compiler command: env LANG=C /usr/bin/clang++-7 -v
> -- Compiler version: clang version 7.0.0-3~ubuntu0.18.04.1 
> (tags/RELEASE_700/final)
> Target: x86_64-pc-linux-gnu
> Thread model: posix
> InstalledDir: /usr/bin
> Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/8
> Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8
> Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8.5
> Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/7
> Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0
> Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/8
> Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/8
> Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
> Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.5
> Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7
> Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.3.0
> Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/8
> Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0
> Candidate multilib: .;@m64
> Selected multilib: .;@m64
> -- Compiler id: Clang
> Selected compiler clang 7.0
> -- Performing Test CXX_SUPPORTS_SSE4_2
> -- Performing Test CXX_SUPPORTS_SSE4_2 - Success
> -- Performing Test CXX_SUPPORTS_ALTIVEC
> -- Performing Test CXX_SUPPORTS_ALTIVEC - Success
> -- Performing Test CXX_SUPPORTS_ARMCRC
> -- Performing Test CXX_SUPPORTS_ARMCRC - Failed
> -- Arrow build warning level: CHECKIN
> Using ld linker
> Configured for RELEASE build (set with cmake 
> -DCMAKE_BUILD_TYPE={release,debug,...})
> -- Build Type: RELEASE
> -- Using CONDA approach to find dependencies
> -- Using CONDA_PREFIX: /home/bkietz/miniconda3/envs/pyarrow-dev
> -- Setting (unset) dependency *_ROOT variables: 
> /home/bkietz/miniconda3/envs/pyarrow-dev
> -- BOOST_VERSION: 1.67.0
> -- BROTLI_VERSION: v0.6.0
> -- BZIP2_VERSION: 1.0.6
> -- CARES_VERSION: 1.15.0
> -- DOUBLE_CONVERSION_VERSION: v3.1.1
> -- FLATBUFFERS_VERSION: v1.10.0
> -- GBENCHMARK_VERSION: v1.4.1
> -- GFLAGS_VERSION: v2.2.0
> -- GLOG_VERSION: v0.3.5
> -- GRPC_VERSION: v1.18.0
> -- GTEST_VERSION: 1.8.1
> -- JEMALLOC_VERSION: 17c897976c60b0e6e4f4a365c751027244dada7a
> -- LZ4_VERSION: v1.8.3
> -- ORC_VERSION: 1.5.4
> -- PROTOBUF_VERSION: v3.6.1
> -- RAPIDJSON_VERSION: 2bbd33b33217ff4a73434ebf10cdac41e2ef5e34
> -- RE2_VERSION: 2018-10-01
> -- SNAPPY_VERSION: 1.1.3
> -- THRIFT_VERSION: 0.12.0
> -- ZLIB_VERSION: 1.2.8
> -- ZSTD_VERSION: v1.3.7
> -- Looking for pthread.h
> -- Looking for pthread.h - found
> -- Looking for pthread_create
> -- Looking for pthread_create - not found
> -- Check if compiler accepts -pthread
> -- Check if compiler accepts -pthread - yes
> -- Found Threads: TRUE  
> -- Performing Test DOUBLE_CONVERSION_HAS_CASE_INSENSIBILITY
> -- Performing Test DOUBLE_CONVERSION_HAS_CASE_INSENSIBILITY - Failed
> -- Checking for modules 'libbrotlicommon;libbrotlienc;libbrotlidec'
> --   Found libbrotlicommon, version 1.0.7
> --   Found libbrotlienc, version 1.0.7
> --   Found libbrotlidec, version 1.0.7
> -- Found Brotli: 
> /home/bkietz/miniconda3/envs/pyarrow-dev/lib/libbrotlicommon.so  
> -- Checking for module 'libglog'
> --   Found libglog, version 0.3.5
> -- Found GLOG: /home/bkietz/miniconda3/envs/pyarrow-dev/include  
> -- Checking for module 'thrift'
> --   No package 'thrift' found
> -- Found Thrift: /home/bkietz/miniconda3/envs/pyarrow-dev/lib/libthrift.so  
> -- Building (vendored) jemalloc from source
> -- RapidJSON found. Headers: /home/bkietz/miniconda3/envs/pyarrow-dev/include
> CMake Error at cmake_modules/ThirdpartyToolchain.cmake:146 (find_package):
>   By not providing "FindFlatbuffers.cmake" in CMAKE_MODULE_PATH this project
>   has asked CMake to find a package configuration file provided by
>   "Flatbuffers", but CMake did not find one.
>   Could not find a package configuration file provided by "Flatbuffers" with
>   any of the following names:
>     FlatbuffersConfig.cmake
>     flatbuffers-config.cmake
>   Add the installation prefix of "Flatbuffers" to CMAKE_PREFIX_PATH or set
>   "Flatbuffers_DIR" to a directory containing one of the above files.  If
>   "Flatbuffers" provides a separate development package or SDK, be sure it
>   has been installed.
> Call Stack (most recent call first):
>   cmake_modules/ThirdpartyToolchain.cmake:1315 (resolve_dependency)
>   CMakeLists.txt:536 (include)
> -- Configuring incomplete, errors occurred!
> See also "/home/bkietz/arrow/cpp/build/rel/CMakeFiles/CMakeOutput.log".
> See also "/home/bkietz/arrow/cpp/build/rel/CMakeFiles/CMakeError.log".
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to