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/usbsniff.spec'], chrootPath='/var/lib/mock/f29-build-10411-4703/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/usbsniff.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/usbsniff-0-8.20141209git079747e.fc29.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/usbsniff.spec'], chrootPath='/var/lib/mock/f29-build-10411-4703/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/usbsniff.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.b9v42x + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf usbsniff-079747ea3241ef3bab9b95d4088a8a4be9ce106f + /usr/bin/gzip -dc /builddir/build/SOURCES/usbsniff-079747e.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd usbsniff-079747ea3241ef3bab9b95d4088a8a4be9ce106f + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.G5g8FZ + umask 022 + cd /builddir/build/BUILD + cd usbsniff-079747ea3241ef3bab9b95d4088a8a4be9ce106f BUILDSTDERR: ++ pkg-config --libs libusb-1.0 BUILDSTDERR: ++ pkg-config --cflags libusb-1.0 + make 'LIBS=-lusb-1.0 -lpcap -ll' 'CFLAGS=-I/usr/include/libusb-1.0 -DLINUX -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 -I/usr/include/libusb-1.0 -DLINUX -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 common.o common.c cc -I/usr/include/libusb-1.0 -DLINUX -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 common.o usb_capture.c -lusb-1.0 -lpcap -ll -o usb_capture BUILDSTDERR: usb_capture.c: In function 'process_packet': BUILDSTDERR: usb_capture.c:137:10: warning: unused variable 'print_packet' [-Wunused-variable] BUILDSTDERR: void (*print_packet)(FILE *out, pcap_usb_header *usb_header, const unsigned char *raw_data); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: usb_capture.c: In function 'main': BUILDSTDERR: usb_capture.c:181:24: warning: unused variable 'dev_handle' [-Wunused-variable] BUILDSTDERR: libusb_device_handle *dev_handle; BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: usb_capture.c:194:3: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: system("modprobe usbmon"); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: usb_capture.c: In function 'process_packet': BUILDSTDERR: usb_capture.c:81:17: warning: 'last_request_type' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if(last_urb_id && last_request_type == 128) { BUILDSTDERR: ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -I/usr/include/libusb-1.0 -DLINUX -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 common.o usb_detach.c -lusb-1.0 -lpcap -ll -o usb_detach BUILDSTDERR: usb_detach.c: In function 'usb_init': BUILDSTDERR: usb_detach.c:31:10: warning: unused variable 'cnt' [-Wunused-variable] BUILDSTDERR: ssize_t cnt; BUILDSTDERR: ^~~ BUILDSTDERR: usb_detach.c:28:18: warning: unused variable 'devs' [-Wunused-variable] BUILDSTDERR: libusb_device **devs; BUILDSTDERR: ^~~~ bison -y -d usb_replay.y cc -I/usr/include/libusb-1.0 -DLINUX -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 y.tab.o y.tab.c BUILDSTDERR: usb_replay.y: In function 'yyparse': BUILDSTDERR: usb_replay.y:18:7: warning: implicit declaration of function 'perform_transfer' [-Wimplicit-function-declaration] BUILDSTDERR: document packet '\n' { perform_transfer(yylval); } BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: usb_replay.y:35:31: warning: implicit declaration of function 'hex_to_int' [-Wimplicit-function-declaration] BUILDSTDERR: bmRequestType: HEX { yylval->bmRequestType = hex_to_int(yytext); } BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: usb_replay.y:39:7: warning: implicit declaration of function 'hex_to_buf'; did you mean 'setvbuf'? [-Wimplicit-function-declaration] BUILDSTDERR: data: HEX { hex_to_buf(yytext, yylval->data); yylval->data_size = strlen(yytext) / 2; } BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: setvbuf BUILDSTDERR: usb_replay.y: In function 'main': BUILDSTDERR: usb_replay.y:62:9: warning: implicit declaration of function 'print_help_and_exit' [-Wimplicit-function-declaration] BUILDSTDERR: print_help_and_exit(argv); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: usb_replay.y:76:5: warning: implicit declaration of function 'usb_init' [-Wimplicit-function-declaration] BUILDSTDERR: usb_init(vid, pid); BUILDSTDERR: ^~~~~~~~ flex usb_replay.l cc -I/usr/include/libusb-1.0 -DLINUX -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 lex.yy.o lex.yy.c BUILDSTDERR: lex.yy.c:1183:16: warning: 'input' defined but not used [-Wunused-function] BUILDSTDERR: static int input (void) BUILDSTDERR: ^~~~~ BUILDSTDERR: lex.yy.c:1140:17: warning: 'yyunput' defined but not used [-Wunused-function] BUILDSTDERR: static void yyunput (int c, char * yy_bp ) BUILDSTDERR: ^~~~~~~ cc -I/usr/include/libusb-1.0 -DLINUX -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 common.o y.tab.o lex.yy.o usb_replay.c -lusb-1.0 -lpcap -ll -o usb_replay BUILDSTDERR: usb_replay.c: In function 'usb_init': BUILDSTDERR: usb_replay.c:34:10: warning: unused variable 'cnt' [-Wunused-variable] BUILDSTDERR: ssize_t cnt; BUILDSTDERR: ^~~ BUILDSTDERR: usb_replay.c:31:18: warning: unused variable 'devs' [-Wunused-variable] BUILDSTDERR: libusb_device **devs; BUILDSTDERR: ^~~~ BUILDSTDERR: usb_replay.c: In function 'perform_transfer': BUILDSTDERR: usb_replay.c:64:3: warning: implicit declaration of function 'usleep'; did you mean 'fseek'? [-Wimplicit-function-declaration] BUILDSTDERR: usleep(time); BUILDSTDERR: ^~~~~~ BUILDSTDERR: fseek BUILDSTDERR: In file included from usb_replay.c:24: BUILDSTDERR: error.h:21:30: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: #define ASSERT2(expr, ...) if(!((expr))) ERROR2(__VA_ARGS__) BUILDSTDERR: ^ BUILDSTDERR: usb_replay.c:68:6: note: 'r' was declared here BUILDSTDERR: int r, bytes_transferred = 0; BUILDSTDERR: ^ cc -I/usr/include/libusb-1.0 -DLINUX -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 usb_reset.c -o usb_reset + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.nfaQSZ + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/usbsniff-0-8.20141209git079747e.fc29.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/usbsniff-0-8.20141209git079747e.fc29.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/usbsniff-0-8.20141209git079747e.fc29.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/usbsniff-0-8.20141209git079747e.fc29.riscv64 + cd usbsniff-079747ea3241ef3bab9b95d4088a8a4be9ce106f + mkdir -p /builddir/build/BUILDROOT/usbsniff-0-8.20141209git079747e.fc29.riscv64/usr/bin + make install DESTDIR=/builddir/build/BUILDROOT/usbsniff-0-8.20141209git079747e.fc29.riscv64 cp usb_capture usb_detach usb_replay usb_reset /builddir/build/BUILDROOT/usbsniff-0-8.20141209git079747e.fc29.riscv64/usr/bin/ + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 0-8.20141209git079747e.fc29 --unique-debug-suffix -0-8.20141209git079747e.fc29.riscv64 --unique-debug-src-base usbsniff-0-8.20141209git079747e.fc29.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/usbsniff-079747ea3241ef3bab9b95d4088a8a4be9ce106f extracting debug info from /builddir/build/BUILDROOT/usbsniff-0-8.20141209git079747e.fc29.riscv64/usr/bin/usb_reset extracting debug info from /builddir/build/BUILDROOT/usbsniff-0-8.20141209git079747e.fc29.riscv64/usr/bin/usb_capture extracting debug info from /builddir/build/BUILDROOT/usbsniff-0-8.20141209git079747e.fc29.riscv64/usr/bin/usb_detach extracting debug info from /builddir/build/BUILDROOT/usbsniff-0-8.20141209git079747e.fc29.riscv64/usr/bin/usb_replay /usr/lib/rpm/sepdebugcrcfix: Updated 4 CRC32s, 0 CRC32s did match. BUILDSTDERR: 225 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig BUILDSTDERR: /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: usbsniff-0-8.20141209git079747e.fc29.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.XE04hH + umask 022 + cd /builddir/build/BUILD + cd usbsniff-079747ea3241ef3bab9b95d4088a8a4be9ce106f + DOCDIR=/builddir/build/BUILDROOT/usbsniff-0-8.20141209git079747e.fc29.riscv64/usr/share/doc/usbsniff + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/usbsniff-0-8.20141209git079747e.fc29.riscv64/usr/share/doc/usbsniff + cp -pr LICENSE /builddir/build/BUILDROOT/usbsniff-0-8.20141209git079747e.fc29.riscv64/usr/share/doc/usbsniff + cp -pr README.md /builddir/build/BUILDROOT/usbsniff-0-8.20141209git079747e.fc29.riscv64/usr/share/doc/usbsniff + exit 0 Provides: usbsniff = 0-8.20141209git079747e.fc29 usbsniff(riscv-64) = 0-8.20141209git079747e.fc29 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libpcap.so.1()(64bit) libusb-1.0.so.0()(64bit) rtld(GNU_HASH) Processing files: usbsniff-debugsource-0-8.20141209git079747e.fc29.riscv64 Provides: usbsniff-debugsource = 0-8.20141209git079747e.fc29 usbsniff-debugsource(riscv-64) = 0-8.20141209git079747e.fc29 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: usbsniff-debuginfo-0-8.20141209git079747e.fc29.riscv64 Provides: debuginfo(build-id) = 23c2ea365a200bffcef79dc3a85270a1259ee88d debuginfo(build-id) = 6ecb47e3bcb7ad10c0b157e1e3153b9dccc0d0fb debuginfo(build-id) = 90af75e99418630579f6de4b4e6ec0addc8467be debuginfo(build-id) = cfc4e578496eb3e9fdf6e666511763f4a681ae37 usbsniff-debuginfo = 0-8.20141209git079747e.fc29 usbsniff-debuginfo(riscv-64) = 0-8.20141209git079747e.fc29 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: usbsniff-debugsource(riscv-64) = 0-8.20141209git079747e.fc29 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/usbsniff-0-8.20141209git079747e.fc29.riscv64 Wrote: /builddir/build/RPMS/usbsniff-0-8.20141209git079747e.fc29.riscv64.rpm Wrote: /builddir/build/RPMS/usbsniff-debugsource-0-8.20141209git079747e.fc29.riscv64.rpm Wrote: /builddir/build/RPMS/usbsniff-debuginfo-0-8.20141209git079747e.fc29.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.gisRfN + umask 022 + cd /builddir/build/BUILD + cd usbsniff-079747ea3241ef3bab9b95d4088a8a4be9ce106f + /usr/bin/rm -rf /builddir/build/BUILDROOT/usbsniff-0-8.20141209git079747e.fc29.riscv64 + exit 0 Child return code was: 0