Mock Version: 1.4.9 Mock Version: 1.4.9 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/atop.spec'], chrootPath='/var/lib/mock/f29-build-10249-4629/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=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/atop.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 Wrote: /builddir/build/SRPMS/atop-2.3.0-10.fc29.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/atop.spec'], chrootPath='/var/lib/mock/f29-build-10249-4629/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=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/atop.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 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.xqjR1O + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf atop-2.3.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/atop-2.3.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd atop-2.3.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (nvme_support.patch):' Patch #0 (nvme_support.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .nvme --fuzz=0 patching file ./photosyst.c + echo 'Patch #1 (atop-sysconfig.patch):' Patch #1 (atop-sysconfig.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .sysconfig --fuzz=0 patching file atop.daily + echo 'Patch #2 (atop-2.3.0-restart.patch):' Patch #2 (atop-2.3.0-restart.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .cron --fuzz=0 patching file atop.cronsystemd + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.oEzMGD + umask 022 + cd /builddir/build/BUILD + cd atop-2.3.0 + make -j4 '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' cc -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 -c -o atop.o atop.c cc -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 -c -o version.o version.c cc -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 -c -o various.o various.c cc -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 -c -o deviate.o deviate.c cc -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 -c -o procdbase.o procdbase.c BUILDSTDERR: procdbase.c:61:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] BUILDSTDERR: static const char rcsid[] = "$Id: procdbase.c,v 1.8 2010/04/23 12:19:35 gerlof Exp $"; BUILDSTDERR: ^~~~~ BUILDSTDERR: various.c: In function 'regainrootprivs': BUILDSTDERR: various.c:604:2: warning: ignoring return value of 'seteuid', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: seteuid(0); BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: At top level: BUILDSTDERR: various.c:101:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] BUILDSTDERR: static const char rcsid[] = "$Id: various.c,v 1.21 2010/11/12 06:16:16 gerlof Exp $"; BUILDSTDERR: ^~~~~ BUILDSTDERR: atop.c:274:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] BUILDSTDERR: static const char rcsid[] = "$Id: atop.c,v 1.49 2010/10/23 14:01:00 gerlof Exp $"; BUILDSTDERR: ^~~~~ BUILDSTDERR: deviate.c:171:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] BUILDSTDERR: static const char rcsid[] = "$Id: deviate.c,v 1.45 2010/10/23 14:02:03 gerlof Exp $"; BUILDSTDERR: ^~~~~ cc -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 -c -o acctproc.o acctproc.c BUILDSTDERR: various.c: In function 'ptrverify': BUILDSTDERR: various.c:562:3: warning: 'args' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: fprintf(stderr, errormsg, args); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: acctproc.c:116:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] BUILDSTDERR: static const char rcsid[] = "$Id: acctproc.c,v 1.28 2010/04/23 12:20:19 gerlof Exp $"; BUILDSTDERR: ^~~~~ cc -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 -c -o photoproc.o photoproc.c cc -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 -c -o photosyst.o photosyst.c BUILDSTDERR: photoproc.c:139:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] BUILDSTDERR: static const char rcsid[] = "$Id: photoproc.c,v 1.33 2010/04/23 12:19:35 gerlof Exp $"; BUILDSTDERR: ^~~~~ BUILDSTDERR: photosyst.c: In function 'lvmmapname': BUILDSTDERR: photosyst.c:1465:19: error: called object 'major' is not a function or function pointer BUILDSTDERR: dmp->major = major(statbuf.st_rdev); BUILDSTDERR: ^~~~~ BUILDSTDERR: photosyst.c:1420:25: note: declared here BUILDSTDERR: lvmmapname(unsigned int major, unsigned int minor, BUILDSTDERR: ~~~~~~~~~~~~~^~~~~ BUILDSTDERR: photosyst.c:1466:19: error: called object 'minor' is not a function or function pointer BUILDSTDERR: dmp->minor = minor(statbuf.st_rdev); BUILDSTDERR: ^~~~~ BUILDSTDERR: photosyst.c:1420:45: note: declared here BUILDSTDERR: lvmmapname(unsigned int major, unsigned int minor, BUILDSTDERR: ~~~~~~~~~~~~~^~~~~ BUILDSTDERR: At top level: BUILDSTDERR: photosyst.c:152:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] BUILDSTDERR: static const char rcsid[] = "$Id: photosyst.c,v 1.38 2010/11/19 07:40:40 gerlof Exp $"; BUILDSTDERR: ^~~~~ BUILDSTDERR: make: *** [: photosyst.o] Error 1 BUILDSTDERR: make: *** Waiting for unfinished jobs.... BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.oEzMGD (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.oEzMGD (%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/atop.spec