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/cp2k.spec'], chrootPath='/var/lib/mock/f29-build-28833-15451/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=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/cp2k.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 BUILDSTDERR: warning: line 48: Possible unexpanded macro in: Requires: libint(api)(riscv-64) = %{_libint_apiversion} BUILDSTDERR: warning: line 75: Possible unexpanded macro in: Requires: libint(api)(riscv-64) = %{_libint_apiversion} BUILDSTDERR: warning: line 91: Possible unexpanded macro in: Requires: libint(api)(riscv-64) = %{_libint_apiversion} Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/cp2k-6.1-1.fc29.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/cp2k.spec'], chrootPath='/var/lib/mock/f29-build-28833-15451/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=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/cp2k.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.rvBvZK + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf cp2k-6.1 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/cp2k-6.1.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd cp2k-6.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #10 (cp2k-rpm.patch):' Patch #10 (cp2k-rpm.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .r --fuzz=0 patching file arch/Linux-x86-64-gfortran.popt patching file arch/Linux-x86-64-gfortran.psmp patching file arch/Linux-x86-64-gfortran.sopt patching file arch/Linux-x86-64-gfortran.ssmp patching file makefiles/Makefile patching file tools/build_utils/check_archives.py patching file tools/build_utils/discover_programs.py patching file tools/build_utils/makedep.py patching file tools/regtesting/do_regtest + echo 'Patch #11 (cp2k-32bit.patch):' Patch #11 (cp2k-32bit.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .32bit --fuzz=0 patching file src/pw/realspace_grid_cube.F + sed -i 's|@libdir@|/usr/lib64|' makefiles/Makefile + rm tools/build_utils/fypp + TARGET=Linux-riscv64-gfortran + for v in opt smp + ln -s Linux-x86-64-gfortran.sopt arch/Linux-riscv64-gfortran.sopt + for m in mpich openmpi + ln -s Linux-x86-64-gfortran.popt arch/Linux-riscv64-gfortran-mpich.popt + for m in mpich openmpi + ln -s Linux-x86-64-gfortran.popt arch/Linux-riscv64-gfortran-openmpi.popt + for v in opt smp + ln -s Linux-x86-64-gfortran.ssmp arch/Linux-riscv64-gfortran.ssmp + for m in mpich openmpi + ln -s Linux-x86-64-gfortran.psmp arch/Linux-riscv64-gfortran-mpich.psmp + for m in mpich openmpi + ln -s Linux-x86-64-gfortran.psmp arch/Linux-riscv64-gfortran-openmpi.psmp BUILDSTDERR: ++ awk '/LIBINT_MAX_AM / {print $3}' /usr/include/libint/libint.h + maxam=11 BUILDSTDERR: ++ awk '/LIBDERIV_MAX_AM1 / {print $3}' /usr/include/libderiv/libderiv.h + maxderiv=7 + for f in arch/Linux-x86-64-gfortran.{popt,psmp,sopt,ssmp} + sed -i 's|@LIBINT_MAX_AM@|11|g;s|@LIBDERIV_MAX_AM@|7|g' arch/Linux-x86-64-gfortran.popt + sed -i 's|@LIBSMM_DEFS@||;s|@LIBSMM_LIBS@||' arch/Linux-x86-64-gfortran.popt + for f in arch/Linux-x86-64-gfortran.{popt,psmp,sopt,ssmp} + sed -i 's|@LIBINT_MAX_AM@|11|g;s|@LIBDERIV_MAX_AM@|7|g' arch/Linux-x86-64-gfortran.psmp + sed -i 's|@LIBSMM_DEFS@||;s|@LIBSMM_LIBS@||' arch/Linux-x86-64-gfortran.psmp + for f in arch/Linux-x86-64-gfortran.{popt,psmp,sopt,ssmp} + sed -i 's|@LIBINT_MAX_AM@|11|g;s|@LIBDERIV_MAX_AM@|7|g' arch/Linux-x86-64-gfortran.sopt + sed -i 's|@LIBSMM_DEFS@||;s|@LIBSMM_LIBS@||' arch/Linux-x86-64-gfortran.sopt + for f in arch/Linux-x86-64-gfortran.{popt,psmp,sopt,ssmp} + sed -i 's|@LIBINT_MAX_AM@|11|g;s|@LIBDERIV_MAX_AM@|7|g' arch/Linux-x86-64-gfortran.ssmp + sed -i 's|@LIBSMM_DEFS@||;s|@LIBSMM_LIBS@||' arch/Linux-x86-64-gfortran.ssmp + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.tdRE0h + umask 022 + cd /builddir/build/BUILD ~/build/BUILD/cp2k-6.1/makefiles ~/build/BUILD/cp2k-6.1 + cd cp2k-6.1 + TARGET=Linux-riscv64-gfortran + OPTFLAGS_COMMON='-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 -fPIC -I/usr/lib64/gfortran/modules' + LDFLAGS_COMMON='-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 -fPIC -I/usr/lib64/gfortran/modules -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + pushd makefiles + make 'OPTFLAGS=-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 -fPIC -I/usr/lib64/gfortran/modules' 'LDFLAGS=-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 -fPIC -I/usr/lib64/gfortran/modules -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-rpath,/usr/lib64/cp2k' -j4 ARCH=Linux-riscv64-gfortran 'VERSION=sopt ssmp' BUILDSTDERR: Discovering programs ... Resolving dependencies for sopt ... Resolving dependencies for ssmp ... fypp -n /builddir/build/BUILD/cp2k-6.1/src/dbcsr/base/array_types.F array_types.F90 fypp -n /builddir/build/BUILD/cp2k-6.1/src/base/kinds.F kinds.F90 fypp -n /builddir/build/BUILD/cp2k-6.1/src/dbcsr/base/btree.F btree.F90 fypp -n /builddir/build/BUILD/cp2k-6.1/src/base/kinds.F kinds.F90 BUILDSTDERR: Traceback (most recent call last): BUILDSTDERR: File "/usr/bin/fypp", line 6, in BUILDSTDERR: from pkg_resources import load_entry_point BUILDSTDERR: ModuleNotFoundError: No module named 'pkg_resources' BUILDSTDERR: make[3]: *** [/builddir/build/BUILD/cp2k-6.1/makefiles/Makefile:458: array_types.o] Error 1 BUILDSTDERR: make[3]: *** Waiting for unfinished jobs.... fypp -n /builddir/build/BUILD/cp2k-6.1/src/dbcsr/base/array_types.F array_types.F90 BUILDSTDERR: Traceback (most recent call last): BUILDSTDERR: File "/usr/bin/fypp", line 6, in BUILDSTDERR: from pkg_resources import load_entry_point BUILDSTDERR: ModuleNotFoundError: No module named 'pkg_resources' BUILDSTDERR: make[3]: *** [/builddir/build/BUILD/cp2k-6.1/makefiles/Makefile:458: kinds.o] Error 1 fypp -n /builddir/build/BUILD/cp2k-6.1/src/dbcsr/base/btree.F btree.F90 BUILDSTDERR: Traceback (most recent call last): BUILDSTDERR: File "/usr/bin/fypp", line 6, in BUILDSTDERR: from pkg_resources import load_entry_point BUILDSTDERR: ModuleNotFoundError: No module named 'pkg_resources' BUILDSTDERR: make[3]: *** [/builddir/build/BUILD/cp2k-6.1/makefiles/Makefile:458: btree.o] Error 1 BUILDSTDERR: make[2]: *** [/builddir/build/BUILD/cp2k-6.1/makefiles/Makefile:129: all] Error 2 BUILDSTDERR: make[1]: *** [/builddir/build/BUILD/cp2k-6.1/makefiles/Makefile:118: sopt] Error 2 BUILDSTDERR: make[1]: *** Waiting for unfinished jobs.... BUILDSTDERR: Traceback (most recent call last): BUILDSTDERR: File "/usr/bin/fypp", line 6, in BUILDSTDERR: from pkg_resources import load_entry_point BUILDSTDERR: ModuleNotFoundError: No module named 'pkg_resources' fypp -n /builddir/build/BUILD/cp2k-6.1/src/dbcsr/mm/dbcsr_mm_types.F dbcsr_mm_types.F90 BUILDSTDERR: make[3]: *** [/builddir/build/BUILD/cp2k-6.1/makefiles/Makefile:458: kinds.o] Error 1 BUILDSTDERR: make[3]: *** Waiting for unfinished jobs.... BUILDSTDERR: Traceback (most recent call last): BUILDSTDERR: File "/usr/bin/fypp", line 6, in BUILDSTDERR: from pkg_resources import load_entry_point BUILDSTDERR: ModuleNotFoundError: No module named 'pkg_resources' BUILDSTDERR: make[3]: *** [/builddir/build/BUILD/cp2k-6.1/makefiles/Makefile:458: array_types.o] Error 1 BUILDSTDERR: Traceback (most recent call last): BUILDSTDERR: File "/usr/bin/fypp", line 6, in BUILDSTDERR: from pkg_resources import load_entry_point BUILDSTDERR: ModuleNotFoundError: No module named 'pkg_resources' BUILDSTDERR: make[3]: *** [/builddir/build/BUILD/cp2k-6.1/makefiles/Makefile:458: btree.o] Error 1 BUILDSTDERR: Traceback (most recent call last): BUILDSTDERR: File "/usr/bin/fypp", line 6, in BUILDSTDERR: from pkg_resources import load_entry_point BUILDSTDERR: ModuleNotFoundError: No module named 'pkg_resources' BUILDSTDERR: make[3]: *** [/builddir/build/BUILD/cp2k-6.1/makefiles/Makefile:458: dbcsr_mm_types.o] Error 1 BUILDSTDERR: make[2]: *** [/builddir/build/BUILD/cp2k-6.1/makefiles/Makefile:129: all] Error 2 BUILDSTDERR: make[1]: *** [/builddir/build/BUILD/cp2k-6.1/makefiles/Makefile:118: ssmp] Error 2 BUILDSTDERR: make: *** [Makefile:113: all] Error 2 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.tdRE0h (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.tdRE0h (%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/cp2k.spec