abseil/abseil-cpp

[Bug]: failed to build python-grpcio when using -std=c++14

Closed this issue · 0 comments

Describe the issue

C:/msys64/tmp/msys64/ucrt64/include/absl/container/internal/compressed_tuple.h:203:47: error: 'constexpr' call flows off the end of the function 203 | class ABSL_INTERNAL_COMPRESSED_TUPLE_DECLSPEC CompressedTuple | ^~~~~~~~~~~~~~~ C:/msys64/tmp/msys64/ucrt64/include/absl/container/internal/compressed_tuple.h:206:61: note: in template argument for type 'bool' 206 | internal_compressed_tuple::ShouldAnyUseBase<Ts...>()> { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ ./src/core/lib/surface/server.h:371:11: error: 'optional' in namespace 'absl' does not name a template type 371 | absl::optional<Slice> path_; | ^~~~~~~~ ./src/core/lib/surface/server.h:372:11: error: 'optional' in namespace 'absl' does not name a template type 372 | absl::optional<Slice> host_; | ^~~~~~~~ ./src/core/lib/surface/server.h:281:7: error: expected primary-expression before 'using' 281 | using is_transparent = void; | ^~~~~ ./src/core/lib/surface/server.h:281:7: error: expected '}' before 'using' ./src/core/lib/surface/server.h:280:72: note: to match this '{' 280 | std::pair<absl::string_view, absl::string_view>>::hasher { | ^ ./src/core/lib/surface/server.h:281:7: error: cannot convert '<brace-enclosed initializer list>' to 'int' in initialization 281 | using is_transparent = void; | ^~~~~ ./src/core/lib/surface/server.h:281:7: error: expected ';' before 'using' ./src/core/lib/surface/server.h:518:37: error: 'const class grpc_core::ChannelArgs' has no member named 'GetInt' 518 | std::max(0, channel_args_.GetInt(GRPC_ARG_SERVER_MAX_PENDING_REQUESTS) | ^~~~~~ ./src/core/lib/surface/server.h:522:25: error: 'const class grpc_core::ChannelArgs' has no member named 'GetInt' 522 | channel_args_.GetInt(GRPC_ARG_SERVER_MAX_PENDING_REQUESTS_HARD_LIMIT) | ^~~~~~ ./src/core/lib/surface/server.h:523:32: error: could not convert '{<expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'grpc_core::RandomEarlyDetection' 523 | .value_or(3000)))}; | ^ | | | <brace-enclosed initializer list> ./src/core/lib/surface/call.h:72:9: error: 'optional' in namespace 'absl' does not name a template type 72 | absl::optional<grpc_core::Slice> path; | ^~~~~~~~ ./src/core/lib/surface/call.h:73:9: error: 'optional' in namespace 'absl' does not name a template type 73 | absl::optional<grpc_core::Slice> authority; | ^~~~~~~~ ./src/core/lib/surface/call.h:215:7: error: 'string_view' in namespace 'absl' does not name a type 215 | absl::string_view grpc_call_server_authority(const grpc_call* call); | ^~~~~~~~~~~ ./src/core/lib/channel/promise_based_filter.h:417:11: error: 'optional' in namespace 'absl' does not name a template type 417 | absl::optional<PipeSender<MessageHandle>::PushType> push_; | ^~~~~~~~ ./src/core/lib/channel/promise_based_filter.h:418:11: error: 'optional' in namespace 'absl' does not name a template type 418 | absl::optional<PipeReceiverNextType<MessageHandle>> next_; | ^~~~~~~~ ./src/core/lib/channel/promise_based_filter.h:516:11: error: 'optional' in namespace 'absl' does not name a template type 516 | absl::optional<SliceBuffer>* intercepted_slice_buffer_; | ^~~~~~~~ ./src/core/lib/channel/promise_based_filter.h:518:11: error: 'optional' in namespace 'absl' does not name a template type 518 | absl::optional<PipeSender<MessageHandle>::PushType> push_; | ^~~~~~~~ ./src/core/lib/channel/promise_based_filter.h:519:11: error: 'optional' in namespace 'absl' does not name a template type 519 | absl::optional<PipeReceiverNextType<MessageHandle>> next_; | ^~~~~~~~ ./src/core/lib/channel/promise_based_filter.h:544:17: error: 'string_view' in namespace 'absl' does not name a type 544 | virtual absl::string_view ClientOrServerString() const = 0; | ^~~~~~~~~~~ ./src/core/lib/channel/promise_based_filter.h: In member function 'virtual void grpc_core::promise_filter_detail::BaseCallData::WakeupAsync(grpc_core::WakeupMask)': ./src/core/lib/channel/promise_based_filter.h:550:40: error: 'Crash' was not declared in this scope 550 | void WakeupAsync(WakeupMask) final { Crash("not implemented"); } | ^~~~~ ./src/core/lib/channel/promise_based_filter.h: At global scope: ./src/core/lib/channel/promise_based_filter.h:654:9: error: 'string_view' in namespace 'absl' does not name a type 654 | absl::string_view ClientOrServerString() const override { return "CLI"; } | ^~~~~~~~~~~ ./src/core/lib/channel/promise_based_filter.h:697:9: error: 'string_view' in namespace 'absl' does not name a type 697 | absl::string_view ClientOrServerString() const override { return "SVR"; } | ^~~~~~~~~~~ ./src/core/ext/filters/backend_metrics/backend_metric_filter.h:46:9: error: 'optional' in namespace 'absl' does not name a template type 46 | absl::optional<std::string> MaybeSerializeBackendMetrics( | ^~~~~~~~ src/core/ext/filters/backend_metrics/backend_metric_filter.cc:50:7: error: 'optional' in namespace 'absl' does not name a template type 50 | absl::optional<std::string> BackendMetricFilter::MaybeSerializeBackendMetrics( | ^~~~~~~~ src/core/ext/filters/backend_metrics/backend_metric_filter.cc: In static member function 'static absl::lts_20230802::StatusOr<grpc_core::BackendMetricFilter> grpc_core::BackendMetricFilter::Create(const grpc_core::ChannelArgs&, grpc_core::ChannelFilter::Args)': src/core/ext/filters/backend_metrics/backend_metric_filter.cc:117:10: error: could not convert 'grpc_core::BackendMetricFilter()' from 'grpc_core::BackendMetricFilter' to 'absl::lts_20230802::StatusOr<grpc_core::BackendMetricFilter>' 117 | return BackendMetricFilter(); | ^~~~~~~~~~~~~~~~~~~~~ | | | grpc_core::BackendMetricFilter src/core/ext/filters/backend_metrics/backend_metric_filter.cc: In lambda function: src/core/ext/filters/backend_metrics/backend_metric_filter.cc:133:15: error: 'optional' is not a member of 'absl' 133 | absl::optional<std::string> serialized = MaybeSerializeBackendMetrics( | ^~~~~~~~ src/core/ext/filters/backend_metrics/backend_metric_filter.cc:133:35: error: expected primary-expression before '>' token 133 | absl::optional<std::string> serialized = MaybeSerializeBackendMetrics( | ^ src/core/ext/filters/backend_metrics/backend_metric_filter.cc:133:37: error: 'serialized' was not declared in this scope; did you mean '_serialize'? 133 | absl::optional<std::string> serialized = MaybeSerializeBackendMetrics( | ^~~~~~~~~~ | _serialize src/core/ext/filters/backend_metrics/backend_metric_filter.cc:133:50: error: 'MaybeSerializeBackendMetrics' was not declared in this scope 133 | absl::optional<std::string> serialized = MaybeSerializeBackendMetrics( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:/msys64/tmp/msys64/ucrt64/include/absl/strings/internal/str_format/bind.h: In instantiation of 'absl::lts_20230802::str_format_internal::FormatSpecTemplate<Args>::FormatSpecTemplate(const char*) [with absl::lts_20230802::FormatConversionCharSet ...Args = {(absl::lts_20230802::FormatConversionCharSet)655355}]': C:/msys64/tmp/msys64/ucrt64/include/absl/crc/crc32c.h:184:34: required from here C:/msys64/tmp/msys64/ucrt64/include/absl/strings/internal/str_format/bind.h:164:45: error: no matching function for call to 'absl::lts_20230802::UntypedFormatSpec::UntypedFormatSpec(const char*&)' 164 | FormatSpecTemplate(const char* s) : Base(s) {} // NOLINT | ^

Steps to reproduce the problem

regular build

What version of Abseil are you using?

20230802.1

What operating system and version are you using?

Windows Server 2022 (Standard) x86_64

What compiler and version are you using?

Using built-in specs.
COLLECT_GCC=C:\msys64\tmp\msys64\ucrt64\bin\gcc.exe
COLLECT_LTO_WRAPPER=C:/msys64/tmp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-13.2.0/configure --prefix=/ucrt64 --with-local-prefix=/ucrt64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/ucrt64/include --libexecdir=/ucrt64/lib --enable-bootstrap --enable-checking=release --with-arch=nocona --with-tune=generic --enable-languages=c,lto,c++,fortran,ada,objc,obj-c++,jit --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-filesystem-ts --enable-libstdcxx-time --disable-libstdcxx-pch --enable-lto --enable-libgomp --disable-libssp --disable-multilib --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-libiconv --with-system-zlib --with-gmp=/ucrt64 --with-mpfr=/ucrt64 --with-mpc=/ucrt64 --with-isl=/ucrt64 --with-pkgversion='Rev3, Built by MSYS2 project' --with-bugurl=https://github.com/msys2/MINGW-packages/issues --with-gnu-as --with-gnu-ld --disable-libstdcxx-debug --with-boot-ldflags=-static-libstdc++ --with-stage1-ldflags=-static-libstdc++
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.2.0 (Rev3, Built by MSYS2 project)

What build system are you using?

cmake version 3.28.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).

Additional context

No response