Skip to content

Update Envoy toolchain to C++20 #27757

Open

Description

@yanavlasov

Moving to C++20 required update of the protobuf to v22.x to pull in proto complier changes that handle C++20 reserved keywords correctly. protobuf v22 also underwent a massive refactor, which impacted a number of dependencies.

Impacted Envoy dependencies are failing to build with the protobuf v22.x because they used the internal guts (details) of previous protobuf.

List of affected dependencies:

  • PGV and star validate
  • gRPC-JSON transcoder (in progress)
  • CEL (in progress)

C++20 mode is now enabled for the compile-time-options build. Moving forward an enabling it for the main build requires the following changes:

  • Update GCC to version 11 for C++20 support comparable to clang
  • Update Windows Visual Studio to 16.10 at least (currently at 16.9)
  • May need to ditch clang with stdlib as the stdlib version bundled with clang does not support C++20 (at least in clang-14). Only clang with libc++ will be supported.

Activity

  1. added
    enhancement
    triage
    and removed
    triage
    on Jun 1, 2023
  2. self-assigned this
    on Jun 1, 2023
  3. github-actions commented on Jul 1, 2023

    @github-actions

    This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.

  4. added
    stale
    on Jul 1, 2023
  5. github-actions commented on Jul 8, 2023

    @github-actions

    This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.

  6. added
    no stalebot
    and removed
    stale
    on Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/buildenhancementno stalebot

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions