Mock Version: 2.9 Mock Version: 2.9 Mock Version: 2.9 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/rb_libtorrent.spec'], chrootPath='/var/lib/mock/f33-build-620182-67426/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': 'C.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.6v4odrtn:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.6v4odrtn:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'a5199e3b568c4dd2a7d27c7c8e9a7472', '-D', '/var/lib/mock/f33-build-620182-67426/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.6v4odrtn:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/rb_libtorrent.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': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False warning: extra tokens at the end of %endif directive in line 112: %endif # with python3 warning: extra tokens at the end of %endif directive in line 180: %endif # with_python3 warning: extra tokens at the end of %endif directive in line 232: %endif # with python3 warning: extra tokens at the end of %endif directive in line 282: %endif # with python3 Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1620000000 Wrote: /builddir/build/SRPMS/rb_libtorrent-1.2.12-1.0.riscv64.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/rb_libtorrent.spec'], chrootPath='/var/lib/mock/f33-build-620182-67426/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': 'C.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.6v4odrtn:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.6v4odrtn:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '13ad3fcb017a425e8ad385b09c6914e9', '-D', '/var/lib/mock/f33-build-620182-67426/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.6v4odrtn:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/rb_libtorrent.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': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False warning: extra tokens at the end of %endif directive in line 112: %endif # with python3 warning: extra tokens at the end of %endif directive in line 180: %endif # with_python3 warning: extra tokens at the end of %endif directive in line 232: %endif # with python3 warning: extra tokens at the end of %endif directive in line 282: %endif # with python3 Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1620000000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.0SrZxt + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libtorrent-rasterbar-1.2.12 + /usr/bin/gzip -dc /builddir/build/SOURCES/libtorrent-rasterbar-1.2.12.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd libtorrent-rasterbar-1.2.12 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -f docs/building.rst docs/client_test.rst docs/contributing.rst docs/dht_extensions.rst docs/dht_rss.rst docs/dht_sec.rst docs/dht_store.rst docs/examples.rst docs/extension_protocol.rst docs/features.rst docs/fuzzing.rst docs/header.rst docs/index.rst docs/manual-ref.rst docs/projects.rst docs/python_binding.rst docs/settings.rst docs/stats_counters.rst docs/streaming.rst docs/troubleshooting.rst docs/tuning.rst docs/tutorial.rst docs/udp_tracker_protocol.rst docs/utp.rst + install -p -m 0644 COPYING COPYING.BSD + install -p -m 0644 /builddir/build/SOURCES/rb_libtorrent-COPYING.Boost COPYING.Boost + install -p -m 0644 /builddir/build/SOURCES/rb_libtorrent-COPYING.zlib COPYING.zlib + iconv -t UTF-8 -f ISO_8859-15 AUTHORS -o AUTHORS.iconv + mv AUTHORS.iconv AUTHORS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.lqYwcx + umask 022 + cd /builddir/build/BUILD + cd libtorrent-rasterbar-1.2.12 + mkdir -p build build-python3 ++ python3.9-config --includes + export 'CPPFLAGS= -I/usr/include/python3.9 -I/usr/include/python3.9' + CPPFLAGS=' -I/usr/include/python3.9 -I/usr/include/python3.9' + export 'LDFLAGS= -L/builddir/build/BUILD/libtorrent-rasterbar-1.2.12/build/src/.libs' + LDFLAGS=' -L/builddir/build/BUILD/libtorrent-rasterbar-1.2.12/build/src/.libs' + export PYTHON=/usr/bin/python3.9 + PYTHON=/usr/bin/python3.9 ++ python3.9-config --libs + export 'PYTHON_LDFLAGS= -lcrypt -lpthread -ldl -lutil -lm -lm ' + PYTHON_LDFLAGS=' -lcrypt -lpthread -ldl -lutil -lm -lm ' ~/build/BUILD/libtorrent-rasterbar-1.2.12/build-python3 ~/build/BUILD/libtorrent-rasterbar-1.2.12 + export 'LDFLAGS= -L/builddir/build/BUILD/libtorrent-rasterbar-1.2.12/build/src/.libs --as-needed -latomic --no-as-needed' + LDFLAGS=' -L/builddir/build/BUILD/libtorrent-rasterbar-1.2.12/build/src/.libs --as-needed -latomic --no-as-needed' + pushd build-python3 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS=' -L/builddir/build/BUILD/libtorrent-rasterbar-1.2.12/build/src/.libs --as-needed -latomic --no-as-needed' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + /usr/bin/cmake -S . -B riscv64-redhat-linux-gnu -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_STANDARD=14 -GNinja -Dbuild_examples=ON -Dbuild_tests=ON -Dbuild_tools=ON -Dpython-bindings=ON -Dpython-egg-info=ON -Dpython-install-system-dir=ON .. -- The C compiler identification is GNU 10.3.1 -- The CXX compiler identification is GNU 10.3.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - failed -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc - broken CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:66 (message): The C compiler "/usr/bin/gcc" is not able to compile a simple test program. It fails with the following output: Change Dir: /builddir/build/BUILD/libtorrent-rasterbar-1.2.12/build-python3/riscv64-redhat-linux-gnu/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja-build cmTC_6b5f7 && [1/2] Building C object CMakeFiles/cmTC_6b5f7.dir/testCCompiler.c.o [2/2] Linking C executable cmTC_6b5f7 FAILED: cmTC_6b5f7 : && /usr/bin/gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -L/builddir/build/BUILD/libtorrent-rasterbar-1.2.12/build/src/.libs --as-needed -latomic --no-as-needed CMakeFiles/cmTC_6b5f7.dir/testCCompiler.c.o -o cmTC_6b5f7 && : gcc: error: unrecognized command-line option '--as-needed' gcc: error: unrecognized command-line option '--no-as-needed' ninja: build stopped: subcommand failed. CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:11 (project) -- Configuring incomplete, errors occurred! See also "/builddir/build/BUILD/libtorrent-rasterbar-1.2.12/build-python3/riscv64-redhat-linux-gnu/CMakeFiles/CMakeOutput.log". See also "/builddir/build/BUILD/libtorrent-rasterbar-1.2.12/build-python3/riscv64-redhat-linux-gnu/CMakeFiles/CMakeError.log". RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.lqYwcx (%build) extra tokens at the end of %endif directive in line 112: %endif # with python3 extra tokens at the end of %endif directive in line 180: %endif # with_python3 extra tokens at the end of %endif directive in line 232: %endif # with python3 extra tokens at the end of %endif directive in line 282: %endif # with python3 Bad exit status from /var/tmp/rpm-tmp.lqYwcx (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M 13ad3fcb017a425e8ad385b09c6914e9 -D /var/lib/mock/f33-build-620182-67426/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.6v4odrtn:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;\007" --setenv=PS1= \s-\v\$ --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/rb_libtorrent.spec