<div dir="ltr"><div><div><div><div><br></div><div>May be it is problem for non default kernel building? we built all sles12 kernels( sles12, sles12SP1 and so on) on sles12. <br><br>```<br>sles12_scott:~/drbd-8.4 # uname -a<br>Linux sles12_scott 3.12.28-4-default #1 SMP Thu Sep 25 17:02:34 UTC 2014 (9879bd4) x86_64 x86_64 x86_64 GNU/Linux<br>sles12_scott:~/drbd-8.4 # cat /etc/SuSE-release<br>SUSE Linux Enterprise Server 12 (x86_64)<br>VERSION = 12<br>PATCHLEVEL = 0<br># This file is deprecated and will be removed in a future service pack or release.<br># Please check /etc/os-release for details about this release.<br>sles12_scott:~/drbd-8.4 # ls /lib/modules/<br>3.12.28-4-default 3.12.28-4-xen 3.12.49-11-default 4.4.21-69-default 4.4.73-5-default<br>sles12_scott:~/drbd-8.4 #<br>```<br></div><div><br><br></div>Reproduce Steps with offical source:<br><br></div>1. make tarball <br></div></div>2. when build with `make km-rpm` without additional KDIR, that is OK. <br><div>3. when build with KDIR specified, the error occurs.<br><br>```<br>sles12_scott:~/drbd-8.4 # make km-rpm KDIR=/usr/src/linux-4.4.73-5-obj/x86_64/default/<br>checking for presence of 8\.4\.11-0rc2 in various changelog files<br>drbd-km.spec:8.4.11-0rc2<br>drbd-kernel.spec:8.4.11-0rc2%{?dist}<br>ChangeLog:8.4.11-0rc2 (api:genl1/proto:86-101)<br>debian/changelog:drbd8 (2:8.4.11~0rc2-1) unstable; urgency=medium<br>test -s .filelist<br>rm -f drbd-8.4.11-0rc2<br>ln -s . drbd-8.4.11-0rc2<br>for f in $(<.filelist) ; do [ -e $f ] && continue ; echo missing: $f ; exit 1; done<br>grep debian .filelist >/dev/null 2>&1 && _DEB=-debian || _DEB="" ; \<br>test -n "$KEEPNAME" && _DEB="" || :; \<br>tar --owner=0 --group=0 -czf - -T .filelist > drbd-8.4.11-0rc2$_DEB.tar.gz<br>rm drbd-8.4.11-0rc2<br>cp drbd-8.4.11-0rc2.tar.gz `rpm -E "%_sourcedir"`<br>rpmbuild -bb \<br> --define "kernelversion 4.4.73" \<br> --define "kdir /usr/src/linux-4.4.73-5-obj/x86_64/default/" \<br> \<br> drbd-km.spec<br>kernelversion=4.4.73<br>kdir=/usr/src/linux-4.4.73-5-obj/x86_64/default/<br>kernel_devel_rpm=kernel-default-devel<br>Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.cNdsfN<br>+ umask 022<br>+ cd /usr/src/packages/BUILD<br>+ cd /usr/src/packages/BUILD<br>+ rm -rf drbd-8.4.11-0rc2<br>+ /bin/tar -xf -<br>+ /usr/bin/gzip -dc /usr/src/packages/SOURCES/drbd-8.4.11-0rc2.tar.gz<br>+ STATUS=0<br>+ '[' 0 -ne 0 ']'<br>+ cd drbd-8.4.11-0rc2<br>+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .<br>+ test -d /usr/src/linux-4.4.73-5-obj/x86_64/default//.<br>++ KDIR=/usr/src/linux-4.4.73-5-obj/x86_64/default/<br>++ scripts/get_uts_release.sh<br>+ test 4.4.73-5-default = 4.4.73<br>error: Bad exit status from /var/tmp/rpm-tmp.cNdsfN (%prep)<br><br><br>RPM build errors:<br> Bad exit status from /var/tmp/rpm-tmp.cNdsfN (%prep)<br>Makefile:207: recipe for target 'km-rpm' failed<br>make: *** [km-rpm] Error 1<br>sles12_scott:~/drbd-8.4 #<br>```<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-04-23 19:06 GMT+08:00 Roland Kammerer <span dir="ltr"><<a href="mailto:roland.kammerer@linbit.com" target="_blank">roland.kammerer@linbit.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Apr 23, 2018 at 06:16:31PM +0800, li songmin wrote:<br>
> sorry, sles12sp3 output is fallow<br>
> <br>
> ```<br>
> <br>
> + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .<br>
> + test -d /usr/src/linux-4.4.73-5-obj/<wbr>x86_64/default//.<br>
> ++ KDIR=/usr/src/linux-4.4.73-5-<wbr>obj/x86_64/default/<br>
> ++ scripts/get_uts_release.sh<br>
> + test 4.4.73-5-default = 4.4.73<br>
> error: Bad exit status from /var/tmp/rpm-tmp.IS25hR (%prep)<br>
> <br>
> <br>
> RPM build errors:<br>
> Bad exit status from /var/tmp/rpm-tmp.IS25hR (%prep)<br>
> Makefile:207: recipe for target 'km-rpm' failed<br>
> <br>
> <br>
> ```<br>
<br>
</span>Hm, for us it builds with SLES11 and 12. So can you provide a complete<br>
log, not only the last few lines? How do you execute the build? Any<br>
changes compared to what you did so far?<br>
<br>
Yes, there have been changes, for reasons, but we did not change the<br>
"magic build sauce" in our build environment, so I wonder why it breaks<br>
for you and does not for us...<br>
<div class="HOEnZb"><div class="h5"><br>
Regards, rck<br>
______________________________<wbr>_________________<br>
drbd-user mailing list<br>
<a href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a><br>
<a href="http://lists.linbit.com/mailman/listinfo/drbd-user" rel="noreferrer" target="_blank">http://lists.linbit.com/<wbr>mailman/listinfo/drbd-user</a><br>
</div></div></blockquote></div><br></div>