<div dir="ltr"><div><br>all sles versions failed, include sles11sp4 and sles12sp3. <br><pre class="gmail-build-trace" id="gmail-build-trace"><code class="gmail-bash gmail-js-build-output"><br>```<br>+ test -d /usr/src/linux-3.0.13-0.27-obj/x86_64/default//.<br>++ KDIR=/usr/src/linux-3.0.13-0.27-obj/x86_64/default/<br>++ scripts/get_uts_release.sh<br>+ test 3.0.13-0.27-default = 3.0.13<br>error: Bad exit status from /var/tmp/rpm-tmp.20427 (%prep)</code></pre>```<br><br></div>relative to this commit:<br><br>```<br>commit 470d5dd28acf2174a4165a57f724ab12389eb88d<br>Author: Lars Ellenberg <<a href="mailto:lars.ellenberg@linbit.com">lars.ellenberg@linbit.com</a>><br>Date: Tue Apr 17 11:49:15 2018 +0200<br><br> compat: fixup KVER guessing from prepared kernel (-headers, -devel) tree<br><br> If we point our Makefile to some linux-headers-xyz or kernel-devel-qrl,<br> using KDIR=/usr/src/linux-headers-* or KDIR=/usr/src/kernels/*,<br> we then try to "guess" the kernel version by calling<br> make -s -C $(KDIR) kernelrelease ; which may fail if run as normal user,<br> depending on write permissions in various places, while still producing<br> the correct output.<br> With the addition of the "RETPOLINE" check and $(error ...) in the<br> linux Makefile, the correct output is missing, and this became relevant.<br><br> Try to use "kernelversion" first (which only uses "cached" information),<br> and try to fall back to "kernelrelease" only if the former fails.<br>```<br><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-04-23 17:53 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 05:27:35PM +0800, li songmin wrote:<br>
> There is an error when build on sles platform:<br>
> <br>
> ```<br>
> <br>
> test -d /usr/src/linux-3.0.13-0.27-<wbr>obj/x86_64/default//.<br>
> ++ KDIR=/usr/src/linux-3.0.13-0.<wbr>27-obj/x86_64/default/<br>
> ++ scripts/get_uts_release.sh<br>
> + test 3.0.13-0.27-default = 3.0.13<br>
> error: Bad exit status from /var/tmp/rpm-tmp.20427 (%prep)<br>
> <br>
> ```<br>
> <br>
> It seems get_uts_release.sh check kernelrelease first and then<br>
> kernelversion,<br>
> so i think we should get version by kernelrelease before kernelversion in<br>
> Makefile<br>
<br>
</span>What is that? Looks like SLES11? With a very outdated kernel? Is that a<br>
very old SP4 kernel or even pre SP4? Can you try a recent (if we still<br>
can consider SLES11 "recent") kernel? In our build environment this<br>
works with a moderately "recent" SLES11-SP4 kernel (~3.0.101-something).<br>
<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>
</blockquote></div><br></div>