D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/gapi-ocaml-0.3.3-2.mga7.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.z1p6DP + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf gapi-ocaml-0.3.3 + /usr/bin/gzip -dc /home/pterjan/rpmbuild/SOURCES/gapi-ocaml-0.3.3.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd gapi-ocaml-0.3.3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo ' true: debug' + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.GMg7lJ + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd gapi-ocaml-0.3.3 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + ocaml setup.ml -configure --enable-examples W: Not_found W: Not_found W: Not_found W: Not_found W: Not_found W: Not_found E: Cannot find external tool 'ocamlbuild' E: Failure("1 configuration error") error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.GMg7lJ (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.GMg7lJ (%build) I: [iurt_root_command] ERROR: chroot