Mock Version: 1.4.14 Mock Version: 1.4.14 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/genwqe-tools.spec'], chrootPath='/var/lib/mock/f31-build-110396-34011/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/genwqe-tools.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1548892800 Wrote: /builddir/build/SRPMS/genwqe-tools-4.0.20-7.fc31.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/genwqe-tools.spec'], chrootPath='/var/lib/mock/f31-build-110396-34011/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/genwqe-tools.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1548892800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.V7Os4f + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf genwqe-user-4.0.20 + /usr/bin/gzip -dc /builddir/build/SOURCES/genwqe-user-4.0.20.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd genwqe-user-4.0.20 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/genwqe-user-4.0.18-install-gzFile_test.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.7UE0Oh + umask 022 + cd /builddir/build/BUILD + cd genwqe-user-4.0.20 + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + CFLAGS='-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' + make -j4 tools lib VERSION=4.0.20 CONFIG_ZLIB_PATH=/usr/lib64/libz.so V=2 make[1]: Entering directory '/builddir/build/BUILD/genwqe-user-4.0.20/lib' gcc -c -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 -DGIT_VERSION=\"4.0.20\" -I. -I../include -I../include/linux/uapi -D_GNU_SOURCE=1 -I../include -DCONFIG_DLOPEN_MECHANISM -DCONFIG_ZLIB_PATH=\"/usr/lib64/libz.so\" -DGIT_VERSION=\"4.0.20\" -I. -I../include -I../include/linux/uapi -D_GNU_SOURCE=1 -I../include -DCONFIG_DLOPEN_MECHANISM -DCONFIG_ZLIB_PATH=\"/usr/lib64/libz.so\" -DGIT_VERSION=\"4.0.20\" -I. -I../include -I../include/linux/uapi -D_GNU_SOURCE=1 -I../include -DCONFIG_DLOPEN_MECHANISM -DCONFIG_ZLIB_PATH=\"/usr/lib64/libz.so\" -fPIC -fno-strict-aliasing libzHW.c -o libzHW.o gcc -c -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 -DGIT_VERSION=\"4.0.20\" -I. -I../include -I../include/linux/uapi -D_GNU_SOURCE=1 -I../include -DCONFIG_DLOPEN_MECHANISM -DCONFIG_ZLIB_PATH=\"/usr/lib64/libz.so\" -DGIT_VERSION=\"4.0.20\" -I. -I../include -I../include/linux/uapi -D_GNU_SOURCE=1 -I../include -DCONFIG_DLOPEN_MECHANISM -DCONFIG_ZLIB_PATH=\"/usr/lib64/libz.so\" -DGIT_VERSION=\"4.0.20\" -I. -I../include -I../include/linux/uapi -D_GNU_SOURCE=1 -I../include -DCONFIG_DLOPEN_MECHANISM -DCONFIG_ZLIB_PATH=\"/usr/lib64/libz.so\" -fPIC -fno-strict-aliasing inflate.c -o inflate.o gcc -c -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 -DGIT_VERSION=\"4.0.20\" -I. -I../include -I../include/linux/uapi -D_GNU_SOURCE=1 -I../include -DCONFIG_DLOPEN_MECHANISM -DCONFIG_ZLIB_PATH=\"/usr/lib64/libz.so\" -DGIT_VERSION=\"4.0.20\" -I. -I../include -I../include/linux/uapi -D_GNU_SOURCE=1 -I../include -DCONFIG_DLOPEN_MECHANISM -DCONFIG_ZLIB_PATH=\"/usr/lib64/libz.so\" -DGIT_VERSION=\"4.0.20\" -I. -I../include -I../include/linux/uapi -D_GNU_SOURCE=1 -I../include -DCONFIG_DLOPEN_MECHANISM -DCONFIG_ZLIB_PATH=\"/usr/lib64/libz.so\" -fPIC -fno-strict-aliasing deflate.c -o deflate.o gcc -c -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 -DGIT_VERSION=\"4.0.20\" -I. -I../include -I../include/linux/uapi -D_GNU_SOURCE=1 -I../include -DCONFIG_DLOPEN_MECHANISM -DCONFIG_ZLIB_PATH=\"/usr/lib64/libz.so\" -DGIT_VERSION=\"4.0.20\" -I. -I../include -I../include/linux/uapi -D_GNU_SOURCE=1 -I../include -DCONFIG_DLOPEN_MECHANISM -DCONFIG_ZLIB_PATH=\"/usr/lib64/libz.so\" -DGIT_VERSION=\"4.0.20\" -I. -I../include -I../include/linux/uapi -D_GNU_SOURCE=1 -I../include -DCONFIG_DLOPEN_MECHANISM -DCONFIG_ZLIB_PATH=\"/usr/lib64/libz.so\" -fPIC -fno-strict-aliasing libcard.c -o libcard.o BUILDSTDERR: In file included from libzHW.c:39: BUILDSTDERR: hw_defs.h:36:21: error: static declaration of 'gettid' follows non-static declaration BUILDSTDERR: 36 | static inline pid_t gettid(void) BUILDSTDERR: | ^~~~~~ BUILDSTDERR: In file included from /usr/include/unistd.h:1170, BUILDSTDERR: from libzHW.c:27: BUILDSTDERR: /usr/include/bits/unistd_ext.h:34:16: note: previous declaration of 'gettid' was here BUILDSTDERR: 34 | extern __pid_t gettid (void) __THROW; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: In file included from inflate.c:47: BUILDSTDERR: hw_defs.h:36:21: error: static declaration of 'gettid' follows non-static declaration BUILDSTDERR: 36 | static inline pid_t gettid(void) BUILDSTDERR: | ^~~~~~ BUILDSTDERR: In file included from /usr/include/unistd.h:1170, BUILDSTDERR: from inflate.c:34: BUILDSTDERR: /usr/include/bits/unistd_ext.h:34:16: note: previous declaration of 'gettid' was here BUILDSTDERR: 34 | extern __pid_t gettid (void) __THROW; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: In file included from deflate.c:44: BUILDSTDERR: hw_defs.h:36:21: error: static declaration of 'gettid' follows non-static declaration BUILDSTDERR: 36 | static inline pid_t gettid(void) BUILDSTDERR: | ^~~~~~ BUILDSTDERR: In file included from /usr/include/unistd.h:1170, BUILDSTDERR: from deflate.c:33: BUILDSTDERR: /usr/include/bits/unistd_ext.h:34:16: note: previous declaration of 'gettid' was here BUILDSTDERR: 34 | extern __pid_t gettid (void) __THROW; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: make[1]: *** [Makefile:209: deflate.o] Error 1 BUILDSTDERR: make[1]: *** Waiting for unfinished jobs.... BUILDSTDERR: make[1]: *** [Makefile:209: libzHW.o] Error 1 BUILDSTDERR: In file included from libcard.c:75: BUILDSTDERR: card_defs.h:35:21: error: static declaration of 'gettid' follows non-static declaration BUILDSTDERR: 35 | static inline pid_t gettid(void) BUILDSTDERR: | ^~~~~~ BUILDSTDERR: In file included from /usr/include/unistd.h:1170, BUILDSTDERR: from libcard.c:51: BUILDSTDERR: /usr/include/bits/unistd_ext.h:34:16: note: previous declaration of 'gettid' was here BUILDSTDERR: 34 | extern __pid_t gettid (void) __THROW; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: make[1]: *** [Makefile:209: inflate.o] Error 1 BUILDSTDERR: make[1]: *** [Makefile:209: libcard.o] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/genwqe-user-4.0.20/lib' BUILDSTDERR: make: *** [Makefile:96: lib] Error 1 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.7UE0Oh (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.7UE0Oh (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 700, 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/genwqe-tools.spec