Mock Version: 1.4.13 Mock Version: 1.4.13 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/usbsniff.spec'], chrootPath='/var/lib/mock/f30-build-35389-19748/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=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=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-9.20141209git079747e.fc30.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/f30-build-35389-19748/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=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=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.7hfuG0 + 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.RhzqYd + 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:185:2: warning: 'libusb_set_debug' is deprecated: Use libusb_set_option instead [-Wdeprecated-declarations] BUILDSTDERR: libusb_set_debug(ctx, 3); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from usb_capture.c:20: BUILDSTDERR: /usr/include/libusb-1.0/libusb.h:1300:18: note: declared here BUILDSTDERR: void LIBUSB_CALL libusb_set_debug(libusb_context *ctx, int level); BUILDSTDERR: ^~~~~~~~~~~~~~~~ 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:35:2: warning: 'libusb_set_debug' is deprecated: Use libusb_set_option instead [-Wdeprecated-declarations] BUILDSTDERR: libusb_set_debug(ctx, 3); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from usb_detach.c:19: BUILDSTDERR: /usr/include/libusb-1.0/libusb.h:1300:18: note: declared here BUILDSTDERR: void LIBUSB_CALL libusb_set_debug(libusb_context *ctx, int level); BUILDSTDERR: ^~~~~~~~~~~~~~~~ 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:38:2: warning: 'libusb_set_debug' is deprecated: Use libusb_set_option instead [-Wdeprecated-declarations] BUILDSTDERR: libusb_set_debug(ctx, 3); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from usb_replay.c:21: BUILDSTDERR: /usr/include/libusb-1.0/libusb.h:1300:18: note: declared here BUILDSTDERR: void LIBUSB_CALL libusb_set_debug(libusb_context *ctx, int level); BUILDSTDERR: ^~~~~~~~~~~~~~~~ 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.rwdkL6 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/usbsniff-0-9.20141209git079747e.fc30.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/usbsniff-0-9.20141209git079747e.fc30.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/usbsniff-0-9.20141209git079747e.fc30.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/usbsniff-0-9.20141209git079747e.fc30.riscv64 + cd usbsniff-079747ea3241ef3bab9b95d4088a8a4be9ce106f + mkdir -p /builddir/build/BUILDROOT/usbsniff-0-9.20141209git079747e.fc30.riscv64/usr/bin + make install DESTDIR=/builddir/build/BUILDROOT/usbsniff-0-9.20141209git079747e.fc30.riscv64 cp usb_capture usb_detach usb_replay usb_reset /builddir/build/BUILDROOT/usbsniff-0-9.20141209git079747e.fc30.riscv64/usr/bin/ + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 0-9.20141209git079747e.fc30 --unique-debug-suffix -0-9.20141209git079747e.fc30.riscv64 --unique-debug-src-base usbsniff-0-9.20141209git079747e.fc30.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/usbsniff-079747ea3241ef3bab9b95d4088a8a4be9ce106f explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/usbsniff-0-9.20141209git079747e.fc30.riscv64/usr/bin/usb_capture explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/usbsniff-0-9.20141209git079747e.fc30.riscv64/usr/bin/usb_reset explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/usbsniff-0-9.20141209git079747e.fc30.riscv64/usr/bin/usb_detach explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/usbsniff-0-9.20141209git079747e.fc30.riscv64/usr/bin/usb_replay extracting debug info from /builddir/build/BUILDROOT/usbsniff-0-9.20141209git079747e.fc30.riscv64/usr/bin/usb_capture extracting debug info from /builddir/build/BUILDROOT/usbsniff-0-9.20141209git079747e.fc30.riscv64/usr/bin/usb_reset extracting debug info from /builddir/build/BUILDROOT/usbsniff-0-9.20141209git079747e.fc30.riscv64/usr/bin/usb_replay extracting debug info from /builddir/build/BUILDROOT/usbsniff-0-9.20141209git079747e.fc30.riscv64/usr/bin/usb_detach /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 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: usbsniff-0-9.20141209git079747e.fc30.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.AUDdT9 + umask 022 + cd /builddir/build/BUILD + cd usbsniff-079747ea3241ef3bab9b95d4088a8a4be9ce106f + DOCDIR=/builddir/build/BUILDROOT/usbsniff-0-9.20141209git079747e.fc30.riscv64/usr/share/doc/usbsniff + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/usbsniff-0-9.20141209git079747e.fc30.riscv64/usr/share/doc/usbsniff + cp -pr LICENSE /builddir/build/BUILDROOT/usbsniff-0-9.20141209git079747e.fc30.riscv64/usr/share/doc/usbsniff + cp -pr README.md /builddir/build/BUILDROOT/usbsniff-0-9.20141209git079747e.fc30.riscv64/usr/share/doc/usbsniff + exit 0 Provides: usbsniff = 0-9.20141209git079747e.fc30 usbsniff(riscv-64) = 0-9.20141209git079747e.fc30 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-9.20141209git079747e.fc30.riscv64 Provides: usbsniff-debugsource = 0-9.20141209git079747e.fc30 usbsniff-debugsource(riscv-64) = 0-9.20141209git079747e.fc30 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: usbsniff-debuginfo-0-9.20141209git079747e.fc30.riscv64 Provides: debuginfo(build-id) = 2e5647cf15387cdf38c9a518b5e682d88e789ce3 debuginfo(build-id) = 4432a4b77afb65ac98d36340ad3d11658b51ed7d debuginfo(build-id) = a6c4bb55c52d7ba302a1a32f427e308c36a7b8d3 debuginfo(build-id) = f70397d09a582f43d0216a61869c34df802b9f33 usbsniff-debuginfo = 0-9.20141209git079747e.fc30 usbsniff-debuginfo(riscv-64) = 0-9.20141209git079747e.fc30 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-9.20141209git079747e.fc30 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/usbsniff-0-9.20141209git079747e.fc30.riscv64 Wrote: /builddir/build/RPMS/usbsniff-0-9.20141209git079747e.fc30.riscv64.rpm Wrote: /builddir/build/RPMS/usbsniff-debugsource-0-9.20141209git079747e.fc30.riscv64.rpm Wrote: /builddir/build/RPMS/usbsniff-debuginfo-0-9.20141209git079747e.fc30.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.SUqpfY + umask 022 + cd /builddir/build/BUILD + cd usbsniff-079747ea3241ef3bab9b95d4088a8a4be9ce106f + /usr/bin/rm -rf /builddir/build/BUILDROOT/usbsniff-0-9.20141209git079747e.fc30.riscv64 + exit 0 Child return code was: 0