ild/BUILD/cppcheck-2.2/externals -isystem /builddir/build/BUILD/cppcheck-2.2/externals/tinyxml -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -O2 -pedantic -Wall -Wextra -Wcast-qual -Wno-deprecated-declarations -Wfloat-equal -Wmissing-declarations -Wmissing-format-attribute -Wno-long-long -Wpacked -Wredundant-decls -Wundef -Wno-shadow -Wno-missing-field-initializers -Wno-missing-braces -Wno-sign-compare -Wno-multichar -Woverloaded-virtual -Wno-maybe-uninitialized -std=gnu++11 -o CMakeFiles/lib_objs.dir/build/mc_forwardanalyzer.cpp.o -c /builddir/build/BUILD/cppcheck-2.2/riscv64-redhat-linux-gnu/lib/build/mc_forwardanalyzer.cpp /builddir/build/BUILD/cppcheck-2.2/lib/exprengine.cpp: In member function 'z3::expr ExprData::getExpr(const ExprEngine::BinOpResult*)': /builddir/build/BUILD/cppcheck-2.2/lib/exprengine.cpp:1070:24: error: could not convert '(((int)op1.z3::expr::.z3::ast::operator bool()) % ((int)op2.z3::expr::.z3::ast::operator bool()))' from 'int' to 'z3::expr' 1070 | return op1 % op2; | ~~~~^~~~~ | | | int [ 40%] Building CXX object lib/CMakeFiles/lib_objs.dir/build/mc_importproject.cpp.o cd /builddir/build/BUILD/cppcheck-2.2/riscv64-redhat-linux-gnu/lib && /usr/bin/g++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_RULES -DTIXML_USE_STL -DUSE_Z3 -I/builddir/build/BUILD/cppcheck-2.2/riscv64-redhat-linux-gnu/lib -I/builddir/build/BUILD/cppcheck-2.2/lib -I/builddir/build/BUILD/cppcheck-2.2/cppcheck -I/builddir/build/BUILD/cppcheck-2.2/externals/simplecpp -isystem /usr/include/z3 -isystem /builddir/build/BUILD/cppcheck-2.2/externals -isystem /builddir/build/BUILD/cppcheck-2.2/externals/tinyxml -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -O2 -pedantic -Wall -Wextra -Wcast-qual -Wno-deprecated-declarations -Wfloat-equal -Wmissing-declarations -Wmissing-format-attribute -Wno-long-long -Wpacked -Wredundant-decls -Wundef -Wno-shadow -Wno-missing-field-initializers -Wno-missing-braces -Wno-sign-compare -Wno-multichar -Woverloaded-virtual -Wno-maybe-uninitialized -std=gnu++11 -o CMakeFiles/lib_objs.dir/build/mc_importproject.cpp.o -c /builddir/build/BUILD/cppcheck-2.2/riscv64-redhat-linux-gnu/lib/build/mc_importproject.cpp gmake[2]: *** [lib/CMakeFiles/lib_objs.dir/build.make:802: lib/CMakeFiles/lib_objs.dir/build/mc_exprengine.cpp.o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... gmake[2]: Leaving directory '/builddir/build/BUILD/cppcheck-2.2/riscv64-redhat-linux-gnu' gmake[1]: Leaving directory '/builddir/build/BUILD/cppcheck-2.2/riscv64-redhat-linux-gnu' gmake[1]: *** [CMakeFiles/Makefile2:354: lib/CMakeFiles/lib_objs.dir/all] Error 2 gmake: *** [Makefile:163: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.IZqarK (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.IZqarK (%build) 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/cppcheck.spec