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/android-tools.spec'], chrootPath='/var/lib/mock/f33-build-132509-41208/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/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=1580169600 Wrote: /builddir/build/SRPMS/android-tools-20180828gitc7815d675-5.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/android-tools.spec'], chrootPath='/var/lib/mock/f33-build-132509-41208/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/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=1580169600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.rVGmnU + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf boringssl + /usr/bin/tar -xof - + /usr/bin/xz -dc /builddir/build/SOURCES/boringssl-fb44824b9.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/tar -xof - + /usr/bin/xz -dc /builddir/build/SOURCES/core-c7815d675.tar.xz + 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/tar -xof - + /usr/bin/xz -dc /builddir/build/SOURCES/mdnsresponder-33e620a7.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/tar -xof - + /usr/bin/xz -dc /builddir/build/SOURCES/core-c7815d675.tar.xz + 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/tar -xof - + /usr/bin/xz -dc /builddir/build/SOURCES/core-c7815d675.tar.xz + 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 . 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 adb/sysdeps/posix/network.cpp patching file adb/types.h patching file base/errors_unix.cpp patching file base/file.cpp + echo 'Patch #2 (0002-libusb-modifications.patch):' Patch #2 (0002-libusb-modifications.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file adb/client/usb_libusb.cpp Hunk #1 succeeded at 29 (offset 2 lines). + echo 'Patch #3 (0003-buildlib-remove.patch):' Patch #3 (0003-buildlib-remove.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file adb/adb.cpp + echo 'Patch #4 (0004-bz1441234.patch):' Patch #4 (0004-bz1441234.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file libcrypto_utils/android_pubkey.c Patch #5 (0005-Add-sysmacros-h.patch): + echo 'Patch #5 (0005-Add-sysmacros-h.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file adb/client/usb_linux.cpp + 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 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.5fsoOQ + 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:489: /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:489: /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 included from /usr/include/features.h:489: /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:489: /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: error: Bad exit status from /var/tmp/rpm-tmp.5fsoOQ (%build) Bad exit status from /var/tmp/rpm-tmp.5fsoOQ (%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/android-tools.spec