[DRBD-user] drbd8.4 latest source can't build on sles platform
li songmin
lisongmin9 at gmail.com
Mon Apr 23 14:16:23 CEST 2018
May be it is problem for non default kernel building? we built all sles12
kernels( sles12, sles12SP1 and so on) on sles12.
```
sles12_scott:~/drbd-8.4 # uname -a
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
sles12_scott:~/drbd-8.4 # cat /etc/SuSE-release
SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 0
# This file is deprecated and will be removed in a future service pack or
release.
# Please check /etc/os-release for details about this release.
sles12_scott:~/drbd-8.4 # ls /lib/modules/
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
sles12_scott:~/drbd-8.4 #
```
Reproduce Steps with offical source:
1. make tarball
2. when build with `make km-rpm` without additional KDIR, that is OK.
3. when build with KDIR specified, the error occurs.
```
sles12_scott:~/drbd-8.4 # make km-rpm
KDIR=/usr/src/linux-4.4.73-5-obj/x86_64/default/
checking for presence of 8\.4\.11-0rc2 in various changelog files
drbd-km.spec:8.4.11-0rc2
drbd-kernel.spec:8.4.11-0rc2%{?dist}
ChangeLog:8.4.11-0rc2 (api:genl1/proto:86-101)
debian/changelog:drbd8 (2:8.4.11~0rc2-1) unstable; urgency=medium
test -s .filelist
rm -f drbd-8.4.11-0rc2
ln -s . drbd-8.4.11-0rc2
for f in $(<.filelist) ; do [ -e $f ] && continue ; echo missing: $f ; exit
1; done
grep debian .filelist >/dev/null 2>&1 && _DEB=-debian || _DEB="" ; \
test -n "$KEEPNAME" && _DEB="" || :; \
tar --owner=0 --group=0 -czf - -T .filelist > drbd-8.4.11-0rc2$_DEB.tar.gz
rm drbd-8.4.11-0rc2
cp drbd-8.4.11-0rc2.tar.gz `rpm -E "%_sourcedir"`
rpmbuild -bb \
--define "kernelversion 4.4.73" \
--define "kdir /usr/src/linux-4.4.73-5-obj/x86_64/default/" \
\
drbd-km.spec
kernelversion=4.4.73
kdir=/usr/src/linux-4.4.73-5-obj/x86_64/default/
kernel_devel_rpm=kernel-default-devel
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.cNdsfN
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd /usr/src/packages/BUILD
+ rm -rf drbd-8.4.11-0rc2
+ /bin/tar -xf -
+ /usr/bin/gzip -dc /usr/src/packages/SOURCES/drbd-8.4.11-0rc2.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd drbd-8.4.11-0rc2
+ /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.cNdsfN (%prep)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.cNdsfN (%prep)
Makefile:207: recipe for target 'km-rpm' failed
make: *** [km-rpm] Error 1
sles12_scott:~/drbd-8.4 #
```
2018-04-23 19:06 GMT+08:00 Roland Kammerer <roland.kammerer at linbit.com>:
> On Mon, Apr 23, 2018 at 06:16:31PM +0800, li songmin wrote:
> > 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
> >
> >
> > ```
>
> Hm, for us it builds with SLES11 and 12. So can you provide a complete
> log, not only the last few lines? How do you execute the build? Any
> changes compared to what you did so far?
>
> Yes, there have been changes, for reasons, but we did not change the
> "magic build sauce" in our build environment, so I wonder why it breaks
> for you and does not for us...
>
> 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/62205f43/attachment-0001.htm>
More information about the drbd-user
mailing list