D: [iurt_root_command] chroot Installing /home/iurt/rpmbuild/SRPMS/perl-BSD-Resource-1.291.100-7.mga9.src.rpm Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.g0Xl7n + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD + rm -rf BSD-Resource-1.2911 + /usr/bin/gzip -dc /home/iurt/rpmbuild/SOURCES/BSD-Resource-1.2911.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd BSD-Resource-1.2911 + /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.VlTLjt + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd BSD-Resource-1.2911 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/perl Makefile.PL INSTALLDIRS=vendor Configuring BSD::Resource... Checking whether you have certain header files... Your operating system does not seem to have or . (Run "perl Makefile.PL" with the environment variable VERBOSE set to 1 (one) too see in more detail what went wrong.) There is no way BSD::Resource is going to work. I am awfully sorry but I cannot go further. Aborting configuration of BSD::Resource. error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.VlTLjt (%build) RPM build errors: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.VlTLjt (%build) I: [iurt_root_command] ERROR: chroot