Link to home
Start Free TrialLog in
Avatar of sams20
sams20

asked on

RPM build errors: Bad exit status from /var/tmp/rpm-tmp.hQeoFx (%install)

I am getting this error message, when I was trying to run rpmbuild --rebuild lin_tape-3.0.23-1.src.rpm on Red Hat Linux 7.4 (Kernel version: 3.10.0-693.1.1.el7.x86_64). Can some one let me know what is problem and what should be the proper procedure to fix it. Here is the output mentioned below,

#rpmbuild --rebuild lin_tape-3.0.23-1.src.rpm
Installing lin_tape-3.0.23-1.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.sCvFVM
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf lin_tape-3.0.23
+ /usr/bin/gzip -dc /root/rpmbuild/SOURCES/lin_tape-3.0.23.tgz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd lin_tape-3.0.23
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.KGligF
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd lin_tape-3.0.23
++ 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-693.1.1.el7.x86_64 PROC=x86_64 SFMP=0 driver
make: Nothing to be done for `driver'.
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.hQeoFx
+ umask 022
+ cd /root/rpmbuild/BUILD
+ '[' /root/rpmbuild/BUILDROOT/lin_tape-3.0.23-1.x86_64 '!=' / ']'
+ rm -rf /root/rpmbuild/BUILDROOT/lin_tape-3.0.23-1.x86_64
++ dirname /root/rpmbuild/BUILDROOT/lin_tape-3.0.23-1.x86_64
+ mkdir -p /root/rpmbuild/BUILDROOT
+ mkdir /root/rpmbuild/BUILDROOT/lin_tape-3.0.23-1.x86_64
+ cd lin_tape-3.0.23
+ rm -rf /root/rpmbuild/BUILDROOT/lin_tape-3.0.23-1.x86_64
+ install -D -m 644 bldtmp/pfo-3.10.0-693.1.1.el7.x86_64.ko /root/rpmbuild/BUILDROOT/lin_tape-3.0.23-1.x86_64/lib/modules/3.10.0-693.1.1.el7.x86_64/kernel/drivers/scsi/pfo.ko
install: cannot stat 'bldtmp/pfo-3.10.0-693.1.1.el7.x86_64.ko': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.hQeoFx (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.hQeoFx (%install)

Thanks
Avatar of A Q Choudary
A Q Choudary
Flag of India image

There may be some patches that not suit it need to update patches
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.