For now -DBUILD_WARNING_LEVEL=PRODUCTION should remove the -Werror and let you compile: https://arrow.apache.org/docs/dev/developers/cpp/development.html#compiler-warning-levels
We should fix that though. I filed https://issues.apache.org/jira/browse/ARROW-15530 -David On Wed, Feb 2, 2022, at 10:46, Li Jin wrote: > Thanks! > > -DARROW_DEPENDENCY_SOURCE=BUNDLED > > seems to do the trick - I can build without adding find_package! > > Although, any idea how to get pass this? > > " > > */Users/icexelloss/workspace/arrow/cpp/src/arrow/compute/kernels/scalar_string_internal.h:216:20: > **error: **unused function 'StringClassifyDoc' > [-Werror,-Wunused-function]* > > static FunctionDoc StringClassifyDoc(std::string class_summary, std::string > class_desc, > > " > > > > On Wed, Feb 2, 2022 at 10:11 AM Benson Muite <benson_mu...@emailplus.org> > wrote: > >> Can you try using one of the CMAKE options: >> -DARROW_DEPENDENCY_SOURCE=BREW >> -DARROW_DEPENDENCY_SOURCE=BUNDLED >> >> see https://arrow.apache.org/docs/developers/cpp/building.html >> >> On 2/2/22 5:44 PM, Li Jin wrote: >> > Also tried to test a basic CMake file with boost on my machine and it >> > appears to find it >> > >> > CMakeLists.txt >> > " >> > >> > find_package(Boost COMPONENTS program_options REQUIRED) >> > >> > >> > add_executable(main main.cpp) >> > >> > >> > target_link_libraries(main Boost::program_options) >> > >> > " >> > >> > >> > Log: >> > " >> > >> > -- The C compiler identification is AppleClang 12.0.0.12000032 >> > >> > -- The CXX compiler identification is AppleClang 12.0.0.12000032 >> > >> > -- Detecting C compiler ABI info >> > >> > -- Detecting C compiler ABI info - done >> > >> > -- Check for working C compiler: >> > >> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc >> > - skipped >> > >> > -- Detecting C compile features >> > >> > -- Detecting C compile features - done >> > >> > -- Detecting CXX compiler ABI info >> > >> > -- Detecting CXX compiler ABI info - done >> > >> > -- Check for working CXX compiler: >> > >> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ >> > - skipped >> > >> > -- Detecting CXX compile features >> > >> > -- Detecting CXX compile features - done >> > >> > -- Found Boost: /usr/local/lib/cmake/Boost-1.76.0/BoostConfig.cmake >> (found >> > version "1.76.0") found components: program_options >> > >> > " >> > >> > On Wed, Feb 2, 2022 at 9:32 AM Li Jin <ice.xell...@gmail.com> wrote: >> > >> >> Yep, Here it is! >> >> >> >> https://gist.github.com/icexelloss/db0e5df214addd63dc4ab0570ca7ee30 >> >> >> >> On Tue, Feb 1, 2022 at 6:28 PM Sutou Kouhei <k...@clear-code.com> wrote: >> >> >> >>> Hi, >> >>> >> >>> Could you upload the log to something such as >> >>> https://gist.github.com/ and share the URL? >> >>> >> >>> >> >>> Thanks, >> >>> -- >> >>> kou >> >>> >> >>> In <CAGY9duXDJJfGgGNg5=_-w-o+th+O3o=awyainxdkxho+oqu...@mail.gmail.com >> > >> >>> "Re: Building Arrow Cpp: Cannot find Boost on MacOS" on Tue, 1 Feb >> 2022 >> >>> 16:47:45 -0500, >> >>> Li Jin <ice.xell...@gmail.com> wrote: >> >>> >> >>>> Hi! >> >>>> >> >>>> I ran >> >>>> >> >>>> "cmake .. -DARROW_BUILD_TESTS=ON -DARROW_COMPUTE=ON -DARROW_DATASET=ON >> >>>> -DCMAKE_BUILD_TYPE=Debug -DCMAKE_FIND_DEBUG_MODE=ON" >> >>>> >> >>>> and here is the log. >> >>>> >> >>>> Perhaps Cmake cannot find where Brew installed this by default? (Just >> >>>> guessing, new to CMake too..) >> >>>> >> >>>> Li >> >>>> >> >>>> On Tue, Feb 1, 2022 at 4:30 PM Sutou Kouhei <k...@clear-code.com> >> wrote: >> >>>> >> >>>>> Hi, >> >>>>> >> >>>>> Could you run cmake with -DCMAKE_FIND_DEBUG_MODE=ON and >> >>>>> share log of it? >> >>>>> >> >>>>> >> >>>>> FYI: Boost 1.76.0 is found in our CI: >> >>>>> >> >>>>> >> >>>>> >> >>> >> https://github.com/apache/arrow/runs/5017148285?check_suite_focus=true#step:7:183 >> >>>>> >> >>>>> -- Found Boost: >> /usr/local/lib/cmake/Boost-1.76.0/BoostConfig.cmake >> >>>>> (found suitable version "1.76.0", minimum required is "1.64") found >> >>>>> components: system filesystem >> >>>>> -- Boost include dir: /usr/local/include >> >>>>> -- Boost libraries: Boost::system;Boost::filesystem >> >>>>> >> >>>>> >> >>>>> Thanks, >> >>>>> -- >> >>>>> kou >> >>>>> >> >>>>> In <CAGY9duW= >> utrsxvd+-uawh5jehzaaejj_exgtz6fhzvdnxpp...@mail.gmail.com >> >>>> >> >>>>> "Building Arrow Cpp: Cannot find Boost on MacOS" on Tue, 1 Feb >> 2022 >> >>>>> 16:18:13 -0500, >> >>>>> Li Jin <ice.xell...@gmail.com> wrote: >> >>>>> >> >>>>>> Hello! >> >>>>>> >> >>>>>> I am new to the Arrow cpp code and play with it a little. >> >>> Unfortunately I >> >>>>>> hit this error when trying to cmake with preset "ninja-debug-basic". >> >>> I >> >>>>>> wonder if anyone else has hit an similar issue? >> >>>>>> >> >>>>>> cmake .. --preset ninja-debug-basic >> >>>>>> >> >>>>>> ... >> >>>>>> >> >>>>>> -- ARROW_ZSTD_BUILD_VERSION: v1.5.1 >> >>>>>> >> >>>>>> -- ARROW_ZSTD_BUILD_SHA256_CHECKSUM: >> >>>>>> dc05773342b28f11658604381afd22cb0a13e8ba17ff2bd7516df377060c18dd >> >>>>>> >> >>>>>> CMake Error at >> >>>>>> >> >>>>> >> >>> >> /usr/local/Cellar/cmake/3.22.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 >> >>>>>> (message): >> >>>>>> >> >>>>>> Could NOT find Boost (missing: Boost_INCLUDE_DIR system >> filesystem) >> >>>>>> >> >>>>>> (Required is at least version "1.58") >> >>>>>> >> >>>>>> Call Stack (most recent call first): >> >>>>>> >> >>>>>> >> >>>>> >> >>> >> /usr/local/Cellar/cmake/3.22.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 >> >>>>>> (_FPHSA_FAILURE_MESSAGE) >> >>>>>> >> >>>>>> >> >>> >> /usr/local/Cellar/cmake/3.22.2/share/cmake/Modules/FindBoost.cmake:2375 >> >>>>>> (find_package_handle_standard_args) >> >>>>>> >> >>>>>> cmake_modules/FindBoostAlt.cmake:41 (find_package) >> >>>>>> >> >>>>>> cmake_modules/ThirdpartyToolchain.cmake:241 (find_package) >> >>>>>> >> >>>>>> cmake_modules/ThirdpartyToolchain.cmake:956 (resolve_dependency) >> >>>>>> >> >>>>>> CMakeLists.txt:554 (include) >> >>>>>> >> >>>>>> >> >>>>>> I installed boost via HomeBrew under >> >>> "/usr/local/Cellar/boost/1.76.0/" >> >>>>> but >> >>>>>> I am not really familiar with where cmake looks for boost >> >>> dependency.. >> >>>>>> >> >>>>>> >> >>>>>> Much appreciated, >> >>>>>> >> >>>>>> Li >> >>>>> >> >>> >> >> >> > >> >>