mnizhq007 opened a new issue, #2215: URL: https://github.com/apache/kvrocks/issues/2215
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/kvrocks/issues) and found no similar issues. ### Version kvrocks:2.7.0 OS:CentOS Linux release 7.9.2009 (Core) gcc:gcc version 11.2.1 20220127 (Red Hat 11.2.1-9) (GCC) cmake:cmake version 3.26.0-rc6 ### Minimal reproduce step ./x.py build -DDEPS_FETCH_PROXY=https://hub.nuaa.cf/ ### What did you expect to see? 希望能解决兼容问题,实现正常编译 ### What did you see instead?  [ 84%] Linking C static library lib/libevent.a [ 84%] Built target event_static [ 84%] Building CXX object _deps/fmt-build/CMakeFiles/fmt.dir/src/format.cc.o [ 84%] Building CXX object _deps/fmt-build/CMakeFiles/fmt.dir/src/os.cc.o [ 84%] Linking CXX static library libfmt.a [ 84%] Built target fmt [ 85%] Building CXX object CMakeFiles/kvrocks_objs.dir/src/cluster/cluster.cc.o /root/apache-kvrocks-2.7.0-src/src/cluster/cluster.cc: In member function ‘std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > Cluster::getClusterNodeSlots() const’: /root/apache-kvrocks-2.7.0-src/src/cluster/cluster.cc:537:22: error: unused variable ‘_’ [-Werror=unused-variable] for (auto &[_, info] : slots_infos) { ^ cc1plus: some warnings being treated as errors gmake[3]: *** [CMakeFiles/kvrocks_objs.dir/build.make:76: CMakeFiles/kvrocks_objs.dir/src/cluster/cluster.cc.o] Error 1 gmake[2]: *** [CMakeFiles/Makefile2:530: CMakeFiles/kvrocks_objs.dir/all] Error 2 gmake[1]: *** [CMakeFiles/Makefile2:577: CMakeFiles/kvrocks.dir/rule] Error 2 gmake: *** [Makefile:254: kvrocks] Error 2 Traceback (most recent call last): File "./x.py", line 422, in <module> args.func(**arg_dict) File "./x.py", line 137, in build run(cmake, *options, verbose=True, cwd=dir) File "./x.py", line 68, in run raise RuntimeError(err) RuntimeError: failed to run: ('/usr/local/bin/cmake', '--build', '.', '-t', 'kvrocks', 'kvrocks2redis') exit with code: 2 ### Anything Else? _No response_ ### Are you willing to submit a PR? - [ ] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
