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

[C++] Can't build Arrow with Substrait on Ubuntu 20.04 #33569

Closed
asfimport opened this issue Nov 25, 2022 · 1 comment
Closed

[C++] Can't build Arrow with Substrait on Ubuntu 20.04 #33569

asfimport opened this issue Nov 25, 2022 · 1 comment

Comments

@asfimport
Copy link

I recently tried to rebuild Arrow with Substrait on Ubuntu 20.04 and got the following error:

[100%] Building CXX object src/arrow/engine/CMakeFiles/arrow_substrait_objlib.dir/substrait/type_internal.cc.o
/home/dewey/Desktop/r/arrow/cpp/src/arrow/engine/substrait/expression_internal.cc: In functionarrow::Status arrow::engine::DecodeArg(const substrait::FunctionArgument&, int, arrow::engine::SubstraitCall*, const arrow::engine::ExtensionSet&, const arrow::engine::ConversionOptions&)’:
/home/dewey/Desktop/r/arrow/cpp/src/arrow/engine/substrait/expression_internal.cc:60:21: error: ‘bool substrait::FunctionArgument::has_enum_() constis private within this context
   60 |   if (arg.has_enum_()) {
      |                     ^
In file included from /home/dewey/Desktop/r/arrow/cpp/src/arrow/engine/substrait/expression_internal.h:30,
                 from /home/dewey/Desktop/r/arrow/cpp/src/arrow/engine/substrait/expression_internal.cc:20:
/home/dewey/.r-arrow-dev-build/build/substrait_ep-generated/substrait/algebra.pb.h:21690:13: note: declared private here
21690 | inline bool FunctionArgument::has_enum_() const {
      |             ^~~~~~~~~~~~~~~~
[100%] Building CXX object src/arrow/engine/CMakeFiles/arrow_substrait_objlib.dir/substrait/util.cc.o
make[2]: *** [src/arrow/engine/CMakeFiles/arrow_substrait_objlib.dir/build.make:76: src/arrow/engine/CMakeFiles/arrow_substrait_objlib.dir/substrait/expression_internal.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:2028: src/arrow/engine/CMakeFiles/arrow_substrait_objlib.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

@westonpace suggested that it is probably a protobuf version problem! For me this is:

$ protoc --version
libprotoc 3.6.1

Reporter: Dewey Dunnington / @paleolimbot
Assignee: Weston Pace / @westonpace

PRs and other links:

Note: This issue was originally created as ARROW-18406. Please see the migration documentation for further details.

@asfimport
Copy link
Author

Weston Pace / @westonpace:
Issue resolved by pull request 14735
#14735

@asfimport asfimport added this to the 11.0.0 milestone Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants