usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -Wpedantic -std=c11 -O2 -g -DNDEBUG -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -rdynamic CMakeFiles/sysrepoctl.dir/src/executables/sysrepoctl.c.o CMakeFiles/sysrepoctl.dir/compat/compat.c.o -o sysrepoctl -Wl,-rpath,/builddir/build/BUILD/sysrepo-2.1.84/redhat-linux-build: libsysrepo.so.7.8.10 -latomic -Wl,-Bstatic -lrt -Wl,-Bdynamic -ldl -lyang [ 34%] Linking C executable test_modules cd /builddir/build/BUILD/sysrepo-2.1.84/redhat-linux-build/tests && /usr/bin/cmake -E cmake_link_script CMakeFiles/test_modules.dir/link.txt --verbose=1 /usr/bin/gcc -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 -Wall -Wextra -Wpedantic -std=c11 -O2 -g -DNDEBUG -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -rdynamic CMakeFiles/test_modules.dir/test_common.c.o CMakeFiles/test_modules.dir/test_modules.c.o -o test_modules -Wl,-rpath,/builddir/build/BUILD/sysrepo-2.1.84/redhat-linux-build -lcmocka ../libsysrepo.so.7.8.10 -latomic -Wl,-Bstatic -lrt -Wl,-Bdynamic -ldl -lyang /usr/bin/ld: libsysrepo.so.7.8.10: undefined reference to `lyd_insert_ext' collect2: error: ld returned 1 exit status gmake[2]: *** [CMakeFiles/sysrepo-plugind.dir/build.make:119: sysrepo-plugind] Error 1 gmake[2]: Leaving directory '/builddir/build/BUILD/sysrepo-2.1.84/redhat-linux-build' gmake[1]: *** [CMakeFiles/Makefile2:286: CMakeFiles/sysrepo-plugind.dir/all] Error 2 gmake[1]: *** Waiting for unfinished jobs.... /usr/bin/ld: libsysrepo.so.7.8.10: undefined reference to `lyd_insert_ext' collect2: error: ld returned 1 exit status gmake[2]: *** [CMakeFiles/sysrepocfg.dir/build.make:119: sysrepocfg] Error 1 gmake[2]: Leaving directory '/builddir/build/BUILD/sysrepo-2.1.84/redhat-linux-build' gmake[1]: *** [CMakeFiles/Makefile2:260: CMakeFiles/sysrepocfg.dir/all] Error 2 /usr/bin/ld: ../libsysrepo.so.7.8.10: undefined reference to `lyd_insert_ext' collect2: error: ld returned 1 exit status gmake[2]: *** [tests/CMakeFiles/test_modules.dir/build.make:120: tests/test_modules] Error 1 gmake[2]: Leaving directory '/builddir/build/BUILD/sysrepo-2.1.84/redhat-linux-build' gmake[1]: *** [CMakeFiles/Makefile2:416: tests/CMakeFiles/test_modules.dir/all] Error 2 /usr/bin/ld: libsysrepo.so.7.8.10: undefined reference to `lyd_insert_ext' collect2: error: ld returned 1 exit status gmake[2]: *** [CMakeFiles/sysrepoctl.dir/build.make:119: sysrepoctl] Error 1 gmake[2]: Leaving directory '/builddir/build/BUILD/sysrepo-2.1.84/redhat-linux-build' gmake[1]: Leaving directory '/builddir/build/BUILD/sysrepo-2.1.84/redhat-linux-build' gmake[1]: *** [CMakeFiles/Makefile2:234: CMakeFiles/sysrepoctl.dir/all] Error 2 gmake: *** [Makefile:149: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.EaZUlQ (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.EaZUlQ (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, 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/sysrepo.spec