Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build on Arch Linux with protobuf 23.4-1 #734

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

mklinik
Copy link
Contributor

@mklinik mklinik commented Jul 18, 2023

Arch gave me this version of protobuf in a recent system update, and astroid no longer builds with it. This patch fixes the build.

Based on https://gitlab.archlinux.org/archlinux/packaging/packages/astroid/-/blob/main/protobuf-23.patch

Arch gave me this version of protobuf in a recent system update
@mklinik mklinik changed the title build with protobuf 23.4-1 build on Arch Linux with protobuf 23.4-1 Jul 18, 2023
@jorsn
Copy link
Member

jorsn commented Jun 1, 2024

Thanks! This seems necessary for newer protobuf in general (not only on arch), and it also still builds with protobuf 21.12.
But why change to c++17?

@mklinik
Copy link
Contributor Author

mklinik commented Jun 3, 2024

But why change to c++17?

When I try to compile with c++14 I get the following compile error, among many others

In file included from /usr/include/google/protobuf/stubs/common.h:20,
                 from /usr/include/google/protobuf/io/coded_stream.h:107,
                 from /home/mkl/sandbox/software/astroid/build/messages.pb.h:26,
                 from /home/mkl/sandbox/software/astroid/src/modes/thread_view/page_client.hh:14,
                 from /home/mkl/sandbox/software/astroid/src/modes/thread_view/thread_view.cc:19:
/usr/include/absl/strings/string_view.h:53:26: error: ‘string_view’ in namespace ‘std’ does not name a type

Searching for this error message, I found people saying that string_view is apparently a feature introduced in c++17.

@jorsn
Copy link
Member

jorsn commented Jun 3, 2024

Ah, yes, you're right.

@jorsn jorsn merged commit 47b451a into astroidmail:master Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants