Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-functional.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-x86_64-1684149831.707498/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': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-functional.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': 'C.UTF-8'} and shell False /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-functional-0.7.0-1.src.rpm Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-functional.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-x86_64-1684149831.707498/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': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-functional.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': 'C.UTF-8'} and shell False /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-functional-0.7.0-1.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-functional.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-x86_64-1684149831.707498/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': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-functional.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': 'C.UTF-8'} and shell False /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.L5TZ3l + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf functional-0.7.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/functional-C-0.7.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd functional-0.7.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.eiBHKF + umask 022 + cd /builddir/build/BUILD + cd functional-0.7.0 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection ' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_ext building 'functional' extension creating build creating build/temp.linux-x86_64-3.9 gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -D_GNU_SOURCE -fPIC -fwrapv -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.9 -c functionalmodule.c -o build/temp.linux-x86_64-3.9/functionalmodule.o functionalmodule.c: In function ‘partial_dealloc’: functionalmodule.c:120:5: error: ‘partialobject’ has no member named ‘ob_type’ 120 | pto->ob_type->tp_free(pto); | ^~ functionalmodule.c: At top level: functionalmodule.c:235:36: warning: missing braces around initializer [-Wmissing-braces] 235 | static PyTypeObject partial_type = { | ^ functionalmodule.c:238:2: warning: initialization of ‘long int’ from ‘char *’ makes integer from pointer without a cast [-Wint-conversion] 238 | "functional.partial", /* tp_name */ | ^~~~~~~~~~~~~~~~~~~~ functionalmodule.c:238:2: note: (near initialization for ‘partial_type.tp_basicsize’) functionalmodule.c:242:2: warning: initialization of ‘long int’ from ‘void (*)(PyObject *)’ {aka ‘void (*)(struct _object *)’} makes integer from pointer without a cast [-Wint-conversion] 242 | (destructor)partial_dealloc, /* tp_dealloc */ | ^ functionalmodule.c:242:2: note: (near initialization for ‘partial_type.tp_vectorcall_offset’) functionalmodule.c:252:2: warning: initialization of ‘PyObject * (*)(PyObject *)’ {aka ‘struct _object * (*)(struct _object *)’} from incompatible pointer type ‘PyObject * (*)(PyObject *, PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *, struct _object *)’} [-Wincompatible-pointer-types] 252 | (ternaryfunc)partial_call, /* tp_call */ | ^ functionalmodule.c:252:2: note: (near initialization for ‘partial_type.tp_str’) functionalmodule.c:254:2: warning: initialization of ‘int (*)(PyObject *, PyObject *, PyObject *)’ {aka ‘int (*)(struct _object *, struct _object *, struct _object *)’} from incompatible pointer type ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’} [-Wincompatible-pointer-types] 254 | PyObject_GenericGetAttr, /* tp_getattro */ | ^~~~~~~~~~~~~~~~~~~~~~~ functionalmodule.c:254:2: note: (near initialization for ‘partial_type.tp_setattro’) functionalmodule.c:255:2: warning: initialization of ‘PyBufferProcs *’ from incompatible pointer type ‘int (*)(PyObject *, PyObject *, PyObject *)’ {aka ‘int (*)(struct _object *, struct _object *, struct _object *)’} [-Wincompatible-pointer-types] 255 | PyObject_GenericSetAttr, /* tp_setattro */ | ^~~~~~~~~~~~~~~~~~~~~~~ functionalmodule.c:255:2: note: (near initialization for ‘partial_type.tp_as_buffer’) functionalmodule.c:258:25: error: ‘Py_TPFLAGS_HAVE_WEAKREFS’ undeclared here (not in a function); did you mean ‘Py_TPFLAGS_HAVE_GC’? 258 | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_WEAKREFS, /* tp_flags */ | ^~~~~~~~~~~~~~~~~~~~~~~~ | Py_TPFLAGS_HAVE_GC functionalmodule.c:259:2: warning: initialization of ‘int (*)(PyObject *, int (*)(PyObject *, void *), void *)’ {aka ‘int (*)(struct _object *, int (*)(struct _object *, void *), void *)’} from incompatible pointer type ‘const char *’ [-Wincompatible-pointer-types] 259 | partial_doc, /* tp_doc */ | ^~~~~~~~~~~ functionalmodule.c:259:2: note: (near initialization for ‘partial_type.tp_traverse’) functionalmodule.c:260:2: warning: initialization of ‘int (*)(PyObject *)’ {aka ‘int (*)(struct _object *)’} from incompatible pointer type ‘int (*)(PyObject *, int (*)(PyObject *, void *), void *)’ {aka ‘int (*)(struct _object *, int (*)(struct _object *, void *), void *)’} [-Wincompatible-pointer-types] 260 | (traverseproc)partial_traverse, /* tp_traverse */ | ^ functionalmodule.c:260:2: note: (near initialization for ‘partial_type.tp_clear’) functionalmodule.c:263:2: warning: initialization of ‘PyObject * (*)(PyObject *)’ {aka ‘struct _object * (*)(struct _object *)’} from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion] 263 | offsetof(partialobject, weakreflist), /* tp_weaklistoffset */ | ^~~~~~~~ functionalmodule.c:263:2: note: (near initialization for ‘partial_type.tp_iter’) functionalmodule.c:267:2: warning: initialization of ‘struct PyGetSetDef *’ from incompatible pointer type ‘PyMemberDef *’ [-Wincompatible-pointer-types] 267 | partial_memberlist, /* tp_members */ | ^~~~~~~~~~~~~~~~~~ functionalmodule.c:267:2: note: (near initialization for ‘partial_type.tp_getset’) functionalmodule.c:268:2: warning: initialization of ‘struct _typeobject *’ from incompatible pointer type ‘PyGetSetDef *’ [-Wincompatible-pointer-types] 268 | partial_getsetlist, /* tp_getset */ | ^~~~~~~~~~~~~~~~~~ functionalmodule.c:268:2: note: (near initialization for ‘partial_type.tp_base’) functionalmodule.c:273:2: warning: initialization of ‘int (*)(PyObject *, PyObject *, PyObject *)’ {aka ‘int (*)(struct _object *, struct _object *, struct _object *)’} from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion] 273 | offsetof(partialobject, dict), /* tp_dictoffset */ | ^~~~~~~~ functionalmodule.c:273:2: note: (near initialization for ‘partial_type.tp_init’) functionalmodule.c:276:2: warning: initialization of ‘void (*)(void *)’ from incompatible pointer type ‘PyObject * (*)(PyTypeObject *, PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _typeobject *, struct _object *, struct _object *)’} [-Wincompatible-pointer-types] 276 | partial_new, /* tp_new */ | ^~~~~~~~~~~ functionalmodule.c:276:2: note: (near initialization for ‘partial_type.tp_free’) functionalmodule.c:277:2: warning: initialization of ‘int (*)(PyObject *)’ {aka ‘int (*)(struct _object *)’} from incompatible pointer type ‘void (*)(void *)’ [-Wincompatible-pointer-types] 277 | PyObject_GC_Del, /* tp_free */ | ^~~~~~~~~~~~~~~ functionalmodule.c:277:2: note: (near initialization for ‘partial_type.tp_is_gc’) functionalmodule.c:235:36: warning: missing braces around initializer [-Wmissing-braces] 235 | static PyTypeObject partial_type = { | ^ functionalmodule.c: In function ‘compose_new’: functionalmodule.c:637:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 637 | if(!PyArg_ParseTupleAndKeywords(args, kw, "OO|O", kwlist, | ^~ functionalmodule.c:641:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 641 | if (!PyCallable_Check(outer_func)) { | ^~ functionalmodule.c: In function ‘compose_dealloc’: functionalmodule.c:726:7: error: ‘composeobject’ has no member named ‘ob_type’ 726 | compo->ob_type->tp_free(compo); | ^~ functionalmodule.c: At top level: functionalmodule.c:729:36: warning: missing braces around initializer [-Wmissing-braces] 729 | static PyTypeObject compose_type = { | ^ functionalmodule.c:732:2: warning: initialization of ‘long int’ from ‘char *’ makes integer from pointer without a cast [-Wint-conversion] 732 | "functional.compose", /* tp_name */ | ^~~~~~~~~~~~~~~~~~~~ functionalmodule.c:732:2: note: (near initialization for ‘compose_type.tp_basicsize’) functionalmodule.c:736:2: warning: initialization of ‘long int’ from ‘void (*)(PyObject *)’ {aka ‘void (*)(struct _object *)’} makes integer from pointer without a cast [-Wint-conversion] 736 | (destructor)compose_dealloc, /* tp_dealloc */ | ^ functionalmodule.c:736:2: note: (near initialization for ‘compose_type.tp_vectorcall_offset’) functionalmodule.c:746:2: warning: initialization of ‘PyObject * (*)(PyObject *)’ {aka ‘struct _object * (*)(struct _object *)’} from incompatible pointer type ‘PyObject * (*)(PyObject *, PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *, struct _object *)’} [-Wincompatible-pointer-types] 746 | (ternaryfunc)compose_call, /* tp_call */ | ^ functionalmodule.c:746:2: note: (near initialization for ‘compose_type.tp_str’) functionalmodule.c:748:2: warning: initialization of ‘int (*)(PyObject *, PyObject *, PyObject *)’ {aka ‘int (*)(struct _object *, struct _object *, struct _object *)’} from incompatible pointer type ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’} [-Wincompatible-pointer-types] 748 | PyObject_GenericGetAttr, /* tp_getattro */ | ^~~~~~~~~~~~~~~~~~~~~~~ functionalmodule.c:748:2: note: (near initialization for ‘compose_type.tp_setattro’) functionalmodule.c:749:2: warning: initialization of ‘PyBufferProcs *’ from incompatible pointer type ‘int (*)(PyObject *, PyObject *, PyObject *)’ {aka ‘int (*)(struct _object *, struct _object *, struct _object *)’} [-Wincompatible-pointer-types] 749 | PyObject_GenericSetAttr, /* tp_setattro */ | ^~~~~~~~~~~~~~~~~~~~~~~ functionalmodule.c:749:2: note: (near initialization for ‘compose_type.tp_as_buffer’) functionalmodule.c:753:2: warning: initialization of ‘int (*)(PyObject *, int (*)(PyObject *, void *), void *)’ {aka ‘int (*)(struct _object *, int (*)(struct _object *, void *), void *)’} from incompatible pointer type ‘const char *’ [-Wincompatible-pointer-types] 753 | compose_doc, /* tp_doc */ | ^~~~~~~~~~~ functionalmodule.c:753:2: note: (near initialization for ‘compose_type.tp_traverse’) functionalmodule.c:754:2: warning: initialization of ‘int (*)(PyObject *)’ {aka ‘int (*)(struct _object *)’} from incompatible pointer type ‘int (*)(PyObject *, int (*)(PyObject *, void *), void *)’ {aka ‘int (*)(struct _object *, int (*)(struct _object *, void *), void *)’} [-Wincompatible-pointer-types] 754 | (traverseproc)compose_traverse, /* tp_traverse */ | ^ functionalmodule.c:754:2: note: (near initialization for ‘compose_type.tp_clear’) functionalmodule.c:757:2: warning: initialization of ‘PyObject * (*)(PyObject *)’ {aka ‘struct _object * (*)(struct _object *)’} from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion] 757 | offsetof(composeobject, weakreflist), /* tp_weaklistoffset */ | ^~~~~~~~ functionalmodule.c:757:2: note: (near initialization for ‘compose_type.tp_iter’) functionalmodule.c:770:2: warning: initialization of ‘void (*)(void *)’ from incompatible pointer type ‘PyObject * (*)(PyTypeObject *, PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _typeobject *, struct _object *, struct _object *)’} [-Wincompatible-pointer-types] 770 | compose_new, /* tp_new */ | ^~~~~~~~~~~ functionalmodule.c:770:2: note: (near initialization for ‘compose_type.tp_free’) functionalmodule.c:771:2: warning: initialization of ‘int (*)(PyObject *)’ {aka ‘int (*)(struct _object *)’} from incompatible pointer type ‘void (*)(void *)’ [-Wincompatible-pointer-types] 771 | PyObject_GC_Del, /* tp_free */ | ^~~~~~~~~~~~~~~ functionalmodule.c:771:2: note: (near initialization for ‘compose_type.tp_is_gc’) functionalmodule.c:729:36: warning: missing braces around initializer [-Wmissing-braces] 729 | static PyTypeObject compose_type = { | ^ functionalmodule.c: In function ‘flip_dealloc’: functionalmodule.c:858:7: error: ‘flipobject’ has no member named ‘ob_type’ 858 | flipo->ob_type->tp_free(flipo); | ^~ functionalmodule.c: At top level: functionalmodule.c:861:33: warning: missing braces around initializer [-Wmissing-braces] 861 | static PyTypeObject flip_type = { | ^ functionalmodule.c:864:2: warning: initialization of ‘long int’ from ‘char *’ makes integer from pointer without a cast [-Wint-conversion] 864 | "functional.flip", /* tp_name */ | ^~~~~~~~~~~~~~~~~ functionalmodule.c:864:2: note: (near initialization for ‘flip_type.tp_basicsize’) functionalmodule.c:868:2: warning: initialization of ‘long int’ from ‘void (*)(PyObject *)’ {aka ‘void (*)(struct _object *)’} makes integer from pointer without a cast [-Wint-conversion] 868 | (destructor)flip_dealloc, /* tp_dealloc */ | ^ functionalmodule.c:868:2: note: (near initialization for ‘flip_type.tp_vectorcall_offset’) functionalmodule.c:878:2: warning: initialization of ‘PyObject * (*)(PyObject *)’ {aka ‘struct _object * (*)(struct _object *)’} from incompatible pointer type ‘PyObject * (*)(PyObject *, PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *, struct _object *)’} [-Wincompatible-pointer-types] 878 | (ternaryfunc)flip_call, /* tp_call */ | ^ functionalmodule.c:878:2: note: (near initialization for ‘flip_type.tp_str’) functionalmodule.c:880:2: warning: initialization of ‘int (*)(PyObject *, PyObject *, PyObject *)’ {aka ‘int (*)(struct _object *, struct _object *, struct _object *)’} from incompatible pointer type ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’} [-Wincompatible-pointer-types] 880 | PyObject_GenericGetAttr, /* tp_getattro */ | ^~~~~~~~~~~~~~~~~~~~~~~ functionalmodule.c:880:2: note: (near initialization for ‘flip_type.tp_setattro’) functionalmodule.c:881:2: warning: initialization of ‘PyBufferProcs *’ from incompatible pointer type ‘int (*)(PyObject *, PyObject *, PyObject *)’ {aka ‘int (*)(struct _object *, struct _object *, struct _object *)’} [-Wincompatible-pointer-types] 881 | PyObject_GenericSetAttr, /* tp_setattro */ | ^~~~~~~~~~~~~~~~~~~~~~~ functionalmodule.c:881:2: note: (near initialization for ‘flip_type.tp_as_buffer’) functionalmodule.c:885:2: warning: initialization of ‘int (*)(PyObject *, int (*)(PyObject *, void *), void *)’ {aka ‘int (*)(struct _object *, int (*)(struct _object *, void *), void *)’} from incompatible pointer type ‘const char *’ [-Wincompatible-pointer-types] 885 | flip_doc, /* tp_doc */ | ^~~~~~~~ functionalmodule.c:885:2: note: (near initialization for ‘flip_type.tp_traverse’) functionalmodule.c:886:2: warning: initialization of ‘int (*)(PyObject *)’ {aka ‘int (*)(struct _object *)’} from incompatible pointer type ‘int (*)(PyObject *, int (*)(PyObject *, void *), void *)’ {aka ‘int (*)(struct _object *, int (*)(struct _object *, void *), void *)’} [-Wincompatible-pointer-types] 886 | (traverseproc)flip_traverse, /* tp_traverse */ | ^ functionalmodule.c:886:2: note: (near initialization for ‘flip_type.tp_clear’) functionalmodule.c:889:2: warning: initialization of ‘PyObject * (*)(PyObject *)’ {aka ‘struct _object * (*)(struct _object *)’} from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion] 889 | offsetof(flipobject, weakreflist), /* tp_weaklistoffset */ | ^~~~~~~~ functionalmodule.c:889:2: note: (near initialization for ‘flip_type.tp_iter’) functionalmodule.c:902:2: warning: initialization of ‘void (*)(void *)’ from incompatible pointer type ‘PyObject * (*)(PyTypeObject *, PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _typeobject *, struct _object *, struct _object *)’} [-Wincompatible-pointer-types] 902 | flip_new, /* tp_new */ | ^~~~~~~~ functionalmodule.c:902:2: note: (near initialization for ‘flip_type.tp_free’) functionalmodule.c:903:2: warning: initialization of ‘int (*)(PyObject *)’ {aka ‘int (*)(struct _object *)’} from incompatible pointer type ‘void (*)(void *)’ [-Wincompatible-pointer-types] 903 | PyObject_GC_Del, /* tp_free */ | ^~~~~~~~~~~~~~~ functionalmodule.c:903:2: note: (near initialization for ‘flip_type.tp_is_gc’) functionalmodule.c:861:33: warning: missing braces around initializer [-Wmissing-braces] 861 | static PyTypeObject flip_type = { | ^ functionalmodule.c: In function ‘initfunctional’: functionalmodule.c:1105:6: warning: implicit declaration of function ‘Py_InitModule3’ [-Wimplicit-function-declaration] 1105 | m = Py_InitModule3("functional", functional_methods, module_doc); | ^~~~~~~~~~~~~~ functionalmodule.c:1105:4: warning: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 1105 | m = Py_InitModule3("functional", functional_methods, module_doc); | ^ functionalmodule.c:1107:3: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1107 | return; | ^~~~~~ functionalmodule.c:1093:1: note: declared here 1093 | initfunctional(void) | ^~~~~~~~~~~~~~ functionalmodule.c:1111:4: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 1111 | return; | ^~~~~~ functionalmodule.c:1093:1: note: declared here 1093 | initfunctional(void) | ^~~~~~~~~~~~~~ error: command '/usr/bin/gcc' failed with exit code 1 error: Bad exit status from /var/tmp/rpm-tmp.eiBHKF (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.eiBHKF (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-functional.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 598, in do_with_status 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 x86_64 --nodeps /builddir/build/SPECS/python-functional.spec