[
https://issues.apache.org/jira/browse/ARROW-10286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Antoine Pitrou resolved ARROW-10286.
------------------------------------
Fix Version/s: 2.0.0
Resolution: Fixed
Issue resolved by pull request 8442
[https://github.com/apache/arrow/pull/8442]
> [C++][Flight] Misleading CMake errors
> -------------------------------------
>
> Key: ARROW-10286
> URL: https://issues.apache.org/jira/browse/ARROW-10286
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++, FlightRPC
> Reporter: Antoine Pitrou
> Assignee: David Li
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.0.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> When building Arrow, one can get errors such as the following
> {code}
> -- Build output: Change Dir:
> /home/antoine/arrow/dev/cpp/build-test/src/arrow/flight/try_compile/CMakeFiles/CMakeTmp
> Run Build Command(s):/usr/bin/ninja cmTC_cfc86 && [1/2] Building CXX object
> CMakeFiles/cmTC_cfc86.dir/check_tls_opts_132.cc.o
> FAILED: CMakeFiles/cmTC_cfc86.dir/check_tls_opts_132.cc.o
> /usr/bin/g++-9 -I/home/antoine/arrow/dev/cpp/thirdparty/flatbuffers/include
> -I/home/antoine/arrow/dev/cpp/build-test/jemalloc_ep-prefix/src
> -I/home/antoine/arrow/dev/cpp/build-test/mimalloc_ep/src/mimalloc_ep/lib/mimalloc-1.6/include
> -I/home/antoine/arrow/dev/cpp/thirdparty/hadoop/include
> -I/home/antoine/arrow/dev/cpp/build-test/src
> -I/home/antoine/arrow/dev/cpp/src -I/home/antoine/arrow/dev/cpp/src/generated
> -isystem /home/antoine/miniconda3/envs/pyarrow/include -Wno-noexcept-type
> -fdiagnostics-color=always -fuse-ld=gold -ggdb -O0 -Wall -Wno-conversion
> -Wno-deprecated-declarations -Wno-sign-conversion -Wno-unused-variable
> -fno-semantic-interposition -march=haswell -mavx2 -D_GLIBCXX_USE_CXX11_ABI=1
> -D_GLIBCXX_USE_CXX11_ABI=1 -fno-omit-frame-pointer -fPIE -std=c++11 -o
> CMakeFiles/cmTC_cfc86.dir/check_tls_opts_132.cc.o -c
> /home/antoine/arrow/dev/cpp/src/arrow/flight/try_compile/check_tls_opts_132.cc
> /home/antoine/arrow/dev/cpp/src/arrow/flight/try_compile/check_tls_opts_132.cc:28:31:
> error: 'TlsCredentialsOptions' in namespace 'grpc::experimental' does not
> name a type; did you mean 'AltsCredentialsOptions'?
> 28 | const grpc::experimental::TlsCredentialsOptions* options) {
> | ^~~~~~~~~~~~~~~~~~~~~
> | AltsCredentialsOptions
> /home/antoine/arrow/dev/cpp/src/arrow/flight/try_compile/check_tls_opts_132.cc:
> In function 'grpc_tls_server_verification_option check(const int*)':
> /home/antoine/arrow/dev/cpp/src/arrow/flight/try_compile/check_tls_opts_132.cc:29:61:
> error: request for member 'server_verification_option' in '* options', which
> is of non-class type 'const int'
> 29 | grpc_tls_server_verification_option server_opt =
> options->server_verification_option();
> |
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> ninja: build stopped: subcommand failed.
> {code}
> There are two problems:
> 1) this is displayed as an error, but it's not an actual error from the
> user's point of view (Arrow builds fine nevertheless)
> 2) this is displayed each time when building, even if nothing needs rebuilding
--
This message was sent by Atlassian Jira
(v8.3.4#803005)