[DRBD-user] drbd8.4 latest source can't build on sles platform
li songmin
lisongmin9 at gmail.com
Mon Apr 23 12:16:31 CEST 2018
sorry, sles12sp3 output is fallow
```
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ test -d /usr/src/linux-4.4.73-5-obj/x86_64/default//.
++ KDIR=/usr/src/linux-4.4.73-5-obj/x86_64/default/
++ scripts/get_uts_release.sh
+ test 4.4.73-5-default = 4.4.73
error: Bad exit status from /var/tmp/rpm-tmp.IS25hR (%prep)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.IS25hR (%prep)
Makefile:207: recipe for target 'km-rpm' failed
```
2018-04-23 18:14 GMT+08:00 li songmin <lisongmin9 at gmail.com>:
>
> all sles versions failed, include sles11sp4 and sles12sp3.
>
>
> ```
> + 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)
>
> ```
>
> relative to this commit:
>
> ```
> commit 470d5dd28acf2174a4165a57f724ab12389eb88d
> 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
>> in
>> > 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
>> http://lists.linbit.com/mailman/listinfo/drbd-user
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20180423/5e42f7c0/attachment.htm>
More information about the drbd-user
mailing list