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/ElectricFence.spec'], chrootPath='/var/lib/mock/f29-build-13007-5922/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', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'}shell=Falselogger=timeout=345600uid=995gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/ElectricFence.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', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} and shell False Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/ElectricFence-2.2.2-47.fc29.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ElectricFence.spec'], chrootPath='/var/lib/mock/f29-build-13007-5922/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', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'}shell=Falselogger=timeout=345600uid=995gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ElectricFence.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', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} and shell False Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.S4sCSU + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ElectricFence-2.2.2 + /usr/bin/tar -xof - + /usr/bin/gzip -dc /builddir/build/SOURCES/ElectricFence-2.2.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ElectricFence-2.2.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (ElectricFence-2.0.5-longjmp.patch):' Patch #1 (ElectricFence-2.0.5-longjmp.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .longjmp --fuzz=0 patching file eftest.c + echo 'Patch #2 (ElectricFence-2.1-vaarg.patch):' Patch #2 (ElectricFence-2.1-vaarg.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .vaarg --fuzz=0 patching file print.c Hunk #1 succeeded at 111 (offset 12 lines). Patch #3 (ElectricFence-2.2.2-pthread.patch): + echo 'Patch #3 (ElectricFence-2.2.2-pthread.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .pthread --fuzz=0 patching file efence.c patching file Makefile + echo 'Patch #4 (ElectricFence-2.2.2-madvise.patch):' Patch #4 (ElectricFence-2.2.2-madvise.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .madvise --fuzz=0 patching file page.c patching file efence.c Hunk #1 succeeded at 650 (offset 24 lines). Hunk #2 succeeded at 664 (offset 24 lines). Hunk #3 succeeded at 795 (offset 24 lines). Patch #5 (ElectricFence-mmap-size.patch): + echo 'Patch #5 (ElectricFence-mmap-size.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file page.c Patch #6 (ElectricFence-2.2.2-banner.patch): patching file efence.c + echo 'Patch #6 (ElectricFence-2.2.2-banner.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 Patch #7 (ElectricFence-2.2.2-ef.patch): + echo 'Patch #7 (ElectricFence-2.2.2-ef.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file ef.sh + echo 'Patch #8 (ElectricFence-2.2.2-builtins.patch):' Patch #8 (ElectricFence-2.2.2-builtins.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile + echo 'Patch #9 (ElectricFence-2.2.2-sse.patch):' Patch #9 (ElectricFence-2.2.2-sse.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file efence.c + echo 'Patch #10 (ElectricFence-2.2.2-posix_memalign.patch):' Patch #10 (ElectricFence-2.2.2-posix_memalign.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file efence.c + echo 'Patch #11 (ElectricFence-2.2.2-malloc_usable_size.patch):' Patch #11 (ElectricFence-2.2.2-malloc_usable_size.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file efence.c + echo 'Patch #12 (ElectricFence-2.2.2-man-ef.patch):' Patch #12 (ElectricFence-2.2.2-man-ef.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file ef.1 patching file Makefile + echo 'Patch #13 (ElectricFence-2.2.2-sys_errlist.patch):' Patch #13 (ElectricFence-2.2.2-sys_errlist.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file page.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.R6gUH1 + umask 022 + cd /builddir/build/BUILD + cd ElectricFence-2.2.2 + make 'CFLAGS=${RPM_OPT_FLAGS} -DUSE_SEMAPHORE -fpic' 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 -DUSE_SEMAPHORE -fpic -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-valloc -fno-builtin-realloc -fno-builtin-free -c efence.c -o efence.o 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 -DUSE_SEMAPHORE -fpic -c page.c -o page.o 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 -DUSE_SEMAPHORE -fpic -c print.c -o print.o BUILDSTDERR: print.c: In function 'EF_Printv': BUILDSTDERR: print.c:73:12: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: (void) write(2, &c, 1); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: print.c:94:13: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: (void) write(2, string, length); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: print.c:103:7: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(2, &c, 1); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: print.c:116:13: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: (void) write(2, &c, 1); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: print.c:127:11: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: (void) write(2, &c, 1); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: print.c: In function 'printNumber': BUILDSTDERR: print.c:57:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(2, s, size); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ rm -f libefence.a ar crv libefence.a efence.o page.o print.o a - efence.o a - page.o a - print.o gcc -shared -Wl,-soname,libefence.so.0 -o libefence.so.0.0 \ -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 -DUSE_SEMAPHORE -fpic efence.o page.o print.o BUILDSTDERR: page.o: In function `mprotectFailed': BUILDSTDERR: /builddir/build/BUILD/ElectricFence-2.2.2/page.c:47: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead BUILDSTDERR: /builddir/build/BUILD/ElectricFence-2.2.2/page.c:46: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead 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 -DUSE_SEMAPHORE -fpic -c tstheap.c -o tstheap.o rm -f tstheap 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 -DUSE_SEMAPHORE -fpic tstheap.o libefence.a -o tstheap BUILDSTDERR: libefence.a(page.o): In function `mprotectFailed': BUILDSTDERR: /builddir/build/BUILD/ElectricFence-2.2.2/page.c:47: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead BUILDSTDERR: /builddir/build/BUILD/ElectricFence-2.2.2/page.c:46: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead 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 -DUSE_SEMAPHORE -fpic -c eftest.c -o eftest.o BUILDSTDERR: eftest.c: In function 'main': BUILDSTDERR: eftest.c:211:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(2, failedTest, sizeof(failedTest) - 1); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: eftest.c:212:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(2, diag->explanation, strlen(diag->explanation)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: eftest.c:213:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(2, &newline, 1); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ rm -f eftest 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 -DUSE_SEMAPHORE -fpic eftest.o libefence.a -o eftest BUILDSTDERR: libefence.a(page.o): In function `mprotectFailed': BUILDSTDERR: /builddir/build/BUILD/ElectricFence-2.2.2/page.c:47: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead BUILDSTDERR: /builddir/build/BUILD/ElectricFence-2.2.2/page.c:46: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead Testing Electric Fence. After the last test, it should print that the test has PASSED. ./eftest BUILDSTDERR: Electric Fence 2.2.2 Copyright (C) 1987-1999 Bruce Perens BUILDSTDERR: make: *** [Makefile:26: all] Segmentation fault RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.R6gUH1 (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.R6gUH1 (%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/ElectricFence.spec