D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/mysqludf_json-0.0.2-7.mga7.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.oInBGo + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf lib_mysqludf_json-master + /usr/bin/unzip -qq /home/pterjan/rpmbuild/SOURCES/master.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd lib_mysqludf_json-master + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.OkrCmm + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd lib_mysqludf_json-master + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -I/usr/include/mysql/server/ -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o lib_mysqludf_json.so lib_mysqludf_json.c In file included from /usr/include/mysql/server/my_sys.h:34, from lib_mysqludf_json.c:41: /usr/include/mysql/server/my_pthread.h:26:10: fatal error: my_atomic.h: No such file or directory #include ^~~~~~~~~~~~~ compilation terminated. error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.OkrCmm (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.OkrCmm (%build) I: [iurt_root_command] ERROR: chroot