[FLINK] CI build failure for flink-test
- Dominant language
- Scala
- Stars
- 1.6k
- Forks
- 657
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 85
Description
### Problem description
Is flink-test build broken? Seeing failures unrelated to my code changes
```
[ 4%] Building CXX object _deps/folly-build/CMakeFiles/folly_base.dir/folly/MacAddress.cpp.o
In file included from /usr/local/include/fmt/format.h:41,
from /__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/FBString.h:34,
from /__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/IPAddressV4.h:34,
from /__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/IPAddress.h:38,
from /__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/IPAddress.cpp:17:
/usr/local/include/fmt/base.h: In instantiation of ‘constexpr fmt::v11::detail::value::value(const T&) [with T = folly::Range; C = const char; typename std::enable_if<(! std::is_pointer<_Ptr>::value), int>::type = 0; Context = fmt::v11::context]’:
/usr/local/include/fmt/format.h:4200:17: required from ‘std::string fmt::v11::format(fmt::v11::format_string, T&& ...) [with T = {folly::Range&}; std::string = std::__cxx11::basic_string; fmt::v11::format_string = fmt::v11::fstring&>]’
/__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/IPAddress.cpp:100:47: required from here
/usr/local/include/fmt/base.h:2201:47: error: static assertion failed: mixing character types is disallowed
2201 | static_assert(std::is_same::value,
| ^~~~~
/usr/local/include/fmt/base.h:2201:47: note: ‘std::integral_constant::value’ evaluates to false
gmake[3]: *** [_deps/folly-build/CMakeFiles/folly_base.dir/build.make:272: _deps/folly-build/CMakeFiles/folly_base.dir/folly/IPAddress.cpp.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
In file included from /usr/local/include/fmt/format.h:41,
from /__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/FBString.h:34,
from /__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/IPAddressV4.h:34,
from /__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/IPAddressV4.cpp:17:
/usr/local/include/fmt/base.h: In instantiation of ‘constexpr fmt::v11::detail::value::value(const T&) [with T = folly::Range; C = const char; typename std::enable_if<(! std::is_pointer<_Ptr>::value), int>::type = 0; Context = fmt::v11::context]’:
/usr/local/include/fmt/format.h:4200:17: required from ‘std::string fmt::v11::format(fmt::v11::format_string, T&& ...) [with T = {folly::Range&}; std::string = std::__cxx11::basic_string; fmt::v11::format_string = fmt::v11::fstring&>]’
/__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/IPAddressV4.cpp:73:20: required from here
/usr/local/include/fmt/base.h:2201:47: error: static assertion failed: mixing character types is disallowed
2201 | static_assert(std::is_same::value,
| ^~~~~
/usr/local/include/fmt/base.h:2201:47: note: ‘std::integral_constant::value’ evaluates to false
gmake[3]: *** [_deps/folly-build/CMakeFiles/folly_base.dir/build.make:286: _deps/folly-build/CMakeFiles/folly_base.dir/folly/IPAddressV4.cpp.o] Error 1
In file included from /usr/local/include/fmt/format.h:41,
from /__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/FBString.h:34,
from /__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/IPAddressV6.h:37,
from /__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/IPAddressV6.cpp:17:
/usr/local/include/fmt/base.h: In instantiation of ‘constexpr fmt::v11::detail::value::value(const T&) [with T = folly::Range; C = const char; typename std::enable_if<(! std::is_pointer<_Ptr>::value), int>::type = 0; Context = fmt::v11::context]’:
/usr/local/include/fmt/format.h:4200:17: required from ‘std::string fmt::v11::format(fmt::v11::format_string, T&& ...) [with T = {folly::Range&}; std::string = std::__cxx11::basic_string; fmt::v11::format_string = fmt::v11::fstring&>]’
/__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/IPAddressV6.cpp:218:20: required from here
/usr/local/include/fmt/base.h:2201:47: error: static assertion failed: mixing character types is disallowed
2201 | static_assert(std::is_same::value,
| ^~~~~
/usr/local/include/fmt/base.h:2201:47: note: ‘std::integral_constant::value’ evaluates to false
gmake[3]: *** [_deps/folly-build/CMakeFiles/folly_base.dir/build.make:300: _deps/folly-build/CMakeFiles/folly_base.dir/folly/IPAddressV6.cpp.o] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:2150: _deps/folly-build/CMakeFiles/folly_base.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:2745: main/CMakeFiles/velox4j_shared.dir/rule] Error 2
gmake: *** [Makefile:468: velox4j_shared] Error 2
Error: Command execution failed.
```
https://github.com/apache/gluten/actions/runs/23281489053/job/67695773165?pr=11789
### System information
CI setup
### CMake log
```bash
[ 4%] Building CXX object _deps/folly-build/CMakeFiles/folly_base.dir/folly/MacAddress.cpp.o
In file included from /usr/local/include/fmt/format.h:41,
from /__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/FBString.h:34,
from /__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/IPAddressV4.h:34,
from /__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/IPAddress.h:38,
from /__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/IPAddress.cpp:17:
/usr/local/include/fmt/base.h: In instantiation of ‘constexpr fmt::v11::detail::value::value(const T&) [with T = folly::Range; C = const char; typename std::enable_if<(! std::is_pointer<_Ptr>::value), int>::type = 0; Context = fmt::v11::context]’:
/usr/local/include/fmt/format.h:4200:17: required from ‘std::string fmt::v11::format(fmt::v11::format_string, T&& ...) [with T = {folly::Range&}; std::string = std::__cxx11::basic_string; fmt::v11::format_string = fmt::v11::fstring&>]’
/__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/IPAddress.cpp:100:47: required from here
/usr/local/include/fmt/base.h:2201:47: error: static assertion failed: mixing character types is disallowed
2201 | static_assert(std::is_same::value,
| ^~~~~
/usr/local/include/fmt/base.h:2201:47: note: ‘std::integral_constant::value’ evaluates to false
gmake[3]: *** [_deps/folly-build/CMakeFiles/folly_base.dir/build.make:272: _deps/folly-build/CMakeFiles/folly_base.dir/folly/IPAddress.cpp.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
In file included from /usr/local/include/fmt/format.h:41,
from /__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/FBString.h:34,
from /__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/IPAddressV4.h:34,
from /__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/IPAddressV4.cpp:17:
/usr/local/include/fmt/base.h: In instantiation of ‘constexpr fmt::v11::detail::value::value(const T&) [with T = folly::Range; C = const char; typename std::enable_if<(! std::is_pointer<_Ptr>::value), int>::type = 0; Context = fmt::v11::context]’:
/usr/local/include/fmt/format.h:4200:17: required from ‘std::string fmt::v11::format(fmt::v11::format_string, T&& ...) [with T = {folly::Range&}; std::string = std::__cxx11::basic_string; fmt::v11::format_string = fmt::v11::fstring&>]’
/__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/IPAddressV4.cpp:73:20: required from here
/usr/local/include/fmt/base.h:2201:47: error: static assertion failed: mixing character types is disallowed
2201 | static_assert(std::is_same::value,
| ^~~~~
/usr/local/include/fmt/base.h:2201:47: note: ‘std::integral_constant::value’ evaluates to false
gmake[3]: *** [_deps/folly-build/CMakeFiles/folly_base.dir/build.make:286: _deps/folly-build/CMakeFiles/folly_base.dir/folly/IPAddressV4.cpp.o] Error 1
In file included from /usr/local/include/fmt/format.h:41,
from /__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/FBString.h:34,
from /__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/IPAddressV6.h:37,
from /__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/IPAddressV6.cpp:17:
/usr/local/include/fmt/base.h: In instantiation of ‘constexpr fmt::v11::detail::value::value(const T&) [with T = folly::Range; C = const char; typename std::enable_if<(! std::is_pointer<_Ptr>::value), int>::type = 0; Context = fmt::v11::context]’:
/usr/local/include/fmt/format.h:4200:17: required from ‘std::string fmt::v11::format(fmt::v11::format_string, T&& ...) [with T = {folly::Range&}; std::string = std::__cxx11::basic_string; fmt::v11::format_string = fmt::v11::fstring&>]’
/__w/gluten/gluten/velox4j/src/main/cpp/build/_deps/folly-src/folly/IPAddressV6.cpp:218:20: required from here
/usr/local/include/fmt/base.h:2201:47: error: static assertion failed: mixing character types is disallowed
2201 | static_assert(std::is_same::value,
| ^~~~~
/usr/local/include/fmt/base.h:2201:47: note: ‘std::integral_constant::value’ evaluates to false
gmake[3]: *** [_deps/folly-build/CMakeFiles/folly_base.dir/build.make:300: _deps/folly-build/CMakeFiles/folly_base.dir/folly/IPAddressV6.cpp.o] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:2150: _deps/folly-build/CMakeFiles/folly_base.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:2745: main/CMakeFiles/velox4j_shared.dir/rule] Error 2
gmake: *** [Makefile:468: velox4j_shared] Error 2
Error: Command execution failed.
```
Contributor guide
Research direction
Start with the linked GitHub Actions run and the CMake log, then inspect the reported folly/IPAddress.cpp, folly/IPAddressV4.cpp, and folly/IPAddressV6.cpp compilation failures involving /usr/local/include/fmt. Determine why the flink-test CI environment rejects these builds; done means the affected CI build completes successfully without the fmt static assertion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp, github-actions
- Domain
- build-system, ci-cd, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100