file included from /usr/include/linux/target_core_user.h:8, BUILDSTDERR: from /builddir/build/BUILD/tcmu-runner-1.1.3/libtcmu.c:31: BUILDSTDERR: /usr/include/linux/uio.h:17:8: error: redefinition of 'struct iovec' BUILDSTDERR: struct iovec BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from /usr/include/bits/fcntl-linux.h:38, BUILDSTDERR: from /usr/include/bits/fcntl.h:62, BUILDSTDERR: from /usr/include/fcntl.h:35, BUILDSTDERR: from /builddir/build/BUILD/tcmu-runner-1.1.3/libtcmu.c:20: BUILDSTDERR: /usr/include/bits/types/struct_iovec.h:26:8: note: originally defined here BUILDSTDERR: struct iovec BUILDSTDERR: ^~~~~ [ 42%] Linking C shared library handler_qcow.so /usr/bin/cmake -E cmake_link_script CMakeFiles/handler_qcow.dir/link.txt --verbose=1 /usr/bin/cc -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -std=c99 -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -shared -Wl,-soname,handler_qcow.so -o handler_qcow.so CMakeFiles/handler_qcow.dir/qcow.c.o -lz [ 46%] Linking C shared library handler_file.so /usr/bin/cmake -E cmake_link_script CMakeFiles/handler_file.dir/link.txt --verbose=1 /usr/bin/cc -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -std=c99 -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -shared -Wl,-soname,handler_file.so -o handler_file.so CMakeFiles/handler_file.dir/file_example.c.o make[2]: Leaving directory '/builddir/build/BUILD/tcmu-runner-1.1.3' [ 46%] Built target handler_qcow [ 50%] Building C object CMakeFiles/tcmu_static.dir/tcmuhandler-generated.c.o /usr/bin/cc -Dtcmu_static_EXPORTS -I/usr/include/libnl3 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -std=c99 -fPIC -o CMakeFiles/tcmu_static.dir/tcmuhandler-generated.c.o -c /builddir/build/BUILD/tcmu-runner-1.1.3/tcmuhandler-generated.c make[2]: Leaving directory '/builddir/build/BUILD/tcmu-runner-1.1.3' [ 50%] Built target handler_file BUILDSTDERR: make[2]: *** [CMakeFiles/tcmu_static.dir/build.make:86: CMakeFiles/tcmu_static.dir/libtcmu.c.o] Error 1 BUILDSTDERR: make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/builddir/build/BUILD/tcmu-runner-1.1.3' make[1]: Leaving directory '/builddir/build/BUILD/tcmu-runner-1.1.3' BUILDSTDERR: make[1]: *** [CMakeFiles/Makefile2:261: CMakeFiles/tcmu_static.dir/all] Error 2 BUILDSTDERR: make: *** [Makefile:133: all] Error 2 BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.Sqaiez (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.Sqaiez (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, in do 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/tcmu-runner.spec