Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.rjreAT + umask 022 + cd /home/zsun/rpmbuild/BUILD + cd /home/zsun/rpmbuild/BUILD + rm -rf pycairo-1.10.0 + /usr/bin/bzip2 -dc /home/zsun/rpmbuild/SOURCES/pycairo-1.10.0.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd pycairo-1.10.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/python3 ./waf --version ./options() waf 1.6.4 (11066) + echo 'Patch #0 (cairo-waf-use-python-config-as-shell-script.patch):' Patch #0 (cairo-waf-use-python-config-as-shell-script.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file .waf3-1.6.4-e3c1e08604b18a10567cfcd2d02eb6e6/waflib/Tools/python.py + echo 'Patch #1 (pycairo-1.10.0-test-python3.patch):' Patch #1 (pycairo-1.10.0-test-python3.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file test/examples_test.py + echo 'Patch #2 (101_pycairo-region.patch):' Patch #2 (101_pycairo-region.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file doc/pycairo_c_api.rst patching file doc/reference/index.rst patching file doc/reference/region.rst patching file src/region.c patching file src/py3cairo.h patching file src/cairomodule.c patching file src/wscript patching file src/private.h patching file test/api_test.py + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.VkNiVe + umask 022 + cd /home/zsun/rpmbuild/BUILD + cd pycairo-1.10.0 + export '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 -m64 -mtune=generic' + 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 -m64 -mtune=generic' + export PYTHON=python3 + PYTHON=python3 + /usr/bin/python3 ./waf --prefix=/usr --libdir=/usr/lib64 configure Setting top to : /home/zsun/rpmbuild/BUILD/pycairo-1.10.0 Setting out to : /home/zsun/rpmbuild/BUILD/pycairo-1.10.0/build_directory Checking for 'gcc' (c compiler) : ok Checking for program python : python3 python executable 'python3' different from sys.executable '/usr/bin/python3' Checking for python version : (3, 6, 2, 'final', 0) Checking for library python3.6 in LIBDIR : ./options() ./configure() Traceback (most recent call last): File "/home/zsun/rpmbuild/BUILD/pycairo-1.10.0/.waf3-1.6.4-e3c1e08604b18a10567cfcd2d02eb6e6/waflib/Scripting.py", line 93, in waf_entry_point run_commands() File "/home/zsun/rpmbuild/BUILD/pycairo-1.10.0/.waf3-1.6.4-e3c1e08604b18a10567cfcd2d02eb6e6/waflib/Scripting.py", line 145, in run_commands run_command(cmd_name) File "/home/zsun/rpmbuild/BUILD/pycairo-1.10.0/.waf3-1.6.4-e3c1e08604b18a10567cfcd2d02eb6e6/waflib/Scripting.py", line 138, in run_command ctx.execute() File "/home/zsun/rpmbuild/BUILD/pycairo-1.10.0/.waf3-1.6.4-e3c1e08604b18a10567cfcd2d02eb6e6/waflib/Configure.py", line 124, in execute super(ConfigurationContext,self).execute() File "/home/zsun/rpmbuild/BUILD/pycairo-1.10.0/.waf3-1.6.4-e3c1e08604b18a10567cfcd2d02eb6e6/waflib/Context.py", line 87, in execute self.recurse([os.path.dirname(g_module.root_path)]) File "/home/zsun/rpmbuild/BUILD/pycairo-1.10.0/.waf3-1.6.4-e3c1e08604b18a10567cfcd2d02eb6e6/waflib/Context.py", line 127, in recurse user_function(self) File "/home/zsun/rpmbuild/BUILD/pycairo-1.10.0/wscript", line 29, in configure ctx.check_python_headers() File "/home/zsun/rpmbuild/BUILD/pycairo-1.10.0/.waf3-1.6.4-e3c1e08604b18a10567cfcd2d02eb6e6/waflib/Configure.py", line 217, in fun return f(*k,**kw) File "/home/zsun/rpmbuild/BUILD/pycairo-1.10.0/.waf3-1.6.4-e3c1e08604b18a10567cfcd2d02eb6e6/waflib/Tools/python.py", line 146, in check_python_headers result=conf.check(lib=name,uselib='PYEMBED',libpath=path,mandatory=False,msg='Checking for library %s in LIBDIR'%name) File "/home/zsun/rpmbuild/BUILD/pycairo-1.10.0/.waf3-1.6.4-e3c1e08604b18a10567cfcd2d02eb6e6/waflib/Configure.py", line 217, in fun return f(*k,**kw) File "/home/zsun/rpmbuild/BUILD/pycairo-1.10.0/.waf3-1.6.4-e3c1e08604b18a10567cfcd2d02eb6e6/waflib/Tools/c_config.py", line 357, in check ret=self.run_c_code(*k,**kw) File "/home/zsun/rpmbuild/BUILD/pycairo-1.10.0/.waf3-1.6.4-e3c1e08604b18a10567cfcd2d02eb6e6/waflib/Configure.py", line 217, in fun return f(*k,**kw) File "/home/zsun/rpmbuild/BUILD/pycairo-1.10.0/.waf3-1.6.4-e3c1e08604b18a10567cfcd2d02eb6e6/waflib/Tools/c_config.py", line 435, in run_c_code bld.compile() File "/home/zsun/rpmbuild/BUILD/pycairo-1.10.0/.waf3-1.6.4-e3c1e08604b18a10567cfcd2d02eb6e6/waflib/Build.py", line 190, in compile self.store() File "/home/zsun/rpmbuild/BUILD/pycairo-1.10.0/.waf3-1.6.4-e3c1e08604b18a10567cfcd2d02eb6e6/waflib/Utils.py", line 300, in f ret=fun(*k,**kw) File "/home/zsun/rpmbuild/BUILD/pycairo-1.10.0/.waf3-1.6.4-e3c1e08604b18a10567cfcd2d02eb6e6/waflib/Build.py", line 164, in store cPickle.dump(data,f) AttributeError: Can't pickle local object 'Context.__init__..node_class' error: Bad exit status from /var/tmp/rpm-tmp.VkNiVe (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.VkNiVe (%build)