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/android-tools.spec'], chrootPath='/var/lib/mock/f29-build-27337-14422/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=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/android-tools.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/android-tools-20170311gite7195be7725a-7.fc29.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/android-tools.spec'], chrootPath='/var/lib/mock/f29-build-27337-14422/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=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/android-tools.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.e70fdp + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf extras + /usr/bin/xz -dc /builddir/build/SOURCES/extras-61f6603.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/xz -dc /builddir/build/SOURCES/core-e7195be7725a.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd extras + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd /builddir/build/BUILD + rm -rf boringssl + /usr/bin/xz -dc /builddir/build/SOURCES/boringssl-7d422bc.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/xz -dc /builddir/build/SOURCES/core-e7195be7725a.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd boringssl + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd /builddir/build/BUILD + rm -rf mdnsresponder + /usr/bin/xz -dc /builddir/build/SOURCES/mdnsresponder-ca0cba5.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/xz -dc /builddir/build/SOURCES/core-e7195be7725a.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd mdnsresponder + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd /builddir/build/BUILD + rm -rf core-e7195be7725a + /usr/bin/xz -dc /builddir/build/SOURCES/core-e7195be7725a.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/xz -dc /builddir/build/SOURCES/core-e7195be7725a.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd core-e7195be7725a + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #1 (0001-Add-string-h.patch): + echo 'Patch #1 (0001-Add-string-h.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file base/errors_unix.cpp patching file base/file.cpp patching file base/logging.cpp Patch #2 (0002-libusb-modifications.patch): + echo 'Patch #2 (0002-libusb-modifications.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file adb/client/usb_libusb.cpp Patch #3 (0003-atomic-fix.patch): + echo 'Patch #3 (0003-atomic-fix.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file libcutils/include/cutils/trace.h Patch #4 (0004-bz1441234.patch): + echo 'Patch #4 (0004-bz1441234.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file libcrypto_utils/android_pubkey.c Patch #5 (0001-adb-don-t-reset-usb-when-connecting-it.patch): + echo 'Patch #5 (0001-adb-don-t-reset-usb-when-connecting-it.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file adb/client/usb_libusb.cpp Hunk #1 succeeded at 307 (offset 1 line). Patch #6 (0001-adb-fix-two-device-offline-problems.patch): + echo 'Patch #6 (0001-adb-fix-two-device-offline-problems.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file adb/adb.cpp Hunk #1 succeeded at 251 (offset -2 lines). Hunk #2 succeeded at 310 (offset -2 lines). Hunk #3 succeeded at 366 (offset -2 lines). Hunk #4 succeeded at 383 (offset -2 lines). Hunk #5 succeeded at 404 (offset -2 lines). Hunk #6 succeeded at 1047 (offset -2 lines). Hunk #7 succeeded at 1065 (offset -2 lines). Hunk #8 succeeded at 1109 (offset -2 lines). Hunk #9 succeeded at 1136 (offset -2 lines). Hunk #10 succeeded at 1145 (offset -2 lines). Hunk #11 succeeded at 1214 (offset -2 lines). patching file adb/adb.h patching file adb/adb_client.cpp patching file adb/adb_trace.cpp patching file adb/adb_trace.h patching file adb/client/usb_libusb.cpp Hunk #1 succeeded at 63 (offset 1 line). Hunk #2 succeeded at 75 (offset 1 line). Hunk #3 succeeded at 97 (offset 1 line). Hunk #4 succeeded at 365 (offset 1 line). Hunk #5 succeeded at 392 (offset 1 line). Hunk #6 succeeded at 487 (offset 1 line). patching file adb/client/usb_linux.cpp patching file adb/client/usb_osx.cpp Hunk #1 succeeded at 520 (offset 2 lines). patching file adb/client/usb_windows.cpp Hunk #1 succeeded at 419 (offset 4 lines). Hunk #2 succeeded at 428 (offset 4 lines). Hunk #3 succeeded at 437 (offset 4 lines). patching file adb/commandline.cpp Hunk #1 succeeded at 220 (offset 8 lines). Hunk #2 succeeded at 1949 (offset 1 line). patching file adb/fdevent.cpp patching file adb/fdevent.h patching file adb/services.cpp Hunk #1 succeeded at 351 (offset 4 lines). patching file adb/sockets.cpp patching file adb/test_device.py patching file adb/transport.cpp Hunk #1 succeeded at 32 (offset -1 lines). Hunk #2 succeeded at 41 (offset -1 lines). Hunk #3 succeeded at 210 (offset -1 lines). Hunk #4 succeeded at 277 (offset -1 lines). Hunk #5 succeeded at 503 (offset -1 lines). Hunk #6 succeeded at 553 (offset 4 lines). Hunk #7 succeeded at 624 (offset 4 lines). Hunk #8 succeeded at 639 (offset 4 lines). Hunk #9 succeeded at 688 (offset 4 lines). Hunk #10 succeeded at 700 (offset 4 lines). Hunk #11 succeeded at 712 (offset 4 lines). Hunk #12 succeeded at 1009 (offset 4 lines). Hunk #13 succeeded at 1033 (offset 4 lines). Hunk #14 succeeded at 1067 (offset 4 lines). patching file adb/transport.h patching file adb/transport_local.cpp Hunk #1 succeeded at 519 (offset 4 lines). patching file adb/transport_test.cpp patching file adb/transport_usb.cpp + cp -p /builddir/build/SOURCES/51-android.rules 51-android.rules + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.AnKDKD + umask 022 + cd /builddir/build/BUILD + cd core-e7195be7725a + ruby /builddir/build/SOURCES/generate_build.rb + tee build.sh g++ -o adb/client/usb_dispatch.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -DADB_HOST=1 -fpermissive -I../boringssl/include -Iadb -Iinclude -Ibase/include -Ilibcrypto_utils/include -c adb/client/usb_dispatch.cpp g++ -o adb/client/usb_libusb.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -DADB_HOST=1 -fpermissive -I../boringssl/include -Iadb -Iinclude -Ibase/include -Ilibcrypto_utils/include -c adb/client/usb_libusb.cpp g++ -o adb/client/usb_linux.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -DADB_HOST=1 -fpermissive -I../boringssl/include -Iadb -Iinclude -Ibase/include -Ilibcrypto_utils/include -c adb/client/usb_linux.cpp g++ -o adb/adb.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -DADB_HOST=1 -fpermissive -I../boringssl/include -Iadb -Iinclude -Ibase/include -Ilibcrypto_utils/include -c adb/adb.cpp g++ -o adb/adb_io.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -DADB_HOST=1 -fpermissive -I../boringssl/include -Iadb -Iinclude -Ibase/include -Ilibcrypto_utils/include -c adb/adb_io.cpp g++ -o adb/socket_spec.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -DADB_HOST=1 -fpermissive -I../boringssl/include -Iadb -Iinclude -Ibase/include -Ilibcrypto_utils/include -c adb/socket_spec.cpp g++ -o adb/adb_listeners.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -DADB_HOST=1 -fpermissive -I../boringssl/include -Iadb -Iinclude -Ibase/include -Ilibcrypto_utils/include -c adb/adb_listeners.cpp g++ -o adb/adb_utils.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -DADB_HOST=1 -fpermissive -I../boringssl/include -Iadb -Iinclude -Ibase/include -Ilibcrypto_utils/include -c adb/adb_utils.cpp g++ -o adb/sockets.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -DADB_HOST=1 -fpermissive -I../boringssl/include -Iadb -Iinclude -Ibase/include -Ilibcrypto_utils/include -c adb/sockets.cpp g++ -o adb/transport.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -DADB_HOST=1 -fpermissive -I../boringssl/include -Iadb -Iinclude -Ibase/include -Ilibcrypto_utils/include -c adb/transport.cpp g++ -o adb/transport_local.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -DADB_HOST=1 -fpermissive -I../boringssl/include -Iadb -Iinclude -Ibase/include -Ilibcrypto_utils/include -c adb/transport_local.cpp g++ -o adb/transport_usb.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -DADB_HOST=1 -fpermissive -I../boringssl/include -Iadb -Iinclude -Ibase/include -Ilibcrypto_utils/include -c adb/transport_usb.cpp g++ -o adb/services.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -DADB_HOST=1 -fpermissive -I../boringssl/include -Iadb -Iinclude -Ibase/include -Ilibcrypto_utils/include -c adb/services.cpp g++ -o adb/adb_trace.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -DADB_HOST=1 -fpermissive -I../boringssl/include -Iadb -Iinclude -Ibase/include -Ilibcrypto_utils/include -c adb/adb_trace.cpp g++ -o adb/diagnose_usb.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -DADB_HOST=1 -fpermissive -I../boringssl/include -Iadb -Iinclude -Ibase/include -Ilibcrypto_utils/include -c adb/diagnose_usb.cpp g++ -o adb/adb_auth_host.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -DADB_HOST=1 -fpermissive -I../boringssl/include -Iadb -Iinclude -Ibase/include -Ilibcrypto_utils/include -c adb/adb_auth_host.cpp g++ -o adb/sysdeps_unix.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -DADB_HOST=1 -fpermissive -I../boringssl/include -Iadb -Iinclude -Ibase/include -Ilibcrypto_utils/include -c adb/sysdeps_unix.cpp g++ -o adb/fdevent.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -DADB_HOST=0 -D_Nonnull= -D_Nullable= -fpermissive -Iadb -Iinclude -Ibase/include -c adb/fdevent.cpp g++ -o adb/shell_service.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -DADB_HOST=0 -D_Nonnull= -D_Nullable= -fpermissive -Iadb -Iinclude -Ibase/include -c adb/shell_service.cpp g++ -o adb/shell_service_protocol.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -DADB_HOST=0 -D_Nonnull= -D_Nullable= -fpermissive -Iadb -Iinclude -Ibase/include -c adb/shell_service_protocol.cpp g++ -o adb/console.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -D_GNU_SOURCE -DADB_HOST=1 -D_Nonnull= -D_Nullable= -fpermissive -Iadb -I../mdnsresponder/mDNSShared -Iinclude -Ibase/include -c adb/console.cpp g++ -o adb/bugreport.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -D_GNU_SOURCE -DADB_HOST=1 -D_Nonnull= -D_Nullable= -fpermissive -Iadb -I../mdnsresponder/mDNSShared -Iinclude -Ibase/include -c adb/bugreport.cpp g++ -o adb/commandline.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -D_GNU_SOURCE -DADB_HOST=1 -D_Nonnull= -D_Nullable= -fpermissive -Iadb -I../mdnsresponder/mDNSShared -Iinclude -Ibase/include -c adb/commandline.cpp g++ -o adb/adb_client.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -D_GNU_SOURCE -DADB_HOST=1 -D_Nonnull= -D_Nullable= -fpermissive -Iadb -I../mdnsresponder/mDNSShared -Iinclude -Ibase/include -c adb/adb_client.cpp g++ -o adb/sysdeps/errno.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -D_GNU_SOURCE -DADB_HOST=1 -D_Nonnull= -D_Nullable= -fpermissive -Iadb -I../mdnsresponder/mDNSShared -Iinclude -Ibase/include -c adb/sysdeps/errno.cpp g++ -o adb/file_sync_client.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -D_GNU_SOURCE -DADB_HOST=1 -D_Nonnull= -D_Nullable= -fpermissive -Iadb -I../mdnsresponder/mDNSShared -Iinclude -Ibase/include -c adb/file_sync_client.cpp g++ -o adb/line_printer.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -D_GNU_SOURCE -DADB_HOST=1 -D_Nonnull= -D_Nullable= -fpermissive -Iadb -I../mdnsresponder/mDNSShared -Iinclude -Ibase/include -c adb/line_printer.cpp g++ -o adb/transport_mdns.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -D_GNU_SOURCE -DADB_HOST=1 -D_Nonnull= -D_Nullable= -fpermissive -Iadb -I../mdnsresponder/mDNSShared -Iinclude -Ibase/include -c adb/transport_mdns.cpp g++ -o adb/client/main.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_REVISION=\"$PKGVER\" -D_GNU_SOURCE -DADB_HOST=1 -D_Nonnull= -D_Nullable= -fpermissive -Iadb -I../mdnsresponder/mDNSShared -Iinclude -Ibase/include -c adb/client/main.cpp g++ -o base/file.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_HOST=1 -D_GNU_SOURCE -Ibase/include -Iinclude -c base/file.cpp g++ -o base/logging.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_HOST=1 -D_GNU_SOURCE -Ibase/include -Iinclude -c base/logging.cpp g++ -o base/parsenetaddress.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_HOST=1 -D_GNU_SOURCE -Ibase/include -Iinclude -c base/parsenetaddress.cpp g++ -o base/stringprintf.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_HOST=1 -D_GNU_SOURCE -Ibase/include -Iinclude -c base/stringprintf.cpp g++ -o base/strings.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_HOST=1 -D_GNU_SOURCE -Ibase/include -Iinclude -c base/strings.cpp g++ -o base/errors_unix.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DADB_HOST=1 -D_GNU_SOURCE -Ibase/include -Iinclude -c base/errors_unix.cpp gcc -o liblog/logger_write.c.o -std=gnu11 $CFLAGS $CPPFLAGS -DLIBLOG_LOG_TAG=1005 -DFAKE_LOG_DEVICE=1 -D_GNU_SOURCE -Ilog/include -Iinclude -c liblog/logger_write.c gcc -o liblog/local_logger.c.o -std=gnu11 $CFLAGS $CPPFLAGS -DLIBLOG_LOG_TAG=1005 -DFAKE_LOG_DEVICE=1 -D_GNU_SOURCE -Ilog/include -Iinclude -c liblog/local_logger.c gcc -o liblog/config_read.c.o -std=gnu11 $CFLAGS $CPPFLAGS -DLIBLOG_LOG_TAG=1005 -DFAKE_LOG_DEVICE=1 -D_GNU_SOURCE -Ilog/include -Iinclude -c liblog/config_read.c gcc -o liblog/logprint.c.o -std=gnu11 $CFLAGS $CPPFLAGS -DLIBLOG_LOG_TAG=1005 -DFAKE_LOG_DEVICE=1 -D_GNU_SOURCE -Ilog/include -Iinclude -c liblog/logprint.c gcc -o liblog/stderr_write.c.o -std=gnu11 $CFLAGS $CPPFLAGS -DLIBLOG_LOG_TAG=1005 -DFAKE_LOG_DEVICE=1 -D_GNU_SOURCE -Ilog/include -Iinclude -c liblog/stderr_write.c gcc -o liblog/config_write.c.o -std=gnu11 $CFLAGS $CPPFLAGS -DLIBLOG_LOG_TAG=1005 -DFAKE_LOG_DEVICE=1 -D_GNU_SOURCE -Ilog/include -Iinclude -c liblog/config_write.c gcc -o liblog/logger_lock.c.o -std=gnu11 $CFLAGS $CPPFLAGS -DLIBLOG_LOG_TAG=1005 -DFAKE_LOG_DEVICE=1 -D_GNU_SOURCE -Ilog/include -Iinclude -c liblog/logger_lock.c gcc -o liblog/logger_name.c.o -std=gnu11 $CFLAGS $CPPFLAGS -DLIBLOG_LOG_TAG=1005 -DFAKE_LOG_DEVICE=1 -D_GNU_SOURCE -Ilog/include -Iinclude -c liblog/logger_name.c gcc -o liblog/log_event_list.c.o -std=gnu11 $CFLAGS $CPPFLAGS -DLIBLOG_LOG_TAG=1005 -DFAKE_LOG_DEVICE=1 -D_GNU_SOURCE -Ilog/include -Iinclude -c liblog/log_event_list.c gcc -o liblog/log_event_write.c.o -std=gnu11 $CFLAGS $CPPFLAGS -DLIBLOG_LOG_TAG=1005 -DFAKE_LOG_DEVICE=1 -D_GNU_SOURCE -Ilog/include -Iinclude -c liblog/log_event_write.c gcc -o liblog/fake_log_device.c.o -std=gnu11 $CFLAGS $CPPFLAGS -DLIBLOG_LOG_TAG=1005 -DFAKE_LOG_DEVICE=1 -D_GNU_SOURCE -Ilog/include -Iinclude -c liblog/fake_log_device.c gcc -o liblog/fake_writer.c.o -std=gnu11 $CFLAGS $CPPFLAGS -DLIBLOG_LOG_TAG=1005 -DFAKE_LOG_DEVICE=1 -D_GNU_SOURCE -Ilog/include -Iinclude -c liblog/fake_writer.c gcc -o libcutils/load_file.c.o -std=gnu11 $CFLAGS $CPPFLAGS -D_GNU_SOURCE -Iinclude -c libcutils/load_file.c gcc -o libcutils/socket_inaddr_any_server_unix.c.o -std=gnu11 $CFLAGS $CPPFLAGS -D_GNU_SOURCE -Iinclude -c libcutils/socket_inaddr_any_server_unix.c gcc -o libcutils/socket_local_client_unix.c.o -std=gnu11 $CFLAGS $CPPFLAGS -D_GNU_SOURCE -Iinclude -c libcutils/socket_local_client_unix.c gcc -o libcutils/socket_local_server_unix.c.o -std=gnu11 $CFLAGS $CPPFLAGS -D_GNU_SOURCE -Iinclude -c libcutils/socket_local_server_unix.c gcc -o libcutils/socket_loopback_server_unix.c.o -std=gnu11 $CFLAGS $CPPFLAGS -D_GNU_SOURCE -Iinclude -c libcutils/socket_loopback_server_unix.c gcc -o libcutils/socket_network_client_unix.c.o -std=gnu11 $CFLAGS $CPPFLAGS -D_GNU_SOURCE -Iinclude -c libcutils/socket_network_client_unix.c gcc -o libcutils/threads.c.o -std=gnu11 $CFLAGS $CPPFLAGS -D_GNU_SOURCE -Iinclude -c libcutils/threads.c g++ -o libcutils/sockets.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -D_GNU_SOURCE -Iinclude -c libcutils/sockets.cpp g++ -o libcutils/android_get_control_file.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -D_GNU_SOURCE -Iinclude -c libcutils/android_get_control_file.cpp g++ -o libcutils/sockets_unix.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -D_GNU_SOURCE -Iinclude -c libcutils/sockets_unix.cpp gcc -o libcrypto_utils/android_pubkey.c.o -std=gnu11 $CFLAGS $CPPFLAGS -Ilibcrypto_utils/include -I../boringssl/include -Iinclude -c libcrypto_utils/android_pubkey.c gcc -o ../boringssl/src/crypto/bn/cmp.c.o -std=gnu11 $CFLAGS $CPPFLAGS -I../boringssl/include -Iinclude -c ../boringssl/src/crypto/bn/cmp.c gcc -o ../boringssl/src/crypto/bn/bn.c.o -std=gnu11 $CFLAGS $CPPFLAGS -I../boringssl/include -Iinclude -c ../boringssl/src/crypto/bn/bn.c gcc -o ../boringssl/src/crypto/bytestring/cbb.c.o -std=gnu11 $CFLAGS $CPPFLAGS -I../boringssl/include -Iinclude -c ../boringssl/src/crypto/bytestring/cbb.c gcc -o ../boringssl/src/crypto/mem.c.o -std=gnu11 $CFLAGS $CPPFLAGS -I../boringssl/include -Iinclude -c ../boringssl/src/crypto/mem.c gcc -o ../boringssl/src/crypto/buf/buf.c.o -std=gnu11 $CFLAGS $CPPFLAGS -I../boringssl/include -Iinclude -c ../boringssl/src/crypto/buf/buf.c gcc -o ../boringssl/src/crypto/bio/file.c.o -std=gnu11 $CFLAGS $CPPFLAGS -I../boringssl/include -Iinclude -c ../boringssl/src/crypto/bio/file.c gcc -o ../boringssl/src/crypto/bn/convert.c.o -std=gnu11 $CFLAGS $CPPFLAGS -I../boringssl/include -Iinclude -c ../boringssl/src/crypto/bn/convert.c gcc -o ../boringssl/src/crypto/base64/base64.c.o -std=gnu11 $CFLAGS $CPPFLAGS -I../boringssl/include -Iinclude -c ../boringssl/src/crypto/base64/base64.c gcc -o ../mdnsresponder/mDNSShared/dnssd_ipc.c.o -std=gnu11 $CFLAGS $CPPFLAGS -D_GNU_SOURCE -DHAVE_IPV6 -DHAVE_LINUX -DNOT_HAVE_SA_LEN -DUSES_NETLINK -UMDNS_DEBUGMSGS -DMDNS_DEBUGMSGS=0 -I../mdnsresponder/mDNSShared -I../mdnsresponder/mDNSCore -Iinclude -c ../mdnsresponder/mDNSShared/dnssd_ipc.c gcc -o ../mdnsresponder/mDNSShared/dnssd_clientstub.c.o -std=gnu11 $CFLAGS $CPPFLAGS -D_GNU_SOURCE -DHAVE_IPV6 -DHAVE_LINUX -DNOT_HAVE_SA_LEN -DUSES_NETLINK -UMDNS_DEBUGMSGS -DMDNS_DEBUGMSGS=0 -I../mdnsresponder/mDNSShared -I../mdnsresponder/mDNSCore -Iinclude -c ../mdnsresponder/mDNSShared/dnssd_clientstub.c g++ -o adb/adb -lrt -ldl -lpthread -lcrypto -lutil -lusb-1.0 $LDFLAGS base/file.cpp.o base/logging.cpp.o base/parsenetaddress.cpp.o base/stringprintf.cpp.o base/strings.cpp.o base/errors_unix.cpp.o liblog/logger_write.c.o liblog/local_logger.c.o liblog/config_read.c.o liblog/logprint.c.o liblog/stderr_write.c.o liblog/config_write.c.o liblog/logger_lock.c.o liblog/logger_name.c.o liblog/log_event_list.c.o liblog/log_event_write.c.o liblog/fake_log_device.c.o liblog/fake_writer.c.o libcutils/load_file.c.o libcutils/socket_inaddr_any_server_unix.c.o libcutils/socket_local_client_unix.c.o libcutils/socket_local_server_unix.c.o libcutils/socket_loopback_server_unix.c.o libcutils/socket_network_client_unix.c.o libcutils/threads.c.o libcutils/sockets.cpp.o libcutils/android_get_control_file.cpp.o libcutils/sockets_unix.cpp.o ../boringssl/src/crypto/bn/cmp.c.o ../boringssl/src/crypto/bn/bn.c.o ../boringssl/src/crypto/bytestring/cbb.c.o ../boringssl/src/crypto/mem.c.o ../boringssl/src/crypto/buf/buf.c.o ../boringssl/src/crypto/bio/file.c.o ../boringssl/src/crypto/bn/convert.c.o ../boringssl/src/crypto/base64/base64.c.o libcrypto_utils/android_pubkey.c.o adb/client/usb_dispatch.cpp.o adb/client/usb_libusb.cpp.o adb/client/usb_linux.cpp.o adb/adb.cpp.o adb/adb_io.cpp.o adb/socket_spec.cpp.o adb/adb_listeners.cpp.o adb/adb_utils.cpp.o adb/sockets.cpp.o adb/transport.cpp.o adb/transport_local.cpp.o adb/transport_usb.cpp.o adb/services.cpp.o adb/adb_trace.cpp.o adb/diagnose_usb.cpp.o adb/adb_auth_host.cpp.o adb/sysdeps_unix.cpp.o adb/fdevent.cpp.o adb/shell_service.cpp.o adb/shell_service_protocol.cpp.o ../mdnsresponder/mDNSShared/dnssd_ipc.c.o ../mdnsresponder/mDNSShared/dnssd_clientstub.c.o adb/console.cpp.o adb/bugreport.cpp.o adb/commandline.cpp.o adb/adb_client.cpp.o adb/sysdeps/errno.cpp.o adb/file_sync_client.cpp.o adb/line_printer.cpp.o adb/transport_mdns.cpp.o adb/client/main.cpp.o g++ -o fastboot/socket.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DFASTBOOT_REVISION=\"$PKGVER\" -D_GNU_SOURCE -Iadb -Iinclude -Imkbootimg -Ibase/include -Ilibsparse/include -I../extras/ext4_utils/include -I../extras/f2fs_utils -c fastboot/socket.cpp g++ -o fastboot/tcp.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DFASTBOOT_REVISION=\"$PKGVER\" -D_GNU_SOURCE -Iadb -Iinclude -Imkbootimg -Ibase/include -Ilibsparse/include -I../extras/ext4_utils/include -I../extras/f2fs_utils -c fastboot/tcp.cpp g++ -o fastboot/udp.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DFASTBOOT_REVISION=\"$PKGVER\" -D_GNU_SOURCE -Iadb -Iinclude -Imkbootimg -Ibase/include -Ilibsparse/include -I../extras/ext4_utils/include -I../extras/f2fs_utils -c fastboot/udp.cpp g++ -o fastboot/protocol.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DFASTBOOT_REVISION=\"$PKGVER\" -D_GNU_SOURCE -Iadb -Iinclude -Imkbootimg -Ibase/include -Ilibsparse/include -I../extras/ext4_utils/include -I../extras/f2fs_utils -c fastboot/protocol.cpp g++ -o fastboot/engine.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DFASTBOOT_REVISION=\"$PKGVER\" -D_GNU_SOURCE -Iadb -Iinclude -Imkbootimg -Ibase/include -Ilibsparse/include -I../extras/ext4_utils/include -I../extras/f2fs_utils -c fastboot/engine.cpp g++ -o fastboot/bootimg_utils.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DFASTBOOT_REVISION=\"$PKGVER\" -D_GNU_SOURCE -Iadb -Iinclude -Imkbootimg -Ibase/include -Ilibsparse/include -I../extras/ext4_utils/include -I../extras/f2fs_utils -c fastboot/bootimg_utils.cpp g++ -o fastboot/fastboot.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DFASTBOOT_REVISION=\"$PKGVER\" -D_GNU_SOURCE -Iadb -Iinclude -Imkbootimg -Ibase/include -Ilibsparse/include -I../extras/ext4_utils/include -I../extras/f2fs_utils -c fastboot/fastboot.cpp g++ -o fastboot/util.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DFASTBOOT_REVISION=\"$PKGVER\" -D_GNU_SOURCE -Iadb -Iinclude -Imkbootimg -Ibase/include -Ilibsparse/include -I../extras/ext4_utils/include -I../extras/f2fs_utils -c fastboot/util.cpp g++ -o fastboot/fs.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DFASTBOOT_REVISION=\"$PKGVER\" -D_GNU_SOURCE -Iadb -Iinclude -Imkbootimg -Ibase/include -Ilibsparse/include -I../extras/ext4_utils/include -I../extras/f2fs_utils -c fastboot/fs.cpp g++ -o fastboot/usb_linux.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -DFASTBOOT_REVISION=\"$PKGVER\" -D_GNU_SOURCE -Iadb -Iinclude -Imkbootimg -Ibase/include -Ilibsparse/include -I../extras/ext4_utils/include -I../extras/f2fs_utils -c fastboot/usb_linux.cpp gcc -o libsparse/backed_block.c.o -std=gnu11 $CFLAGS $CPPFLAGS -Ilibsparse/include -c libsparse/backed_block.c gcc -o libsparse/output_file.c.o -std=gnu11 $CFLAGS $CPPFLAGS -Ilibsparse/include -c libsparse/output_file.c gcc -o libsparse/sparse.c.o -std=gnu11 $CFLAGS $CPPFLAGS -Ilibsparse/include -c libsparse/sparse.c gcc -o libsparse/sparse_crc32.c.o -std=gnu11 $CFLAGS $CPPFLAGS -Ilibsparse/include -c libsparse/sparse_crc32.c gcc -o libsparse/sparse_err.c.o -std=gnu11 $CFLAGS $CPPFLAGS -Ilibsparse/include -c libsparse/sparse_err.c gcc -o libsparse/sparse_read.c.o -std=gnu11 $CFLAGS $CPPFLAGS -Ilibsparse/include -c libsparse/sparse_read.c g++ -o libziparchive/zip_archive.cc.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -Ibase/include -Iinclude -c libziparchive/zip_archive.cc g++ -o libutils/FileMap.cpp.o -std=gnu++14 $CXXFLAGS $CPPFLAGS -Iinclude -c libutils/FileMap.cpp gcc -o ../extras/ext4_utils/make_ext4fs.c.o -std=gnu11 $CFLAGS $CPPFLAGS -Ilibsparse/include -Iinclude -I../extras/ext4_utils/include -c ../extras/ext4_utils/make_ext4fs.c gcc -o ../extras/ext4_utils/ext4fixup.c.o -std=gnu11 $CFLAGS $CPPFLAGS -Ilibsparse/include -Iinclude -I../extras/ext4_utils/include -c ../extras/ext4_utils/ext4fixup.c gcc -o ../extras/ext4_utils/ext4_utils.c.o -std=gnu11 $CFLAGS $CPPFLAGS -Ilibsparse/include -Iinclude -I../extras/ext4_utils/include -c ../extras/ext4_utils/ext4_utils.c gcc -o ../extras/ext4_utils/allocate.c.o -std=gnu11 $CFLAGS $CPPFLAGS -Ilibsparse/include -Iinclude -I../extras/ext4_utils/include -c ../extras/ext4_utils/allocate.c gcc -o ../extras/ext4_utils/contents.c.o -std=gnu11 $CFLAGS $CPPFLAGS -Ilibsparse/include -Iinclude -I../extras/ext4_utils/include -c ../extras/ext4_utils/contents.c gcc -o ../extras/ext4_utils/extent.c.o -std=gnu11 $CFLAGS $CPPFLAGS -Ilibsparse/include -Iinclude -I../extras/ext4_utils/include -c ../extras/ext4_utils/extent.c gcc -o ../extras/ext4_utils/indirect.c.o -std=gnu11 $CFLAGS $CPPFLAGS -Ilibsparse/include -Iinclude -I../extras/ext4_utils/include -c ../extras/ext4_utils/indirect.c gcc -o ../extras/ext4_utils/sha1.c.o -std=gnu11 $CFLAGS $CPPFLAGS -Ilibsparse/include -Iinclude -I../extras/ext4_utils/include -c ../extras/ext4_utils/sha1.c gcc -o ../extras/ext4_utils/wipe.c.o -std=gnu11 $CFLAGS $CPPFLAGS -Ilibsparse/include -Iinclude -I../extras/ext4_utils/include -c ../extras/ext4_utils/wipe.c gcc -o ../extras/ext4_utils/crc16.c.o -std=gnu11 $CFLAGS $CPPFLAGS -Ilibsparse/include -Iinclude -I../extras/ext4_utils/include -c ../extras/ext4_utils/crc16.c gcc -o ../extras/ext4_utils/ext4_sb.c.o -std=gnu11 $CFLAGS $CPPFLAGS -Ilibsparse/include -Iinclude -I../extras/ext4_utils/include -c ../extras/ext4_utils/ext4_sb.c g++ -o fastboot/fastboot -lpthread -lselinux -lz -lcrypto -lutil -lusb-1.0 $LDFLAGS libsparse/backed_block.c.o libsparse/output_file.c.o libsparse/sparse.c.o libsparse/sparse_crc32.c.o libsparse/sparse_err.c.o libsparse/sparse_read.c.o libziparchive/zip_archive.cc.o liblog/logger_write.c.o liblog/local_logger.c.o liblog/config_read.c.o liblog/logprint.c.o liblog/stderr_write.c.o liblog/config_write.c.o liblog/logger_lock.c.o liblog/logger_name.c.o liblog/log_event_list.c.o liblog/log_event_write.c.o liblog/fake_log_device.c.o liblog/fake_writer.c.o libutils/FileMap.cpp.o libcutils/load_file.c.o libcutils/socket_inaddr_any_server_unix.c.o libcutils/socket_local_client_unix.c.o libcutils/socket_local_server_unix.c.o libcutils/socket_loopback_server_unix.c.o libcutils/socket_network_client_unix.c.o libcutils/threads.c.o libcutils/sockets.cpp.o libcutils/android_get_control_file.cpp.o libcutils/sockets_unix.cpp.o ../boringssl/src/crypto/bn/cmp.c.o ../boringssl/src/crypto/bn/bn.c.o ../boringssl/src/crypto/bytestring/cbb.c.o ../boringssl/src/crypto/mem.c.o ../boringssl/src/crypto/buf/buf.c.o ../boringssl/src/crypto/bio/file.c.o ../boringssl/src/crypto/bn/convert.c.o ../boringssl/src/crypto/base64/base64.c.o libcrypto_utils/android_pubkey.c.o base/file.cpp.o base/logging.cpp.o base/parsenetaddress.cpp.o base/stringprintf.cpp.o base/strings.cpp.o base/errors_unix.cpp.o ../extras/ext4_utils/make_ext4fs.c.o ../extras/ext4_utils/ext4fixup.c.o ../extras/ext4_utils/ext4_utils.c.o ../extras/ext4_utils/allocate.c.o ../extras/ext4_utils/contents.c.o ../extras/ext4_utils/extent.c.o ../extras/ext4_utils/indirect.c.o ../extras/ext4_utils/sha1.c.o ../extras/ext4_utils/wipe.c.o ../extras/ext4_utils/crc16.c.o ../extras/ext4_utils/ext4_sb.c.o fastboot/socket.cpp.o fastboot/tcp.cpp.o fastboot/udp.cpp.o fastboot/protocol.cpp.o fastboot/engine.cpp.o fastboot/bootimg_utils.cpp.o fastboot/fastboot.cpp.o fastboot/util.cpp.o fastboot/fs.cpp.o fastboot/usb_linux.cpp.o adb/fdevent.cpp.o adb/shell_service.cpp.o adb/shell_service_protocol.cpp.o adb/client/usb_dispatch.cpp.o adb/client/usb_libusb.cpp.o adb/client/usb_linux.cpp.o adb/adb.cpp.o adb/adb_io.cpp.o adb/socket_spec.cpp.o adb/adb_listeners.cpp.o adb/adb_utils.cpp.o adb/sockets.cpp.o adb/transport.cpp.o adb/transport_local.cpp.o adb/transport_usb.cpp.o adb/services.cpp.o adb/adb_trace.cpp.o adb/diagnose_usb.cpp.o adb/adb_auth_host.cpp.o adb/sysdeps_unix.cpp.o gcc -o libsparse/simg2img.c.o -std=gnu11 $CFLAGS $CPPFLAGS -Iinclude -Ilibsparse/include -c libsparse/simg2img.c g++ -o libsparse/simg2img -lz $LDFLAGS libsparse/backed_block.c.o libsparse/output_file.c.o libsparse/sparse.c.o libsparse/sparse_crc32.c.o libsparse/sparse_err.c.o libsparse/sparse_read.c.o libsparse/simg2img.c.o gcc -o libsparse/img2simg.c.o -std=gnu11 $CFLAGS $CPPFLAGS -Iinclude -Ilibsparse/include -c libsparse/img2simg.c g++ -o libsparse/img2simg -lz $LDFLAGS libsparse/backed_block.c.o libsparse/output_file.c.o libsparse/sparse.c.o libsparse/sparse_crc32.c.o libsparse/sparse_err.c.o libsparse/sparse_read.c.o libsparse/img2simg.c.o + PKGVER=e7195be7725a + 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' + 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' + sh -xe build.sh + g++ -o adb/client/usb_dispatch.cpp.o -std=gnu++14 -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 '-DADB_REVISION="e7195be7725a"' -DADB_HOST=1 -fpermissive -I../boringssl/include -Iadb -Iinclude -Ibase/include -Ilibcrypto_utils/include -c adb/client/usb_dispatch.cpp + g++ -o adb/client/usb_libusb.cpp.o -std=gnu++14 -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 '-DADB_REVISION="e7195be7725a"' -DADB_HOST=1 -fpermissive -I../boringssl/include -Iadb -Iinclude -Ibase/include -Ilibcrypto_utils/include -c adb/client/usb_libusb.cpp BUILDSTDERR: In file included from ../boringssl/include/openssl/rsa.h:60, BUILDSTDERR: from adb/transport.h:33, BUILDSTDERR: from adb/client/usb_libusb.cpp:41: BUILDSTDERR: ../boringssl/include/openssl/base.h:106:2: error: #error "Unknown target CPU" BUILDSTDERR: #error "Unknown target CPU" BUILDSTDERR: ^~~~~ RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.AnKDKD (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.AnKDKD (%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/android-tools.spec