SLES15 SP6 Little Endian on Power (rpmbuild --rebuild lin_tape-3.0.71-1.src.rpm)

The command below “rpmbuild --rebuild lin_tape-3.0.71-1.src.rpm” fails:

Installing lin_tape-3.0.71-1.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.rtJMrN

  • umask 022
  • cd /usr/src/packages/BUILD
  • cd /usr/src/packages/BUILD
  • rm -rf lin_tape-3.0.71
  • /usr/bin/gzip -dc /usr/src/packages/SOURCES/lin_tape-3.0.71.tgz
  • /usr/bin/tar -xof -
  • STATUS=0
  • ‘[’ 0 -ne 0 ‘]’
  • cd lin_tape-3.0.71
  • /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
  • exit 0
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.aYk4ON
  • umask 022
  • cd /usr/src/packages/BUILD
  • /usr/bin/rm -rf /usr/src/packages/BUILDROOT/lin_tape-3.0.71-1.ppc64le
    ++ dirname /usr/src/packages/BUILDROOT/lin_tape-3.0.71-1.ppc64le
  • /usr/bin/mkdir -p /usr/src/packages/BUILDROOT
  • /usr/bin/mkdir /usr/src/packages/BUILDROOT/lin_tape-3.0.71-1.ppc64le
  • cd lin_tape-3.0.71
  • ref=/usr/lib/rpm
  • for s in guess sub
    ++ find -maxdepth 8 -name config.guess
  • for s in guess sub
    ++ find -maxdepth 8 -name config.sub
    ++ echo ppc64le-suse-linux
    ++ cut -f 1 -d -
  • p=ppc64le
  • ‘[’ ppc64le == i386 ‘]’
  • ‘[’ ppc64le == i586 ‘]’
  • ‘[’ ppc64le == i686 ‘]’
  • ‘[’ ppc64le == ppc64 ‘]’
  • ‘[’ ppc64le == powerpc ‘]’
  • ‘[’ ppc64le == powerpc64 ‘]’
  • ‘[’ ppc64le == s390 ‘]’
  • ‘[’ ppc64le == s390x ‘]’
  • ‘[’ ppc64le == ia64 ‘]’
  • ‘[’ ppc64le == x86_64 ‘]’
  • make KERNEL=6.4.0-150600.23.70-default PROC=ppc64le SFMP=0 driver
    make: Nothing to be done for ‘driver’.
  • exit 0
    Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.ewZh8a
  • umask 022
  • cd /usr/src/packages/BUILD
  • cd lin_tape-3.0.71
  • rm -rf /usr/src/packages/BUILDROOT/lin_tape-3.0.71-1.ppc64le
  • install -D -m 644 bldtmp/pfo-6.4.0-150600.23.70-default.ko /usr/src/packages/BUILDROOT/lin_tape-3.0.71-1.ppc64le/lib/modules/6.4.0-150600.23.70-default/kernel/drivers/scsi/pfo.ko
    install: cannot stat ‘bldtmp/pfo-6.4.0-150600.23.70-default.ko’: No such file or directory
    error: Bad exit status from /var/tmp/rpm-tmp.ewZh8a (%install)

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

What is going on?

Is the IBM “lin_tape-3.0.71-1.src.rpm” file corrupted?

Thank you

Paolo

@paolo.nasca Hi and welcome to the Forum :smiley:

No driver was build, so it exited…

make KERNEL=6.4.0-150600.23.70-default PROC=ppc64le SFMP=0 driver
make: Nothing to be done for ‘driver’.
exit 0

Do you have kernel-default-devel installed?

@malcolmlewis
Let me check
Thanks

After instaling the following 3 packages, I was able to build the rpm.

zypper install --oldpackage kernel-devel-6.4.0-150600.23.70.1.noarch
zypper install --oldpackage kernel-macros-6.4.0-150600.23.70.1.noarch
zypper install --oldpackage kernel-default-devel-6.4.0-150600.23.70.1

The command “zypper si lin_tape-3.0.71-1.src.rpm” showed the missing packages.

The command “zypper info PACKAGE_NAME” showed the version of the package I was going to install.

1 Like