D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/python-gmpy2-2.0.8-7.mga9.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.a94Rfe + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf gmpy2-2.0.8 + /usr/bin/unzip -qq /home/pterjan/rpmbuild/SOURCES/gmpy2-2.0.8.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd gmpy2-2.0.8 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.rlwlq1 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd gmpy2-2.0.8 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + find -name .svn + xargs rm -rf + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' /home/pterjan/rpmbuild/BUILD/gmpy2-2.0.8/setup.py:3: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.core import setup, Extension running build running build_ext building 'gmpy2' extension creating build creating build/temp.linux-x86_64-3.10 creating build/temp.linux-x86_64-3.10/src gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -DWITHMPFR -DWITHMPC -I/usr/include/python3.10 -c src/gmpy2.c -o build/temp.linux-x86_64-3.10/src/gmpy2.o In file included from src/gmpy2.c:426: src/gmpy.h:226: warning: "Py_RETURN_NOTIMPLEMENTED" redefined 226 | #define Py_RETURN_NOTIMPLEMENTED\ | In file included from /usr/include/python3.10/Python.h:74, from src/gmpy2.c:404: /usr/include/python3.10/object.h:623: note: this is the location of the previous definition 623 | #define Py_RETURN_NOTIMPLEMENTED return Py_NewRef(Py_NotImplemented) | In file included from src/gmpy2.c:509: src/mpz_pylong.c: In function 'mpn_pythonhash': src/mpz_pylong.c:225:19: warning: comparison of integer expressions of different signedness: 'ssize_t' {aka 'long int'} and 'long unsigned int' [-Wsign-compare] 225 | if (bit_pos <= 8*sizeof(mp_limb_t)) | ^~ In file included from src/gmpy2.c:517: src/gmpy_convert.c: In function 'Pympc_From_PyStr': src/gmpy_convert.c:2526:20: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'Py_ssize_t' {aka 'long int'} [-Wsign-compare] 2526 | if (strlen(cp) != len) { | ^~ In file included from src/gmpy2.c:529: src/gmpy_random.c: In function 'GMPY_mpfr_grandom': src/gmpy_random.c:251:5: warning: 'mpfr_grandom' is deprecated [-Wdeprecated-declarations] 251 | mpfr_grandom(Pympfr_AS_MPFR(result1), Pympfr_AS_MPFR(result2), | ^~~~~~~~~~~~ In file included from src/gmpy.h:252: /usr/include/mpfr.h:535:21: note: declared here 535 | __MPFR_DECLSPEC int mpfr_grandom (mpfr_ptr, mpfr_ptr, gmp_randstate_t, | ^~~~~~~~~~~~ In file included from src/gmpy2.c:541: src/gmpy_mpmath.c: In function 'Pympz_mpmath_normalize': src/gmpy_mpmath.c:103:9: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations] 103 | rnd = Py2or3String_AsString(rndstr)[0]; | ^~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83: /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ src/gmpy_mpmath.c:160:53: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'mpir_si' {aka 'long int'} [-Wsign-compare] 160 | if (mpz_sizeinbase(lower->z, 2) == shift) { | ^~ src/gmpy_mpmath.c:162:52: warning: comparison of integer expressions of different signedness: 'mp_bitcnt_t' {aka 'long unsigned int'} and 'mpir_si' {aka 'long int'} [-Wsign-compare] 162 | if (mpz_scan1(lower->z, 0) == shift-1) { | ^~ src/gmpy_mpmath.c: In function 'Pympz_mpmath_create': src/gmpy_mpmath.c:246:13: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations] 246 | rnd = Py2or3String_AsString(PyTuple_GET_ITEM(args, 3)); | ^~~ /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ src/gmpy_mpmath.c:314:52: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'mpir_si' {aka 'long int'} [-Wsign-compare] 314 | if (mpz_sizeinbase(lower->z, 2)==shift) { | ^~ src/gmpy_mpmath.c:316:51: warning: comparison of integer expressions of different signedness: 'mp_bitcnt_t' {aka 'long unsigned int'} and 'mpir_si' {aka 'long int'} [-Wsign-compare] 316 | if (mpz_scan1(lower->z, 0)==shift-1) { | ^~ In file included from src/gmpy2.c:555: src/gmpy_mpfr.c: In function '_mpfr_hash': src/gmpy_mpfr.c:756:20: error: '_PyHASH_NAN' undeclared (first use in this function); did you mean 'Py_IS_NAN'? 756 | return _PyHASH_NAN; | ^~~~~~~~~~~ | Py_IS_NAN src/gmpy_mpfr.c:756:20: note: each undeclared identifier is reported only once for each function it appears in src/gmpy_mpfr.c: In function 'Pympfr_root': src/gmpy_mpfr.c:988:5: warning: 'mpfr_root' is deprecated [-Wdeprecated-declarations] 988 | result->rc = mpfr_root(result->f, Pympfr_AS_MPFR(self), n, | ^~~~~~ /usr/include/mpfr.h:727:21: note: declared here 727 | __MPFR_DECLSPEC int mpfr_root (mpfr_ptr, mpfr_srcptr, unsigned long, | ^~~~~~~~~ error: command '/usr/bin/gcc' failed with exit code 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.rlwlq1 (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.rlwlq1 (%build) I: [iurt_root_command] ERROR: chroot