en.h:34, from ./google/protobuf/map_lite_unittest.pb.h:26, from google/protobuf/map_lite_unittest.pb.cc:4: ./google/protobuf/parse_context.h: In instantiation of 'bool google::protobuf::internal::ExpectTag(const char*) [with unsigned int tag = 810]': google/protobuf/map_lite_unittest.pb.cc:4197:73: required from here ./google/protobuf/parse_context.h:397:17: error: comparison is always false due to limited range of data type [-Werror=type-limits] 397 | return *ptr == tag; | ~~~~~^~~~~~ ./google/protobuf/parse_context.h: In instantiation of 'bool google::protobuf::internal::ExpectTag(const char*) [with unsigned int tag = 818]': google/protobuf/map_lite_unittest.pb.cc:4210:73: required from here ./google/protobuf/parse_context.h:397:17: error: comparison is always false due to limited range of data type [-Werror=type-limits] CXX google/protobuf/no_warning_test-unittest_import_lite.pb.o CXX google/protobuf/no_warning_test-unittest_import_public_lite.pb.o CXX google/protobuf/no_warning_test-any_test.pb.o CXX google/protobuf/compiler/cpp/no_warning_test-cpp_test_bad_identifiers.pb.o CXX google/protobuf/compiler/cpp/no_warning_test-cpp_test_large_enum_value.pb.o CXX google/protobuf/no_warning_test-map_proto2_unittest.pb.o CXX google/protobuf/no_warning_test-map_unittest.pb.o CXX google/protobuf/no_warning_test-unittest_arena.pb.o In file included from ./google/protobuf/map_type_handler.h:34, from ./google/protobuf/map.h:49, from ./google/protobuf/generated_message_table_driven.h:34, from ./google/protobuf/map_proto2_unittest.pb.h:26, from google/protobuf/map_proto2_unittest.pb.cc:4: ./google/protobuf/parse_context.h: In instantiation of 'bool google::protobuf::internal::ExpectTag(const char*) [with unsigned int tag = 810]': google/protobuf/map_proto2_unittest.pb.cc:1054:73: required from here ./google/protobuf/parse_context.h:397:17: error: comparison is always false due to limited range of data type [-Werror=type-limits] 397 | return *ptr == tag; | ~~~~~^~~~~~ ./google/protobuf/parse_context.h: In instantiation of 'bool google::protobuf::internal::ExpectTag(const char*) [with unsigned int tag = 818]': google/protobuf/map_proto2_unittest.pb.cc:1067:73: required from here ./google/protobuf/parse_context.h:397:17: error: comparison is always false due to limited range of data type [-Werror=type-limits] CXX google/protobuf/no_warning_test-unittest_custom_options.pb.o cc1plus: all warnings being treated as errors make[2]: *** [Makefile:4475: google/protobuf/no_warning_test-unittest_lite.pb.o] Error 1 make[2]: *** Waiting for unfinished jobs.... cc1plus: all warnings being treated as errors make[2]: *** [Makefile:4461: google/protobuf/no_warning_test-map_lite_unittest.pb.o] Error 1 cc1plus: all warnings being treated as errors make[2]: *** [Makefile:4573: google/protobuf/no_warning_test-map_proto2_unittest.pb.o] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/protobuf-3.11.4/src' make[1]: Leaving directory '/builddir/build/BUILD/protobuf-3.11.4/src' make[1]: *** [Makefile:8357: check-am] Error 2 make: *** [Makefile:1740: check-recursive] Error 1 + exit 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.7xhDIq (%check) Bad exit status from /var/tmp/rpm-tmp.7xhDIq (%check) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/protobuf.spec