David Li created ARROW-16235:
--------------------------------
Summary: [C++][FlightRPC] Flight does not build on MinGW
Key: ARROW-16235
URL: https://issues.apache.org/jira/browse/ARROW-16235
Project: Apache Arrow
Issue Type: Bug
Components: C++, FlightRPC
Reporter: David Li
Assignee: David Li
https://github.com/apache/arrow/runs/6077889425?check_suite_focus=true
{noformat}
[180/316] Building CXX object
src/arrow/flight/CMakeFiles/arrow_flight_testing_shared.dir/Unity/unity_0_cxx.cxx.obj
FAILED:
src/arrow/flight/CMakeFiles/arrow_flight_testing_shared.dir/Unity/unity_0_cxx.cxx.obj
D:\a\_temp\msys64\mingw32\bin\ccache.exe D:\a\_temp\msys64\mingw32\bin\c++.exe
-DARROW_FLIGHT_EXPORTING -DARROW_HAVE_RUNTIME_AVX2 -DARROW_HAVE_RUNTIME_BMI2
-DARROW_HAVE_RUNTIME_SSE4_2 -DARROW_HAVE_SSE4_2 -DARROW_HDFS
-DARROW_WITH_BROTLI -DARROW_WITH_BZ2 -DARROW_WITH_LZ4 -DARROW_WITH_RE2
-DARROW_WITH_SNAPPY -DARROW_WITH_UTF8PROC -DARROW_WITH_ZLIB -DARROW_WITH_ZSTD
-DAWS_SDK_VERSION_MAJOR=1 -DAWS_SDK_VERSION_MINOR=8 -DAWS_SDK_VERSION_PATCH=149
-DAWS_USE_IO_COMPLETION_PORTS -DBOOST_USE_WINDOWS_H=1
-DGRPC_NAMESPACE_FOR_TLS_CREDENTIALS_OPTIONS=grpc::experimental
-DGRPC_USE_CERTIFICATE_VERIFIER -DGRPC_USE_TLS_CHANNEL_CREDENTIALS_OPTIONS
-DGTEST_LINKED_AS_SHARED_LIBRARY=1 -DURI_STATIC_BUILD -DUSE_IMPORT_EXPORT
-DUSE_IMPORT_EXPORT=1 -DUSE_WINDOWS_DLL_SEMANTICS -D_CRT_SECURE_NO_WARNINGS
-D_ENABLE_EXTENDED_ALIGNED_STORAGE -Darrow_flight_testing_shared_EXPORTS
-ID:/a/arrow/arrow/build/cpp/src -ID:/a/arrow/arrow/cpp/src
-ID:/a/arrow/arrow/cpp/src/generated -isystem
D:/a/arrow/arrow/cpp/thirdparty/flatbuffers/include -isystem /mingw32/include
-isystem D:/a/arrow/arrow/build/cpp/xsimd_ep/src/xsimd_ep-install/include
-isystem D:/a/arrow/arrow/cpp/thirdparty/hadoop/include -Wno-noexcept-type
-Wno-subobject-linkage -fdiagnostics-color=always -O3 -DNDEBUG -Wa,-mbig-obj
-Wall -Wno-conversion -Wno-deprecated-declarations -Wno-sign-conversion
-Wunused-result -fno-semantic-interposition -mxsave -msse4.2 -O3 -DNDEBUG
-std=c++11 -MD -MT
src/arrow/flight/CMakeFiles/arrow_flight_testing_shared.dir/Unity/unity_0_cxx.cxx.obj
-MF
src\arrow\flight\CMakeFiles\arrow_flight_testing_shared.dir\Unity\unity_0_cxx.cxx.obj.d
-o
src/arrow/flight/CMakeFiles/arrow_flight_testing_shared.dir/Unity/unity_0_cxx.cxx.obj
-c
D:/a/arrow/arrow/build/cpp/src/arrow/flight/CMakeFiles/arrow_flight_testing_shared.dir/Unity/unity_0_cxx.cxx
In file included from
D:/a/arrow/arrow/build/cpp/src/arrow/flight/CMakeFiles/arrow_flight_testing_shared.dir/Unity/unity_0_cxx.cxx:5:
D:/a/arrow/arrow/cpp/src/arrow/flight/test_util.cc: In function 'arrow::Status
arrow::flight::ExampleTlsCertificates(std::vector<arrow::flight::CertKeyPair>*)':
D:/a/arrow/arrow/cpp/src/arrow/flight/test_util.cc:775:31: error: variable
'std::ifstream cert_file' has initializer but incomplete type
775 | std::ifstream cert_file(cert_path.str());
| ^~~~~~~~~
D:/a/arrow/arrow/cpp/src/arrow/flight/test_util.cc:782:30: error: variable
'std::ifstream key_file' has initializer but incomplete type
782 | std::ifstream key_file(key_path.str());
| ^~~~~~~~
D:/a/arrow/arrow/cpp/src/arrow/flight/test_util.cc:790:42: error: expected
unqualified-id before '&' token
790 | } catch (const std::ifstream::failure& e) {
| ^
D:/a/arrow/arrow/cpp/src/arrow/flight/test_util.cc:790:42: error: expected ')'
before '&' token
790 | } catch (const std::ifstream::failure& e) {
| ~ ^
| )
D:/a/arrow/arrow/cpp/src/arrow/flight/test_util.cc:790:42: error: expected '{'
before '&' token
D:/a/arrow/arrow/cpp/src/arrow/flight/test_util.cc:790:44: error: 'e' was not
declared in this scope
790 | } catch (const std::ifstream::failure& e) {
| ^
D:/a/arrow/arrow/cpp/src/arrow/flight/test_util.cc: In function 'arrow::Status
arrow::flight::ExampleTlsCertificateRoot(arrow::flight::CertKeyPair*)':
D:/a/arrow/arrow/cpp/src/arrow/flight/test_util.cc:805:29: error: variable
'std::ifstream cert_file' has initializer but incomplete type
805 | std::ifstream cert_file(path.str());
| ^~~~
D:/a/arrow/arrow/cpp/src/arrow/flight/test_util.cc:814:40: error: expected
unqualified-id before '&' token
814 | } catch (const std::ifstream::failure& e) {
| ^
D:/a/arrow/arrow/cpp/src/arrow/flight/test_util.cc:814:40: error: expected ')'
before '&' token
814 | } catch (const std::ifstream::failure& e) {
| ~ ^
| )
D:/a/arrow/arrow/cpp/src/arrow/flight/test_util.cc:814:40: error: expected '{'
before '&' token
D:/a/arrow/arrow/cpp/src/arrow/flight/test_util.cc:814:42: error: 'e' was not
declared in this scope
814 | } catch (const std::ifstream::failure& e) {
| ^ {noformat}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)