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/python-libasyncns.spec'], chrootPath='/var/lib/mock/f29-build-11332-5145/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/python-libasyncns.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: sh: /usr/bin/python: No such file or directory Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/python-libasyncns-0.7.1-14.fc29.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/python-libasyncns.spec'], chrootPath='/var/lib/mock/f29-build-11332-5145/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/python-libasyncns.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.CeFW9q + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libasyncns-python-0.7.1 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/libasyncns-python-0.7.1.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd libasyncns-python-0.7.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.yIjPvM + umask 022 + cd /builddir/build/BUILD + cd libasyncns-python-0.7.1 + CFLAGS='-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' + /usr/bin/python setup.py build BUILDSTDERR: DEPRECATION WARNING: python2 invoked with /usr/bin/python. BUILDSTDERR: Use /usr/bin/python3 or /usr/bin/python2 BUILDSTDERR: /usr/bin/python will be removed or switched to Python 3 in the future. BUILDSTDERR: If you cannot make the switch now, please follow instructions at https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build#Quick_Opt-Out running build running build_ext building 'libasyncns' extension creating build creating build/temp.linux-riscv64-2.7 gcc -pthread -fno-strict-aliasing -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 -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -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 -D_GNU_SOURCE -fPIC -fwrapv -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/include/python2.7 -c addrinfoquery.c -o build/temp.linux-riscv64-2.7/addrinfoquery.o -Wall -Wextra -Wno-unused BUILDSTDERR: addrinfoquery.c:117:15: warning: cast between incompatible function types from 'PyObject * (*)(AddrInfoQuery *)' {aka 'struct _object * (*)(struct AddrInfoQuery *)'} to 'PyObject * (*)(PyObject *, PyObject *)' {aka 'struct _object * (*)(struct _object *, struct _object *)'} [-Wcast-function-type] BUILDSTDERR: .ml_meth = (PyCFunction)AddrInfoQuery_get_done, BUILDSTDERR: ^ gcc -pthread -fno-strict-aliasing -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 -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -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 -D_GNU_SOURCE -fPIC -fwrapv -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/include/python2.7 -c asyncns.c -o build/temp.linux-riscv64-2.7/asyncns.o -Wall -Wextra -Wno-unused BUILDSTDERR: asyncns.c:459:15: warning: cast between incompatible function types from 'AddrInfoQuery * (*)(Asyncns *, PyObject *, PyObject *)' {aka 'struct AddrInfoQuery * (*)(struct Asyncns *, struct _object *, struct _object *)'} to 'PyObject * (*)(PyObject *, PyObject *)' {aka 'struct _object * (*)(struct _object *, struct _object *)'} [-Wcast-function-type] BUILDSTDERR: .ml_meth = (PyCFunction)Asyncns_getaddrinfo, BUILDSTDERR: ^ BUILDSTDERR: asyncns.c:466:15: warning: cast between incompatible function types from 'NameInfoQuery * (*)(Asyncns *, PyObject *, PyObject *)' {aka 'struct NameInfoQuery * (*)(struct Asyncns *, struct _object *, struct _object *)'} to 'PyObject * (*)(PyObject *, PyObject *)' {aka 'struct _object * (*)(struct _object *, struct _object *)'} [-Wcast-function-type] BUILDSTDERR: .ml_meth = (PyCFunction)Asyncns_getnameinfo, BUILDSTDERR: ^ BUILDSTDERR: asyncns.c:473:15: warning: cast between incompatible function types from 'ResQuery * (*)(Asyncns *, PyObject *, PyObject *)' {aka 'struct ResQuery * (*)(struct Asyncns *, struct _object *, struct _object *)'} to 'PyObject * (*)(PyObject *, PyObject *)' {aka 'struct _object * (*)(struct _object *, struct _object *)'} [-Wcast-function-type] BUILDSTDERR: .ml_meth = (PyCFunction)Asyncns_res_query, BUILDSTDERR: ^ BUILDSTDERR: asyncns.c:480:15: warning: cast between incompatible function types from 'PyObject * (*)(Asyncns *, PyObject *, PyObject *)' {aka 'struct _object * (*)(struct Asyncns *, struct _object *, struct _object *)'} to 'PyObject * (*)(PyObject *, PyObject *)' {aka 'struct _object * (*)(struct _object *, struct _object *)'} [-Wcast-function-type] BUILDSTDERR: .ml_meth = (PyCFunction)Asyncns_wait, BUILDSTDERR: ^ BUILDSTDERR: asyncns.c:489:15: warning: cast between incompatible function types from 'PyObject * (*)(Asyncns *, PyObject *, PyObject *)' {aka 'struct _object * (*)(struct Asyncns *, struct _object *, struct _object *)'} to 'PyObject * (*)(PyObject *, PyObject *)' {aka 'struct _object * (*)(struct _object *, struct _object *)'} [-Wcast-function-type] BUILDSTDERR: .ml_meth = (PyCFunction)Asyncns_get_next, BUILDSTDERR: ^ BUILDSTDERR: asyncns.c:497:15: warning: cast between incompatible function types from 'PyObject * (*)(Asyncns *, PyObject *, PyObject *)' {aka 'struct _object * (*)(struct Asyncns *, struct _object *, struct _object *)'} to 'PyObject * (*)(PyObject *, PyObject *)' {aka 'struct _object * (*)(struct _object *, struct _object *)'} [-Wcast-function-type] BUILDSTDERR: .ml_meth = (PyCFunction)Asyncns_get_nqueries, BUILDSTDERR: ^ BUILDSTDERR: asyncns.c:502:15: warning: cast between incompatible function types from 'PyObject * (*)(Asyncns *, PyObject *, PyObject *)' {aka 'struct _object * (*)(struct Asyncns *, struct _object *, struct _object *)'} to 'PyObject * (*)(PyObject *, PyObject *)' {aka 'struct _object * (*)(struct _object *, struct _object *)'} [-Wcast-function-type] BUILDSTDERR: .ml_meth = (PyCFunction)Asyncns_get_fd, BUILDSTDERR: ^ gcc -pthread -fno-strict-aliasing -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 -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -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 -D_GNU_SOURCE -fPIC -fwrapv -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/include/python2.7 -c libasyncns.c -o build/temp.linux-riscv64-2.7/libasyncns.o -Wall -Wextra -Wno-unused BUILDSTDERR: libasyncns.c: In function 'initlibasyncns': BUILDSTDERR: libasyncns.c:137:13: error: 'ns_t_zxfr' undeclared (first use in this function); did you mean 'ns_t_axfr'? BUILDSTDERR: ADDNSCONST(ns_t_zxfr); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: libasyncns.c:88:78: note: in definition of macro 'ADDNSCONST' BUILDSTDERR: #define ADDNSCONST(const) PyModule_AddIntConstant(libasyncns_module, #const, const) BUILDSTDERR: ^~~~~ BUILDSTDERR: libasyncns.c:137:13: note: each undeclared identifier is reported only once for each function it appears in BUILDSTDERR: ADDNSCONST(ns_t_zxfr); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: libasyncns.c:88:78: note: in definition of macro 'ADDNSCONST' BUILDSTDERR: #define ADDNSCONST(const) PyModule_AddIntConstant(libasyncns_module, #const, const) BUILDSTDERR: ^~~~~ BUILDSTDERR: error: command 'gcc' failed with exit status 1 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.yIjPvM (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.yIjPvM (%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/python-libasyncns.spec