Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/ansible-inventory-grapher.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-761527f6e0fd558bb34ad141ae0e08bedbe9563a/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0logger=uid=996) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/ansible-inventory-grapher.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False sh: /usr/bin/python2: No such file or directory sh: /usr/bin/python2: No such file or directory Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/ansible-inventory-grapher-2.3.2-1.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/ansible-inventory-grapher.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-761527f6e0fd558bb34ad141ae0e08bedbe9563a/root'shell=Falseuid=996env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/ansible-inventory-grapher.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.DGOgEx + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ansible-inventory-grapher-2.3.2 + /usr/bin/gzip -dc /builddir/build/SOURCES/v2.3.2.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd ansible-inventory-grapher-2.3.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf '*.egg-info' + sed -i -e '/^#!\//, 1d' lib/ansibleinventorygrapher/__init__.py + find -name '*.py' + xargs sed -i '1s|^#!python|#!/usr/bin/python2|' + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.8tHCM6 + umask 022 + cd /builddir/build/BUILD + cd ansible-inventory-grapher-2.3.2 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' + /usr/bin/python2 setup.py build '--executable=/usr/bin/python2 -s' running build running build_py creating build creating build/lib creating build/lib/ansibleinventorygrapher copying lib/ansibleinventorygrapher/version.py -> build/lib/ansibleinventorygrapher copying lib/ansibleinventorygrapher/__init__.py -> build/lib/ansibleinventorygrapher running build_scripts creating build/scripts-2.7 copying and adjusting bin/ansible-inventory-grapher -> build/scripts-2.7 changing mode of build/scripts-2.7/ansible-inventory-grapher from 644 to 755 + sleep 1 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.VBJNAq + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/ansible-inventory-grapher-2.3.2-1.el7.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/ansible-inventory-grapher-2.3.2-1.el7.noarch ++ dirname /builddir/build/BUILDROOT/ansible-inventory-grapher-2.3.2-1.el7.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/ansible-inventory-grapher-2.3.2-1.el7.noarch + cd ansible-inventory-grapher-2.3.2 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' + /usr/bin/python2 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/ansible-inventory-grapher-2.3.2-1.el7.noarch running install running install_lib creating /builddir/build/BUILDROOT/ansible-inventory-grapher-2.3.2-1.el7.noarch/usr creating /builddir/build/BUILDROOT/ansible-inventory-grapher-2.3.2-1.el7.noarch/usr/lib creating /builddir/build/BUILDROOT/ansible-inventory-grapher-2.3.2-1.el7.noarch/usr/lib/python2.7 creating /builddir/build/BUILDROOT/ansible-inventory-grapher-2.3.2-1.el7.noarch/usr/lib/python2.7/site-packages creating /builddir/build/BUILDROOT/ansible-inventory-grapher-2.3.2-1.el7.noarch/usr/lib/python2.7/site-packages/ansibleinventorygrapher copying build/lib/ansibleinventorygrapher/version.py -> /builddir/build/BUILDROOT/ansible-inventory-grapher-2.3.2-1.el7.noarch/usr/lib/python2.7/site-packages/ansibleinventorygrapher copying build/lib/ansibleinventorygrapher/__init__.py -> /builddir/build/BUILDROOT/ansible-inventory-grapher-2.3.2-1.el7.noarch/usr/lib/python2.7/site-packages/ansibleinventorygrapher byte-compiling /builddir/build/BUILDROOT/ansible-inventory-grapher-2.3.2-1.el7.noarch/usr/lib/python2.7/site-packages/ansibleinventorygrapher/version.py to version.pyc byte-compiling /builddir/build/BUILDROOT/ansible-inventory-grapher-2.3.2-1.el7.noarch/usr/lib/python2.7/site-packages/ansibleinventorygrapher/__init__.py to __init__.pyc writing byte-compilation script '/tmp/tmpIaumlI.py' /usr/bin/python2 -O /tmp/tmpIaumlI.py removing /tmp/tmpIaumlI.py running install_egg_info running egg_info creating ansible_inventory_grapher.egg-info writing requirements to ansible_inventory_grapher.egg-info/requires.txt writing ansible_inventory_grapher.egg-info/PKG-INFO writing top-level names to ansible_inventory_grapher.egg-info/top_level.txt writing dependency_links to ansible_inventory_grapher.egg-info/dependency_links.txt writing manifest file 'ansible_inventory_grapher.egg-info/SOURCES.txt' reading manifest file 'ansible_inventory_grapher.egg-info/SOURCES.txt' writing manifest file 'ansible_inventory_grapher.egg-info/SOURCES.txt' Copying ansible_inventory_grapher.egg-info to /builddir/build/BUILDROOT/ansible-inventory-grapher-2.3.2-1.el7.noarch/usr/lib/python2.7/site-packages/ansible_inventory_grapher-2.3.2-py2.7.egg-info running install_scripts creating /builddir/build/BUILDROOT/ansible-inventory-grapher-2.3.2-1.el7.noarch/usr/bin copying build/scripts-2.7/ansible-inventory-grapher -> /builddir/build/BUILDROOT/ansible-inventory-grapher-2.3.2-1.el7.noarch/usr/bin changing mode of /builddir/build/BUILDROOT/ansible-inventory-grapher-2.3.2-1.el7.noarch/usr/bin/ansible-inventory-grapher to 755 + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 /builddir/build/BUILD/ansible-inventory-grapher-2.3.2 /usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match. find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 Bytecompiling .py files below /builddir/build/BUILDROOT/ansible-inventory-grapher-2.3.2-1.el7.noarch/usr/lib/python2.7 using /usr/bin/python2.7 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.QunZe3 + umask 022 + cd /builddir/build/BUILD + cd ansible-inventory-grapher-2.3.2 + /usr/bin/python2 setup.py test running test Searching for cryptography Reading https://pypi.python.org/simple/cryptography/ Best match: cryptography 2.1.4 Downloading https://pypi.python.org/packages/78/c5/7188f15a92413096c93053d5304718e1f6ba88b818357d05d19250ebff85/cryptography-2.1.4.tar.gz#md5=9f39d4d8f2b05f295fa0ff52475ec4f2 Processing cryptography-2.1.4.tar.gz Writing /tmp/easy_install-zsDbHM/cryptography-2.1.4/setup.cfg Running cryptography-2.1.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-zsDbHM/cryptography-2.1.4/egg-dist-tmp-o30uQv Searching for cffi>=1.7 Reading https://pypi.python.org/simple/cffi/ Best match: cffi 1.11.5 Downloading https://pypi.python.org/packages/e7/a7/4cd50e57cc6f436f1cc3a7e8fa700ff9b8b4d471620629074913e3735fb2/cffi-1.11.5.tar.gz#md5=ac8492f4ad952360737413e82d661908 Processing cffi-1.11.5.tar.gz Writing /tmp/easy_install-zsDbHM/cryptography-2.1.4/temp/easy_install-NN1sPN/cffi-1.11.5/setup.cfg Running cffi-1.11.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-zsDbHM/cryptography-2.1.4/temp/easy_install-NN1sPN/cffi-1.11.5/egg-dist-tmp-QSlyp9 Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found compiling '_configtest.c': __thread int some_threadlocal_variable_42; gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -D_GNU_SOURCE -fPIC -fwrapv -fPIC -c _configtest.c -o _configtest.o success! removing: _configtest.c _configtest.o compiling '_configtest.c': int main(void) { __sync_synchronize(); return 0; } gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -D_GNU_SOURCE -fPIC -fwrapv -fPIC -c _configtest.c -o _configtest.o gcc -pthread _configtest.o -o _configtest success! removing: _configtest.c _configtest.o _configtest c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory #include ^ compilation terminated. error: Setup script exited with error: command 'gcc' failed with exit status 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.QunZe3 (%check) Bad exit status from /var/tmp/rpm-tmp.QunZe3 (%check) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 88, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 547, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/ansible-inventory-grapher.spec