# rpmbuild --rebuild lin_tape-3.0.46-1.src.rpm Installing lin_tape-3.0.46-1.src.rpm Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.hSOqHc + umask 022 + cd /root/rpmbuild/BUILD + cd /root/rpmbuild/BUILD + rm -rf lin_tape-3.0.46 + /usr/bin/gzip -dc /root/rpmbuild/SOURCES/lin_tape-3.0.46.tgz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd lin_tape-3.0.46 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.HjLezK + umask 022 + cd /root/rpmbuild/BUILD + cd lin_tape-3.0.46 ++ echo x86_64-redhat-linux-gnu ++ cut -f 1 -d - + p=x86_64 + '[' x86_64 == i386 ']' + '[' x86_64 == i586 ']' + '[' x86_64 == i686 ']' + '[' x86_64 == ppc64 ']' + '[' x86_64 == powerpc ']' + '[' x86_64 == powerpc64 ']' + '[' x86_64 == s390 ']' + '[' x86_64 == s390x ']' + '[' x86_64 == ia64 ']' + '[' x86_64 == x86_64 ']' + proc=AMD + make KERNEL=3.10.0-862.rt56.804.el7.x86_64 PROC=x86_64 SFMP=0 driver make -C /lib/modules/3.10.0-862.rt56.804.el7.x86_64/build SUBDIRS=/root/rpmbuild/BUILD/lin_tape-3.0.46 PWD=/root/rpmbuild/BUILD/lin_tape-3.0.46 clean make: *** /lib/modules/3.10.0-862.rt56.804.el7.x86_64/build: No such file or directory. Stop. make: *** [clean] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.HjLezK (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.HjLezK (%build)