ay-2.0/crypto-gcrypt.c:42: BUILDSTDERR: /usr/include/bits/stdlib-bsearch.h: In function 'bsearch': BUILDSTDERR: /usr/include/bits/stdlib-bsearch.h:32:13: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] BUILDSTDERR: __p = (void *) (((const char *) __base) + (__idx * __size)); BUILDSTDERR: ^ BUILDSTDERR: /usr/include/bits/stdlib-bsearch.h:39:9: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] BUILDSTDERR: return (void *) __p; BUILDSTDERR: ^ BUILDSTDERR: In file included from /usr/include/sys/socket.h:33, BUILDSTDERR: from /usr/include/gcrypt.h:43, BUILDSTDERR: from /builddir/build/BUILD/tc-play-2.0/crypto-gcrypt.c:42: BUILDSTDERR: /usr/include/bits/socket.h: In function '__cmsg_nxthdr': BUILDSTDERR: /usr/include/bits/socket.h:315:12: warning: cast increases required alignment of target type [-Wcast-align] BUILDSTDERR: __cmsg = (struct cmsghdr *) ((unsigned char *) __cmsg BUILDSTDERR: ^ BUILDSTDERR: In file included from /usr/include/sys/socket.h:33, BUILDSTDERR: from /usr/include/gcrypt.h:43, BUILDSTDERR: from /builddir/build/BUILD/tc-play-2.0/pbkdf2-gcrypt.c:38: BUILDSTDERR: /usr/include/bits/socket.h: In function '__cmsg_nxthdr': BUILDSTDERR: /usr/include/bits/socket.h:315:12: warning: cast increases required alignment of target type [-Wcast-align] BUILDSTDERR: __cmsg = (struct cmsghdr *) ((unsigned char *) __cmsg BUILDSTDERR: ^ [100%] Linking C shared library libtcplay.so /usr/bin/cmake -E cmake_link_script CMakeFiles/tcplay-so.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 -Wl,--version-script=/builddir/build/BUILD/tc-play-2.0/tcplay.map -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -shared -Wl,-soname,libtcplay.so.2.0 -o libtcplay.so.2.0 CMakeFiles/tcplay-so.dir/tcplay_api.c.o CMakeFiles/tcplay-so.dir/tcplay.c.o CMakeFiles/tcplay-so.dir/crc32.c.o CMakeFiles/tcplay-so.dir/safe_mem.c.o CMakeFiles/tcplay-so.dir/io.c.o CMakeFiles/tcplay-so.dir/hdr.c.o CMakeFiles/tcplay-so.dir/humanize.c.o CMakeFiles/tcplay-so.dir/crypto.c.o CMakeFiles/tcplay-so.dir/generic_xts.c.o CMakeFiles/tcplay-so.dir/crypto-gcrypt.c.o CMakeFiles/tcplay-so.dir/pbkdf2-gcrypt.c.o -ldevmapper -luuid -lgcrypt -lgpg-error /usr/bin/cmake -E cmake_symlink_library libtcplay.so.2.0 libtcplay.so.2.0 libtcplay.so make[2]: Leaving directory '/builddir/build/BUILD/tc-play-2.0' [100%] Built target tcplay-so make[1]: Leaving directory '/builddir/build/BUILD/tc-play-2.0' BUILDSTDERR: make: *** [Makefile:155: all] Error 2 BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.IarM4B (%build) RPM build errors: BUILDSTDERR: Macro expanded in comment on line 3: %global git_date 20130629 BUILDSTDERR: Macro expanded in comment on line 4: %global git_hash b44b1fa BUILDSTDERR: Macro expanded in comment on line 12: %{git_date}git%{git_hash}%{?dist} BUILDSTDERR: Macro expanded in comment on line 18: %{git_user}/%{git_project}/tarball/%{git_hash}/%{git_project}-%{git_hash}.tar.gz BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.IarM4B (%build) 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/tcplay.spec