D: [iurt_root_command] chroot Installing /home/iurt/rpmbuild/SRPMS/python-empy-3.3.4-2.mga8.src.rpm Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.k4bNB5 + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD + rm -rf empy-3.3.4 + /usr/bin/gzip -dc /home/iurt/rpmbuild/SOURCES/empy-3.3.4.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd empy-3.3.4 + /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/iurt/rpmbuild/tmp/rpm-tmp.KkgEj4 + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd empy-3.3.4 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + 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' running build running build_py creating build creating build/lib copying em.py -> build/lib + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.Cbzdx3 + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' /home/iurt/rpmbuild/BUILDROOT/python-empy-3.3.4-2.mga8.aarch64 '!=' / ']' + rm -rf /home/iurt/rpmbuild/BUILDROOT/python-empy-3.3.4-2.mga8.aarch64 ++ dirname /home/iurt/rpmbuild/BUILDROOT/python-empy-3.3.4-2.mga8.aarch64 + mkdir -p /home/iurt/rpmbuild/BUILDROOT + mkdir /home/iurt/rpmbuild/BUILDROOT/python-empy-3.3.4-2.mga8.aarch64 + cd empy-3.3.4 + '[' 1 -eq 1 ']' + 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 install -O1 --skip-build --root /home/iurt/rpmbuild/BUILDROOT/python-empy-3.3.4-2.mga8.aarch64 running install running install_lib creating /home/iurt/rpmbuild/BUILDROOT/python-empy-3.3.4-2.mga8.aarch64/usr creating /home/iurt/rpmbuild/BUILDROOT/python-empy-3.3.4-2.mga8.aarch64/usr/lib creating /home/iurt/rpmbuild/BUILDROOT/python-empy-3.3.4-2.mga8.aarch64/usr/lib/python3.8 creating /home/iurt/rpmbuild/BUILDROOT/python-empy-3.3.4-2.mga8.aarch64/usr/lib/python3.8/site-packages copying build/lib/em.py -> /home/iurt/rpmbuild/BUILDROOT/python-empy-3.3.4-2.mga8.aarch64/usr/lib/python3.8/site-packages byte-compiling /home/iurt/rpmbuild/BUILDROOT/python-empy-3.3.4-2.mga8.aarch64/usr/lib/python3.8/site-packages/em.py to em.cpython-38.pyc writing byte-compilation script '/tmp/tmp_x3i1jyj.py' /usr/bin/python3 /tmp/tmp_x3i1jyj.py removing /tmp/tmp_x3i1jyj.py running install_egg_info Writing /home/iurt/rpmbuild/BUILDROOT/python-empy-3.3.4-2.mga8.aarch64/usr/lib/python3.8/site-packages/empy-3.3.4-py3.8.egg-info + mkdir -p /home/iurt/rpmbuild/BUILDROOT/python-empy-3.3.4-2.mga8.aarch64/usr/bin + mv /home/iurt/rpmbuild/BUILDROOT/python-empy-3.3.4-2.mga8.aarch64/usr/lib/python3.8/site-packages/em.py /home/iurt/rpmbuild/BUILDROOT/python-empy-3.3.4-2.mga8.aarch64/usr/bin/empy3 + ln -s empy3 /home/iurt/rpmbuild/BUILDROOT/python-empy-3.3.4-2.mga8.aarch64/usr/bin/empy + chmod 755 /home/iurt/rpmbuild/BUILDROOT/python-empy-3.3.4-2.mga8.aarch64/usr/bin/empy3 + /usr/lib/rpm/find-debuginfo.sh -j16 --strict-build-id -m -i --build-id-seed 3.3.4-2.mga8 --unique-debug-suffix -3.3.4-2.mga8.aarch64 --unique-debug-src-base python-empy-3.3.4-2.mga8.aarch64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /home/iurt/rpmbuild/BUILD/empy-3.3.4 + '[' -n '' ']' + /usr/share/spec-helper/clean_files + '[' -n '' ']' + /usr/share/spec-helper/compress_files .xz + '[' -n '' ']' + /usr/share/spec-helper/relink_symlinks + '[' -n '' ']' + /usr/share/spec-helper/clean_perl + '[' -n '' ']' + /usr/share/spec-helper/lib_symlinks + '[' -n '' ']' + /usr/share/spec-helper/gprintify + '[' -n '' ']' + /usr/share/spec-helper/fix_mo + '[' -n '' ']' + /usr/share/spec-helper/translate_menu + '[' -n '' ']' + /usr/share/spec-helper/fix_pamd + '[' -n '' ']' + /usr/share/spec-helper/remove_info_dir + '[' -n '' ']' + /usr/share/spec-helper/fix_eol + '[' -n '' ']' + /usr/share/spec-helper/check_desktop_files + '[' -n '' ']' + /usr/share/spec-helper/check_elf_files + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 1 Bytecompiling .py files below /home/iurt/rpmbuild/BUILDROOT/python-empy-3.3.4-2.mga8.aarch64/usr/lib/python3.8 using /usr/bin/python3.8 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs *** ERROR: ambiguous python shebang in /usr/bin/empy3: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.Cbzdx3 (%install) RPM build errors: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.Cbzdx3 (%install) I: [iurt_root_command] ERROR: chroot