Skip to content

[C++][CI] MinGW jobs fail to build substrait due to a protobuf error #46134

Closed

Description

@raulcd

Describe the bug, including details regarding any error messages, version, and platform.

The MinGW jobs have just started failing with the following error:

 [465/957] Building CXX object src/arrow/engine/CMakeFiles/arrow_substrait_shared.dir/substrait/expression_internal.cc.obj
FAILED: src/arrow/engine/CMakeFiles/arrow_substrait_shared.dir/substrait/expression_internal.cc.obj 
D:\a\_temp\msys64\mingw64\bin\ccache.exe D:\a\_temp\msys64\mingw64\bin\c++.exe -DARROW_ENGINE_EXPORTING -DARROW_HAVE_RUNTIME_AVX2 -DARROW_HAVE_RUNTIME_BMI2 -DARROW_HAVE_RUNTIME_SSE4_2 -DARROW_HAVE_SSE4_2 -DPROTOBUF_USE_DLLS -DUSE_IMPORT_EXPORT -D_CRT_SECURE_NO_WARNINGS -Darrow_substrait_shared_EXPORTS -ID:/a/arrow/arrow/build/cpp/src -ID:/a/arrow/arrow/cpp/src -ID:/a/arrow/arrow/cpp/src/generated -ID:/a/arrow/arrow/build/cpp/substrait_ep-generated -Wredundant-move -Wno-noexcept-type -Wno-self-move  -fdiagnostics-color=always  -Wa,-mbig-obj -Wall -Wno-conversion -Wno-sign-conversion -Wdate-time -Wimplicit-fallthrough -Wunused-result -fno-semantic-interposition -mxsave -msse4.2  -O3 -DNDEBUG -O2 -ftree-vectorize  -std=c++17 -MD -MT src/arrow/engine/CMakeFiles/arrow_substrait_shared.dir/substrait/expression_internal.cc.obj -MF src\arrow\engine\CMakeFiles\arrow_substrait_shared.dir\substrait\expression_internal.cc.obj.d -o src/arrow/engine/CMakeFiles/arrow_substrait_shared.dir/substrait/expression_internal.cc.obj -c D:/a/arrow/arrow/cpp/src/arrow/engine/substrait/expression_internal.cc
D:/a/arrow/arrow/cpp/src/arrow/engine/substrait/expression_internal.cc: In function 'std::string arrow::engine::EnumToString(int, const google::protobuf::EnumDescriptor*)':
D:/a/arrow/arrow/cpp/src/arrow/engine/substrait/expression_internal.cc:145:26: error: could not convert 'value_desc->google::protobuf::EnumValueDescriptor::name()' from 'google::protobuf::internal::DescriptorStringView' {aka 'std::basic_string_view<char>'} to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
  145 |   return value_desc->name();
      |          ~~~~~~~~~~~~~~~~^~
      |                          |
      |                          google::protobuf::internal::DescriptorStringView {aka std::basic_string_view<char>}
[466/957] Building CXX object src/arrow/engine/CMakeFiles/arrow_substrait_shared.dir/substrait/extension_types.cc.obj
[467/957] Building CXX object src/arrow/engine/CMakeFiles/arrow_substrait_shared.dir/substrait/extended_expression_internal.cc.obj
[468/957] Building CXX object src/arrow/engine/CMakeFiles/arrow_substrait_shared.dir/substrait/extension_set.cc.obj
ninja: build stopped: subcommand failed.

This is happening on PRs and main, example failures:

Component(s)

C++, Continuous Integration

Activity

  1. added a commit that references this issue on Apr 14, 2025
  2. removed their assignment
    on Apr 14, 2025
  3. added a commit that references this issue on Apr 14, 2025
  4. raulcd commented on Apr 14, 2025

    @raulcd
    MemberAuthor

    Successful builds were using mingw-w64-x86_64-protobuf-29.3-1 failing builds are using mingw-w64-x86_64-protobuf-30.2-1

  5. raulcd commented on Apr 14, 2025

    @raulcd
    MemberAuthor

    This is the breaking change we are facing:

  6. added this to the 21.0.0 milestone on Apr 14, 2025
  7. kou commented on Apr 14, 2025

    @kou
    Member

    Issue resolved by pull request 46136
    #46136

  8. kou commented on Apr 14, 2025

    @kou
    Member

    @assignUser We may need this for 20.0.0.

  9. modified the milestones: 21.0.0, 20.0.0 on Apr 15, 2025
  10. added a commit that references this issue on Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions