Mock Version: 1.4.21 Mock Version: 1.4.21 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/mboxgrep.spec'], chrootPath='/var/lib/mock/f33-build-131972-41098/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=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/mboxgrep.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=1564012800 Wrote: /builddir/build/SRPMS/mboxgrep-0.7.9-27.fc33.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/mboxgrep.spec'], chrootPath='/var/lib/mock/f33-build-131972-41098/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=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/mboxgrep.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=1564012800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.EmgxYm + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf mboxgrep-0.7.9 + /usr/bin/gzip -dc /builddir/build/SOURCES/mboxgrep-0.7.9.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd mboxgrep-0.7.9 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (mboxgrep-debug.diff): + echo 'Patch #0 (mboxgrep-debug.diff):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .debug --fuzz=0 patching file src/Makefile.in + echo 'Patch #1 (mboxgrep-0.7.9-format-security.patch):' Patch #1 (mboxgrep-0.7.9-format-security.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .format --fuzz=0 patching file src/info.c + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.9KeLCm + umask 022 + cd /builddir/build/BUILD + cd mboxgrep-0.7.9 + 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' + export CFLAGS + CXXFLAGS='-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' + export CXXFLAGS + FFLAGS='-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 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-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 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info checking for riscv64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for a BSD-compatible install... /usr/bin/install -c checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for pcre-config... /usr/bin/pcre-config checking for gzopen in -lz... yes checking for BZ2_bzopen in -lbz2... yes checking for like_monday in -lgarfield... no checking for fcntl... yes checking for flock... yes checking for regcomp... yes checking for strptime... yes checking for ftw... yes checking for fts_open... yes configure: creating ./config.status config.status: creating Makefile config.status: creating doc/Makefile config.status: creating src/Makefile config.status: creating src/config.h + /usr/bin/make -j4 cd src; /usr/bin/make make[1]: Entering directory '/builddir/build/BUILD/mboxgrep-0.7.9/src' gcc -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 -I. -I. -c info.c gcc -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 -I. -I. -c main.c gcc -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 -I. -I. -c mh.c gcc -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 -I. -I. -c scan.c mh.c: In function 'mh_read_message': mh.c:83:22: warning: variable 'have_return_path' set but not used [-Wunused-but-set-variable] 83 | int have_from = 0, have_return_path = 0, | ^~~~~~~~~~~~~~~~ mh.c:133:7: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 133 | fgets (buffer, BUFSIZ, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ scan.c: In function 'scan_mailbox': scan.c:244:20: warning: passing argument 1 of 'gzwrite' from incompatible pointer type [-Wincompatible-pointer-types] 244 | len = gzwrite (tmpp, (msg->headers+quux), | ^~~~ | | | FILE * In file included from /usr/include/zlib.h:34, from scan.c:50: /usr/include/zlib.h:1446:29: note: expected 'gzFile' {aka 'struct gzFile_s *'} but argument is of type 'FILE *' 1446 | ZEXTERN int ZEXPORT gzwrite OF((gzFile file, | ^~ scan.c:251:16: warning: passing argument 1 of 'gzwrite' from incompatible pointer type [-Wincompatible-pointer-types] 251 | gzwrite(tmpp, "\n", 1); | ^~~~ | | | FILE * In file included from /usr/include/zlib.h:34, from scan.c:50: /usr/include/zlib.h:1446:29: note: expected 'gzFile' {aka 'struct gzFile_s *'} but argument is of type 'FILE *' 1446 | ZEXTERN int ZEXPORT gzwrite OF((gzFile file, | ^~ scan.c:256:19: warning: passing argument 1 of 'gzwrite' from incompatible pointer type [-Wincompatible-pointer-types] 256 | len = gzwrite(tmpp, (msg->body+quux), | ^~~~ | | | FILE * In file included from /usr/include/zlib.h:34, from scan.c:50: /usr/include/zlib.h:1446:29: note: expected 'gzFile' {aka 'struct gzFile_s *'} but argument is of type 'FILE *' 1446 | ZEXTERN int ZEXPORT gzwrite OF((gzFile file, | ^~ scan.c: In function 'md5_check_message': scan.c:337:41: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] 337 | if (0 == strncmp (chksum->md5[i], b, 16)) | ^ | | | unsigned char * In file included from scan.c:48: /usr/include/string.h:140:51: note: expected 'const char *' but argument is of type 'unsigned char *' 140 | extern int strncmp (const char *__s1, const char *__s2, size_t __n) | ~~~~~~~~~~~~^~~~ scan.c:343:37: warning: pointer targets in passing argument 1 of 'xstrdup' differ in signedness [-Wpointer-sign] 343 | chksum->md5[chksum->n] = xstrdup (b); | ^ | | | unsigned char * In file included from scan.c:61: wrap.h:69:28: note: expected 'const char *' but argument is of type 'unsigned char *' 69 | char *xstrdup (const char *s); | ~~~~~~~~~~~~^ gcc -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 -I. -I. -c maildir.c gcc -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 -I. -I. -c mbox.c maildir.c: In function 'maildir_read_message': maildir.c:118:56: warning: variable 'have_return_path' set but not used [-Wunused-but-set-variable] 118 | int have_from = 0, have_to = 0, have_message_id = 0, have_return_path = 0, | ^~~~~~~~~~~~~~~~ maildir.c:118:35: warning: variable 'have_message_id' set but not used [-Wunused-but-set-variable] 118 | int have_from = 0, have_to = 0, have_message_id = 0, have_return_path = 0, | ^~~~~~~~~~~~~~~ maildir.c:118:22: warning: variable 'have_to' set but not used [-Wunused-but-set-variable] 118 | int have_from = 0, have_to = 0, have_message_id = 0, have_return_path = 0, | ^~~~~~~ gcc -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 -I. -I. -c misc.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from misc.c:27: /usr/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ gcc -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 -I. -I. -c wrap.c mbox.c: In function 'mbox_open': mbox.c:168:2: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 168 | fgets (buffer, BUFSIZ, mp->fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -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 -I. -I. -c getopt.c wrap.c: In function 'm_gzdopen': wrap.c:114:8: warning: assignment to 'struct gzFile_s **' from incompatible pointer type 'gzFile' {aka 'struct gzFile_s *'} [-Wincompatible-pointer-types] 114 | blah = gzdopen (fildes, mode); | ^ gcc -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 -I. -I. -c getopt1.c gcc -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 -I. -I. -c md5.c md5.c: In function 'md5_finish_ctx': md5.c:34:27: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] 34 | # define memcpy(d, s, n) bcopy ((s), (d), (n)) | ^~~~~ md5.c:122:3: note: in expansion of macro 'memcpy' 122 | memcpy (&ctx->buffer[bytes], fillbuf, pad); | ^~~~~~ md5.c:34:27: warning: incompatible implicit declaration of built-in function 'bcopy' 34 | # define memcpy(d, s, n) bcopy ((s), (d), (n)) | ^~~~~ md5.c:122:3: note: in expansion of macro 'memcpy' 122 | memcpy (&ctx->buffer[bytes], fillbuf, pad); | ^~~~~~ md5.c: In function 'md5_process_bytes': md5.c:34:27: warning: incompatible implicit declaration of built-in function 'bcopy' 34 | # define memcpy(d, s, n) bcopy ((s), (d), (n)) | ^~~~~ md5.c:232:7: note: in expansion of macro 'memcpy' 232 | memcpy (&ctx->buffer[left_over], buffer, add); | ^~~~~~ md5.c:34:27: warning: incompatible implicit declaration of built-in function 'bcopy' 34 | # define memcpy(d, s, n) bcopy ((s), (d), (n)) | ^~~~~ md5.c:262:7: note: in expansion of macro 'memcpy' 262 | memcpy (&ctx->buffer[left_over], buffer, len); | ^~~~~~ gcc -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 -o mboxgrep info.o main.o mh.o scan.o maildir.o mbox.o misc.o wrap.o getopt.o getopt1.o md5.o -lbz2 -lz -lpcre /usr/bin/ld: main.o: in function `.LANCHOR0': /builddir/build/BUILD/mboxgrep-0.7.9/src/mboxgrep.h:132: multiple definition of `config'; info.o:/builddir/build/BUILD/mboxgrep-0.7.9/src/mboxgrep.h:132: first defined here /usr/bin/ld: mh.o: in function `.LANCHOR0': /builddir/build/BUILD/mboxgrep-0.7.9/src/mboxgrep.h:132: multiple definition of `config'; info.o:/builddir/build/BUILD/mboxgrep-0.7.9/src/mboxgrep.h:132: first defined here /usr/bin/ld: scan.o: in function `.LANCHOR0': /builddir/build/BUILD/mboxgrep-0.7.9/src/mboxgrep.h:132: multiple definition of `config'; info.o:/builddir/build/BUILD/mboxgrep-0.7.9/src/mboxgrep.h:132: first defined here /usr/bin/ld: maildir.o: in function `.LANCHOR0': /builddir/build/BUILD/mboxgrep-0.7.9/src/mboxgrep.h:132: multiple definition of `config'; info.o:/builddir/build/BUILD/mboxgrep-0.7.9/src/mboxgrep.h:132: first defined here /usr/bin/ld: mbox.o: in function `.LANCHOR0': /builddir/build/BUILD/mboxgrep-0.7.9/src/mboxgrep.h:132: multiple definition of `config'; info.o:/builddir/build/BUILD/mboxgrep-0.7.9/src/mboxgrep.h:132: first defined here /usr/bin/ld: misc.o: in function `.LANCHOR0': /builddir/build/BUILD/mboxgrep-0.7.9/src/mboxgrep.h:132: multiple definition of `config'; info.o:/builddir/build/BUILD/mboxgrep-0.7.9/src/mboxgrep.h:132: first defined here /usr/bin/ld: wrap.o: in function `.LANCHOR0': /builddir/build/BUILD/mboxgrep-0.7.9/src/mboxgrep.h:132: multiple definition of `config'; info.o:/builddir/build/BUILD/mboxgrep-0.7.9/src/mboxgrep.h:132: first defined here collect2: error: ld returned 1 exit status make[1]: Leaving directory '/builddir/build/BUILD/mboxgrep-0.7.9/src' make[1]: *** [Makefile:42: mboxgrep] Error 1 make: *** [Makefile:23: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.9KeLCm (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.9KeLCm (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, in do_with_status 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/mboxgrep.spec