Getting module errors while building rpm using rpmbuild
Issue
- Getting module errors while building
rpm
usingrpmbuild
[root@localhost ~]# rpmbuild --rebuild lin_tape-3.0.0-1.src.rpm
Installing lin_tape-3.0.0-1.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.5ejrUN
+ umask 022
+ cd /root/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /root/rpmbuild/BUILD
+ rm -rf lin_tape-3.0.0
+ /usr/bin/gzip -dc /root/rpmbuild/SOURCES/lin_tape-3.0.0.tgz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd lin_tape-3.0.0
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Ne0kXl
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd lin_tape-3.0.0
+ LANG=C
+ export LANG
+ unset DISPLAY
++ 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
+ cp -af lin_tape_359X_AMD.ReadMe lin_tape_359X.ReadMe
+ cp -af lin_tape_Ultrium_AMD.ReadMe lin_tape_Ultrium.ReadMe
+ make KERNEL=2.6.32-431.el6.x86_64 PROC=x86_64 driver
make -C /lib/modules/2.6.32-431.el6.x86_64/build SUBDIRS=/root/rpmbuild/BUILD/lin_tape-3.0.0 PWD=/root/rpmbuild/BUILD/lin_tape-3.0.0 clean
make: *** /lib/modules/2.6.32-431.el6.x86_64/build: No such file or directory. Stop.
make: *** [clean] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.Ne0kXl (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.Ne0kXl (%build)
Environment
- Red Hat Enterprise Linux 6
- rpmbuild
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.