Mock Version: 1.4.14 Mock Version: 1.4.14 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/android-tools.spec'], chrootPath='/var/lib/mock/f31-build-102104-33465/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=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=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'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1563926400 Wrote: /builddir/build/SRPMS/android-tools-20180828gitc7815d675-4.fc31.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/f31-build-102104-33465/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=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=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'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1563926400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.vOK8jb + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf boringssl + /usr/bin/xz -dc /builddir/build/SOURCES/boringssl-fb44824b9.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/xz -dc /builddir/build/SOURCES/core-c7815d675.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-33e620a7.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/xz -dc /builddir/build/SOURCES/core-c7815d675.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 + /usr/bin/xz -dc /builddir/build/SOURCES/core-c7815d675.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/xz -dc /builddir/build/SOURCES/core-c7815d675.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd core + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (0001-Add-string-h.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 + echo 'Patch #2 (0002-libusb-modifications.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 + echo 'Patch #3 (0003-buildlib-remove.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 + echo 'Patch #4 (0004-bz1441234.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 + echo 'Patch #5 (0005-Add-sysmacros-h.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 + cp -p /builddir/build/SOURCES/51-android.rules 51-android.rules + export CC=clang + CC=clang + export CXX=clang++ + CXX=clang++ + sed -i 's/android::build::GetBuildNumber().c_str()/"c7815d675"/g' adb/adb.cpp + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Patch #1 (0001-Add-string-h.patch): patching file adb/sysdeps/posix/network.cpp patching file adb/types.h patching file base/errors_unix.cpp patching file base/file.cpp Patch #2 (0002-libusb-modifications.patch): patching file adb/client/usb_libusb.cpp Hunk #1 succeeded at 29 (offset 2 lines). Patch #3 (0003-buildlib-remove.patch): patching file adb/adb.cpp Patch #4 (0004-bz1441234.patch): patching file libcrypto_utils/android_pubkey.c Patch #5 (0005-Add-sysmacros-h.patch): patching file adb/client/usb_linux.cpp Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Zy4V3d + umask 022 + cd /builddir/build/BUILD + cd core + cd .. + PKGVER=c7815d675 + 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 -Qunused-arguments' + 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 -Qunused-arguments' + ruby /builddir/build/SOURCES/generate_build.rb + /usr/bin/ninja -v -j4 [1/100] clang++ -std=gnu++17 -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 -Qunused-arguments -DADB_HOST=1 -Icore/diagnose_usb/include -Icore/include -Icore/base/include -Icore/adb -Icore/libcrypto_utils/include -c core/adb/adb_trace.cpp -o core/adb/adb_trace.cpp.o FAILED: core/adb/adb_trace.cpp.o clang++ -std=gnu++17 -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 -Qunused-arguments -DADB_HOST=1 -Icore/diagnose_usb/include -Icore/include -Icore/base/include -Icore/adb -Icore/libcrypto_utils/include -c core/adb/adb_trace.cpp -o core/adb/adb_trace.cpp.o In file included from core/adb/adb_trace.cpp:17: In file included from core/adb/sysdeps.h:27: In file included from /usr/include/errno.h:25: In file included from /usr/include/features.h:474: /usr/include/gnu/stubs.h:8:11: fatal error: 'gnu/stubs-lp64.h' file not found # include ^~~~~~~~~~~~~~~~~~ 1 error generated. [2/100] clang++ -std=gnu++17 -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 -Qunused-arguments -DADB_HOST=1 -Icore/diagnose_usb/include -Icore/include -Icore/base/include -Icore/adb -Icore/libcrypto_utils/include -c core/adb/adb_io.cpp -o core/adb/adb_io.cpp.o FAILED: core/adb/adb_io.cpp.o clang++ -std=gnu++17 -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 -Qunused-arguments -DADB_HOST=1 -Icore/diagnose_usb/include -Icore/include -Icore/base/include -Icore/adb -Icore/libcrypto_utils/include -c core/adb/adb_io.cpp -o core/adb/adb_io.cpp.o In file included from core/adb/adb_io.cpp:19: In file included from core/adb/adb_io.h:20: In file included from /usr/include/sys/types.h:25: In file included from /usr/include/features.h:474: /usr/include/gnu/stubs.h:8:11: fatal error: 'gnu/stubs-lp64.h' file not found # include ^~~~~~~~~~~~~~~~~~ 1 error generated. [3/100] clang++ -std=gnu++17 -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 -Qunused-arguments -DADB_HOST=1 -Icore/diagnose_usb/include -Icore/include -Icore/base/include -Icore/adb -Icore/libcrypto_utils/include -c core/adb/adb_listeners.cpp -o core/adb/adb_listeners.cpp.o FAILED: core/adb/adb_listeners.cpp.o clang++ -std=gnu++17 -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 -Qunused-arguments -DADB_HOST=1 -Icore/diagnose_usb/include -Icore/include -Icore/base/include -Icore/adb -Icore/libcrypto_utils/include -c core/adb/adb_listeners.cpp -o core/adb/adb_listeners.cpp.o In file included from core/adb/adb_listeners.cpp:17: In file included from core/adb/adb_listeners.h:20: In file included from core/adb/adb.h:20: In file included from /usr/lib64/clang/9.0.0/include/limits.h:21: In file included from /usr/include/limits.h:26: In file included from /usr/include/bits/libc-header-start.h:33: In file includerror: ed from /usr/include/features.h:474: /usr/include/gnu/stubs.h:8:11: fatal error: 'gnu/stubs-lp64.h' file not found # include ^~~~~~~~~~~~~~~~~~ 1 error generated. [4/100] clang++ -std=gnu++17 -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 -Qunused-arguments -DADB_HOST=1 -Icore/diagnose_usb/include -Icore/include -Icore/base/include -Icore/adb -Icore/libcrypto_utils/include -c core/adb/adb.cpp -o core/adb/adb.cpp.o FAILED: core/adb/adb.cpp.o clang++ -std=gnu++17 -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 -Qunused-arguments -DADB_HOST=1 -Icore/diagnose_usb/include -Icore/include -Icore/base/include -Icore/adb -Icore/libcrypto_utils/include -c core/adb/adb.cpp -o core/adb/adb.cpp.o In file included from core/adb/adb.cpp:19: In file included from core/adb/sysdeps.h:27: In file included from /usr/include/errno.h:25: In file included from /usr/include/features.h:474: /usr/include/gnu/stubs.h:8:11: fatal error: 'gnu/stubs-lp64.h' file not found # include ^~~~~~~~~~~~~~~~~~ 1 error generated. ninja: build stopped: subcommand failed. RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.Zy4V3d (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.Zy4V3d (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 700, 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