Mock Version: 1.2.14 ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv6hl --nodeps /builddir/build/SPECS/m2crypto.spec'], logger=uid=1000shell=Falsegid=135printOutput=FalsechrootPath='/var/lib/mock/fedora-23-armhfp-pidora-round2-root-22227/root'env={'CCACHE_DIR': '/tmp/ccache', 'HOME': '/builddir', 'CCACHE_UMASK': '002', 'HOSTNAME': 'mock', 'LANG': 'en_US.UTF-8', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'TERM': 'vt100', 'SHELL': '/bin/bash'}timeout=0user='mockbuild') Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv6hl --nodeps /builddir/build/SPECS/m2crypto.spec'] with env {'CCACHE_DIR': '/tmp/ccache', 'HOME': '/builddir', 'CCACHE_UMASK': '002', 'HOSTNAME': 'mock', 'LANG': 'en_US.UTF-8', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'TERM': 'vt100', 'SHELL': '/bin/bash'} and shell False sh: /usr/bin/python: No such file or directory sh: /usr/bin/python: No such file or directory sh: /usr/bin/python: No such file or directory Building target platforms: armv6hl Building for target armv6hl Wrote: /builddir/build/SRPMS/m2crypto-0.21.1-20bs02npfc23.src.rpm Child return code was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', "/usr/bin/rpmbuild -bb --target armv6hl --nodeps --define '__spec_check_template exit 0; ' /builddir/build/SPECS/m2crypto.spec "], logger=uid=1000shell=Falseprivate_network=Truegid=135printOutput=FalsechrootPath='/var/lib/mock/fedora-23-armhfp-pidora-round2-root-22227/root'env={'CCACHE_DIR': '/tmp/ccache', 'HOME': '/builddir', 'CCACHE_UMASK': '002', 'HOSTNAME': 'mock', 'LANG': 'en_US.UTF-8', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'TERM': 'vt100', 'SHELL': '/bin/bash'}timeout=0user='mockbuild') Executing command: ['bash', '--login', '-c', "/usr/bin/rpmbuild -bb --target armv6hl --nodeps --define '__spec_check_template exit 0; ' /builddir/build/SPECS/m2crypto.spec "] with env {'CCACHE_DIR': '/tmp/ccache', 'HOME': '/builddir', 'CCACHE_UMASK': '002', 'HOSTNAME': 'mock', 'LANG': 'en_US.UTF-8', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'TERM': 'vt100', 'SHELL': '/bin/bash'} and shell False Building target platforms: armv6hl Building for target armv6hl Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.KWvpBR + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf M2Crypto-0.21.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/M2Crypto-0.21.1.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd M2Crypto-0.21.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (m2crypto-0.21.1-timeouts.patch): + echo 'Patch #0 (m2crypto-0.21.1-timeouts.patch):' + /usr/bin/cat /builddir/build/SOURCES/m2crypto-0.21.1-timeouts.patch + /usr/bin/patch -p1 -b --suffix .timeouts --fuzz=0 patching file M2Crypto/SSL/Connection.py patching file M2Crypto/SSL/__init__.py patching file SWIG/_ssl.i patching file tests/test_ssl.py Patch #1 (m2crypto-0.21.1-gcc_macros.patch): + echo 'Patch #1 (m2crypto-0.21.1-gcc_macros.patch):' + /usr/bin/cat /builddir/build/SOURCES/m2crypto-0.21.1-gcc_macros.patch + /usr/bin/patch -p1 -b --suffix .gcc_macros --fuzz=0 patching file SWIG/_m2crypto.i Patch #2 (m2crypto-0.20.2-fips.patch): + echo 'Patch #2 (m2crypto-0.20.2-fips.patch):' + /usr/bin/cat /builddir/build/SOURCES/m2crypto-0.20.2-fips.patch + /usr/bin/patch -p1 -b --suffix .fips --fuzz=0 patching file SWIG/_evp.i Hunk #1 succeeded at 253 (offset 3 lines). Hunk #2 succeeded at 268 (offset 3 lines). Hunk #3 succeeded at 285 (offset 3 lines). patching file SWIG/_rsa.i patching file tests/test_evp.py patching file tests/test_rc4.py patching file tests/test_rsa.py patching file tests/test_smime.py patching file tests/test_ssl.py Hunk #1 succeeded at 54 (offset 3 lines). patching file tests/test_x509.py Patch #3 (m2crypto-0.20.2-check.patch): + echo 'Patch #3 (m2crypto-0.20.2-check.patch):' + /usr/bin/cat /builddir/build/SOURCES/m2crypto-0.20.2-check.patch + /usr/bin/patch -p1 -b --suffix .check --fuzz=0 patching file M2Crypto/SSL/Connection.py patching file M2Crypto/SSL/Context.py Patch #4 (m2crypto-0.21.1-memoryview.patch): + echo 'Patch #4 (m2crypto-0.21.1-memoryview.patch):' + /usr/bin/cat /builddir/build/SOURCES/m2crypto-0.21.1-memoryview.patch + /usr/bin/patch -p1 -b --suffix .memoryview --fuzz=0 patching file SWIG/_lib.h patching file SWIG/_lib.i patching file SWIG/_ssl.i Patch #5 (m2crypto-0.21.1-smime-doc.patch): + echo 'Patch #5 (m2crypto-0.21.1-smime-doc.patch):' + /usr/bin/cat /builddir/build/SOURCES/m2crypto-0.21.1-smime-doc.patch + /usr/bin/patch -p0 --fuzz=0 patching file demo/smime.howto/sign.py patching file demo/smime.howto/verify.py patching file demo/smime.howto/sendsmime.py patching file demo/smime/test.py patching file demo/smime/sendsmime.py patching file contrib/smimeplus.py patching file doc/howto.smime.html Patch #6 (m2crypto-0.21.1-AES_crypt.patch): + echo 'Patch #6 (m2crypto-0.21.1-AES_crypt.patch):' + /usr/bin/cat /builddir/build/SOURCES/m2crypto-0.21.1-AES_crypt.patch + /usr/bin/patch -p0 -b --suffix .AES_crypt --fuzz=0 patching file SWIG/_aes.i Patch #7 (m2crypto-0.21.1-IPv6.patch): + echo 'Patch #7 (m2crypto-0.21.1-IPv6.patch):' + /usr/bin/cat /builddir/build/SOURCES/m2crypto-0.21.1-IPv6.patch + /usr/bin/patch -p1 -b --suffix .IPv6 --fuzz=0 patching file M2Crypto/httpslib.py patching file M2Crypto/SSL/Connection.py Patch #8 (m2crypto-0.21.1-https-proxy.patch): + echo 'Patch #8 (m2crypto-0.21.1-https-proxy.patch):' + /usr/bin/cat /builddir/build/SOURCES/m2crypto-0.21.1-https-proxy.patch + /usr/bin/patch -p1 -b --suffix .https-proxy --fuzz=0 patching file M2Crypto/httpslib.py patching file M2Crypto/m2urllib2.py Patch #9 (m2crypto-0.21.1-certs.patch): + echo 'Patch #9 (m2crypto-0.21.1-certs.patch):' + /usr/bin/cat /builddir/build/SOURCES/m2crypto-0.21.1-certs.patch + /usr/bin/patch -p0 -b --suffix .certs --fuzz=0 patching file tests/ca.pem patching file tests/recipient.pem patching file tests/recipient_key.pem patching file tests/server.pem patching file tests/signer.pem patching file tests/signer_key.pem patching file tests/test_ssl_offline.py patching file tests/test_x509.py patching file tests/x509.pem + openssl x509 -in tests/x509.pem -out tests/x509.der -outform DER Patch #10 (m2crypto-0.21.1-ssl23.patch): + echo 'Patch #10 (m2crypto-0.21.1-ssl23.patch):' + /usr/bin/cat /builddir/build/SOURCES/m2crypto-0.21.1-ssl23.patch + /usr/bin/patch -p0 -b --suffix .ssl23 --fuzz=0 patching file tests/test_ssl.py Patch #11 (m2crypto-0.21.1-SSL_CTX_new.patch): + echo 'Patch #11 (m2crypto-0.21.1-SSL_CTX_new.patch):' + /usr/bin/cat /builddir/build/SOURCES/m2crypto-0.21.1-SSL_CTX_new.patch + /usr/bin/patch -p1 -b --suffix .SSL_CTX_new --fuzz=0 patching file SWIG/_ssl.i Patch #12 (m2crypto-0.21.1-sni.patch): + echo 'Patch #12 (m2crypto-0.21.1-sni.patch):' + /usr/bin/cat /builddir/build/SOURCES/m2crypto-0.21.1-sni.patch + /usr/bin/patch -p1 -b --suffix .sni --fuzz=0 patching file M2Crypto/SSL/Connection.py patching file SWIG/_ssl.i Hunk #2 succeeded at 401 (offset 2 lines). Patch #13 (m2crypto-0.21.1-supported-ec.patch): + echo 'Patch #13 (m2crypto-0.21.1-supported-ec.patch):' + /usr/bin/cat /builddir/build/SOURCES/m2crypto-0.21.1-supported-ec.patch + /usr/bin/patch -p1 -b --suffix .supported-ec --fuzz=0 patching file tests/ec.priv.pem patching file tests/ec.pub.pem patching file tests/test_ec_curves.py patching file tests/test_ecdh.py patching file tests/test_ecdsa.py Patch #14 (m2crypto-0.21.1-tests-no-SIGHUP.patch): + echo 'Patch #14 (m2crypto-0.21.1-tests-no-SIGHUP.patch):' + /usr/bin/cat /builddir/build/SOURCES/m2crypto-0.21.1-tests-no-SIGHUP.patch + /usr/bin/patch -p1 -b --suffix .tests-no-SIGHUP --fuzz=0 patching file tests/test_ssl.py Patch #15 (m2crypto-0.21.1-tests-no-export-ciphers.patch): + echo 'Patch #15 (m2crypto-0.21.1-tests-no-export-ciphers.patch):' + /usr/bin/cat /builddir/build/SOURCES/m2crypto-0.21.1-tests-no-export-ciphers.patch + /usr/bin/patch -p1 -b --suffix .tests-no-export-ciphers --fuzz=0 patching file tests/test_ssl.py Patch #16 (m2crypto-0.21.1-tests-random-ports.patch): + echo 'Patch #16 (m2crypto-0.21.1-tests-random-ports.patch):' + /usr/bin/cat /builddir/build/SOURCES/m2crypto-0.21.1-tests-random-ports.patch + /usr/bin/patch -p1 -b --suffix .tests-random-ports --fuzz=0 patching file tests/test_bio_ssl.py patching file tests/test_ssl.py Patch #17 (m2crypto-0.21.1-tests-x509_name.patch): + echo 'Patch #17 (m2crypto-0.21.1-tests-x509_name.patch):' + /usr/bin/cat /builddir/build/SOURCES/m2crypto-0.21.1-tests-x509_name.patch + /usr/bin/patch -p1 -b --suffix .tests-x509_name --fuzz=0 patching file tests/test_x509.py Patch #18 (m2crypto-0.21.1-swig-3.0.5.patch): + echo 'Patch #18 (m2crypto-0.21.1-swig-3.0.5.patch):' + /usr/bin/cat /builddir/build/SOURCES/m2crypto-0.21.1-swig-3.0.5.patch + /usr/bin/patch -p1 -b --suffix .swig-3.0.5 --fuzz=0 patching file M2Crypto/__init__.py patching file M2Crypto/m2.py patching file setup.py patching file SWIG/_lib.i patching file SWIG/_pkcs7.i Patch #19 (m2crypto-0.21.1-tests-no-ssl23-1.patch): + echo 'Patch #19 (m2crypto-0.21.1-tests-no-ssl23-1.patch):' + /usr/bin/cat /builddir/build/SOURCES/m2crypto-0.21.1-tests-no-ssl23-1.patch + /usr/bin/patch -p1 -b --suffix .no-ssl23-1 --fuzz=0 patching file tests/test_ssl.py Patch #20 (m2crypto-0.21.1-tests-no-ssl23-2.patch): + echo 'Patch #20 (m2crypto-0.21.1-tests-no-ssl23-2.patch):' + /usr/bin/cat /builddir/build/SOURCES/m2crypto-0.21.1-tests-no-ssl23-2.patch + /usr/bin/patch -p1 -b --suffix .no-ssl23-2 --fuzz=0 patching file tests/test_ssl.py Patch #21 (m2crypto-0.21.1-tests-smime-sha256.patch): + echo 'Patch #21 (m2crypto-0.21.1-tests-smime-sha256.patch):' + /usr/bin/cat /builddir/build/SOURCES/m2crypto-0.21.1-tests-smime-sha256.patch + /usr/bin/patch -p1 -b --suffix .tests-smime-sha256 --fuzz=0 patching file tests/test_smime.py + basearch=arm + gcc -E -dM - + grep -v __STDC__ + sed 's/^\(#define \([^ ]*\) .*\)$/#undef \2\n\1/' Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.b71rH2 + exit 0 + umask 022 + cd /builddir/build/BUILD + cd M2Crypto-0.21.1 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv6 -mfloat-abi=hard -mfpu=vfp' + export CFLAGS + pkg-config openssl ++ pkg-config --cflags openssl + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv6 -mfloat-abi=hard -mfpu=vfp ' + export CFLAGS ++ pkg-config --libs-only-L openssl + LDFLAGS= + export LDFLAGS + SWIG_FEATURES=-cpperraswarn + /usr/bin/python setup.py build running build running build_py creating build creating build/lib.linux-armv7l-2.7 creating build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/m2xmlrpclib.py -> build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/m2.py -> build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/m2urllib.py -> build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/SMIME.py -> build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/Engine.py -> build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/RC4.py -> build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/EVP.py -> build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/BN.py -> build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/RSA.py -> build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/BIO.py -> build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/ASN1.py -> build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/ftpslib.py -> build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/EC.py -> build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/DH.py -> build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/AuthCookie.py -> build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/threading.py -> build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/X509.py -> build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/Rand.py -> build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/callback.py -> build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/DSA.py -> build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/__init__.py -> build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/httpslib.py -> build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/m2urllib2.py -> build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/Err.py -> build/lib.linux-armv7l-2.7/M2Crypto copying M2Crypto/util.py -> build/lib.linux-armv7l-2.7/M2Crypto creating build/lib.linux-armv7l-2.7/M2Crypto/SSL copying M2Crypto/SSL/cb.py -> build/lib.linux-armv7l-2.7/M2Crypto/SSL copying M2Crypto/SSL/timeout.py -> build/lib.linux-armv7l-2.7/M2Crypto/SSL copying M2Crypto/SSL/Checker.py -> build/lib.linux-armv7l-2.7/M2Crypto/SSL copying M2Crypto/SSL/Session.py -> build/lib.linux-armv7l-2.7/M2Crypto/SSL copying M2Crypto/SSL/Cipher.py -> build/lib.linux-armv7l-2.7/M2Crypto/SSL copying M2Crypto/SSL/Connection.py -> build/lib.linux-armv7l-2.7/M2Crypto/SSL copying M2Crypto/SSL/SSLServer.py -> build/lib.linux-armv7l-2.7/M2Crypto/SSL copying M2Crypto/SSL/Context.py -> build/lib.linux-armv7l-2.7/M2Crypto/SSL copying M2Crypto/SSL/ssl_dispatcher.py -> build/lib.linux-armv7l-2.7/M2Crypto/SSL copying M2Crypto/SSL/__init__.py -> build/lib.linux-armv7l-2.7/M2Crypto/SSL copying M2Crypto/SSL/TwistedProtocolWrapper.py -> build/lib.linux-armv7l-2.7/M2Crypto/SSL creating build/lib.linux-armv7l-2.7/M2Crypto/PGP copying M2Crypto/PGP/constants.py -> build/lib.linux-armv7l-2.7/M2Crypto/PGP copying M2Crypto/PGP/RSA.py -> build/lib.linux-armv7l-2.7/M2Crypto/PGP copying M2Crypto/PGP/packet.py -> build/lib.linux-armv7l-2.7/M2Crypto/PGP copying M2Crypto/PGP/PublicKeyRing.py -> build/lib.linux-armv7l-2.7/M2Crypto/PGP copying M2Crypto/PGP/PublicKey.py -> build/lib.linux-armv7l-2.7/M2Crypto/PGP copying M2Crypto/PGP/__init__.py -> build/lib.linux-armv7l-2.7/M2Crypto/PGP running build_ext building 'M2Crypto.__m2crypto' extension swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c swig -python -I/usr/include/python2.7 -I/usr/include -includeall -modern -builtin -outdir build/lib.linux-armv7l-2.7/M2Crypto -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i SWIG/_ssl.i:820: Error: Syntax error in input(1). error: command 'swig' failed with exit status 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.b71rH2 (%build) Bad exit status from /var/tmp/rpm-tmp.b71rH2 (%build) Child return code was: 1 EXCEPTION: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target armv6hl --nodeps --define '__spec_check_template exit 0; ' /builddir/build/SPECS/m2crypto.spec Traceback (most recent call last): File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace result = func(*args, **kw) File "/usr/lib/python3.4/site-packages/mockbuild/util.py", line 526, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) mockbuild.exception.Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target armv6hl --nodeps --define '__spec_check_template exit 0; ' /builddir/build/SPECS/m2crypto.spec LEAVE do --> EXCEPTION RAISED