[DRBD-user] drbd8.4 latest source can't build on sles platform
lisongmin9 at gmail.com
Mon Apr 23 12:14:50 CEST 2018
all sles versions failed, include sles11sp4 and sles12sp3.
+ test -d /usr/src/linux-3.0.13-0.27-obj/x86_64/default//.
+ test 3.0.13-0.27-default = 3.0.13
error: Bad exit status from /var/tmp/rpm-tmp.20427 (%prep)
relative to this commit:
Author: Lars Ellenberg <lars.ellenberg at linbit.com>
Date: Tue Apr 17 11:49:15 2018 +0200
compat: fixup KVER guessing from prepared kernel (-headers, -devel) tree
If we point our Makefile to some linux-headers-xyz or kernel-devel-qrl,
using KDIR=/usr/src/linux-headers-* or KDIR=/usr/src/kernels/*,
we then try to "guess" the kernel version by calling
make -s -C $(KDIR) kernelrelease ; which may fail if run as normal user,
depending on write permissions in various places, while still producing
the correct output.
With the addition of the "RETPOLINE" check and $(error ...) in the
linux Makefile, the correct output is missing, and this became relevant.
Try to use "kernelversion" first (which only uses "cached" information),
and try to fall back to "kernelrelease" only if the former fails.
2018-04-23 17:53 GMT+08:00 Roland Kammerer <roland.kammerer at linbit.com>:
> On Mon, Apr 23, 2018 at 05:27:35PM +0800, li songmin wrote:
> > There is an error when build on sles platform:
> > ```
> > test -d /usr/src/linux-3.0.13-0.27-obj/x86_64/default//.
> > ++ KDIR=/usr/src/linux-3.0.13-0.27-obj/x86_64/default/
> > ++ scripts/get_uts_release.sh
> > + test 3.0.13-0.27-default = 3.0.13
> > error: Bad exit status from /var/tmp/rpm-tmp.20427 (%prep)
> > ```
> > It seems get_uts_release.sh check kernelrelease first and then
> > kernelversion,
> > so i think we should get version by kernelrelease before kernelversion
> > Makefile
> What is that? Looks like SLES11? With a very outdated kernel? Is that a
> very old SP4 kernel or even pre SP4? Can you try a recent (if we still
> can consider SLES11 "recent") kernel? In our build environment this
> works with a moderately "recent" SLES11-SP4 kernel (~3.0.101-something).
> Regards, rck
> drbd-user mailing list
> drbd-user at lists.linbit.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the drbd-user