D: [iurt_root_command] chroot Installing /home/iurt/rpmbuild/SRPMS/perl-Inline-Python-0.560.0-12.mga9.src.rpm Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.YsqI2w + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD + rm -rf Inline-Python-0.56 + /usr/bin/gzip -dc /home/iurt/rpmbuild/SOURCES/Inline-Python-0.56.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd Inline-Python-0.56 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /home/iurt/rpmbuild/SOURCES/Inline-Python-0.56-Use-python3.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.BbaNt6 + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd Inline-Python-0.56 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/perl Makefile.PL INSTALLDIRS=vendor 'OPTIMIZE=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' NO_PACKLIST=1 Found these python executables on your PATH: 1. /usr/bin/python3 Using the only python executable I could find Set the INLINE_PYTHON_EXECUTABLE environment variable to the full path to your python executable to override this selection. Using /usr/bin/python3 This python's configuration files are messed up. You'll have have to answer the questions yourself. Here is what Python said: Extra Libs: -lcrypt -lintl -lpthread -ldl -lutil -lm Python Library: /usr/lib64/python3.9/config-3.9-aarch64-linux-gnu/libpython3.9.a Include Path: /usr/include/python3.9 1. LIBS option. I need to know what extra libraries, if any, are required by this build of python. I recommend this: -lcrypt -lintl -lpthread -ldl -lutil -lm Enter extra libraries (e.g. -lfoo -lbar) [-lcrypt -lintl -lpthread -ldl -lutil -lm] -lcrypt -lintl -lpthread -ldl -lutil -lm 2. LIBRARY option. The location of the python library. Inline::Python needs to link against it to use Python. Here are the libraries I know about: 1) /usr/lib64/libpython3.9.so 2) /usr/lib64/libpython3.so Which? Or enter another. [1] 1 3. INCLUDE option. The location of the python include files. Inline::Python needs these to compile. Here are the locations I know about: 1) /usr/include/python3.9 Which? Or enter another. [1] 1 Using These Settings: Extra Libs: -lcrypt -lintl -lpthread -ldl -lutil -lm Python Lib: -L/usr/lib64 -lpython3.9 Includes: -I/usr/include/python3.9 Extra Flags: none (perl Makefile.PL --help for details) Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Inline::Python Writing MYMETA.yml and MYMETA.json + /usr/bin/make -O -j4 V=1 VERBOSE=1 aarch64-mageia-linux-gnu-gcc -c -I/usr/include/python3.9 -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fwrapv -fno-strict-aliasing -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DVERSION=\"0.56\" -DXS_VERSION=\"0.56\" -fPIC "-I/usr/lib64/perl5/CORE" -DEXPOSE_PERL -DCREATE_PYTHON -UCREATE_PERL py2pl.c /bin/sh: line 1: aarch64-mageia-linux-gnu-gcc: command not found make: *** [Makefile:353: py2pl.o] Error 127 make: *** Waiting for unfinished jobs.... Running Mkbootstrap for Python () chmod 644 "Python.bs" cp Python.pod blib/lib/Inline/Python.pod cp Python.pm blib/lib/Inline/Python.pm "/usr/bin/perl5.32.1" "/usr/share/perl5/ExtUtils/xsubpp" -typemap '/usr/share/perl5/ExtUtils/typemap' Python.xs > Python.xsc mv Python.xsc Python.c error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.BbaNt6 (%build) RPM build errors: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.BbaNt6 (%build) I: [iurt_root_command] ERROR: chroot