Package: kernel-package
Version: 13.018
Severity: normal
 
Dear Maintainer,
 
I'm trying to build a custom kernel with make-kpkg. This is Ubuntu 14.04, but I 
manually
installed kernel-package from Ubuntu 16.04, namely version 13.018, since I need 
support
for localversion files.
 
I'm running something like:
 
    make-kpkg --initrd buildpackage --uc --us --revision 1-foo
 
and very frequently the build fails toward the end (after about 45 minutes). I 
think the relevant part of the
output is the following:
 
 
 
[...]
/usr/bin/make -f debian/rules debian/stamp/dep-binary-arch
make[2]: Entering directory `/home/den2pal/work/zeno/zenocam/linux-kernel/linux'
====== making target 
debian/stamp/binary/pre-linux-headers-4.1.30-ltsi-rt34-zenocam1+ [new prereqs: 
linux-headers-4.1.30-ltsi-rt34-zenocam1+]======
====== making target 
debian/stamp/binary/pre-linux-image-4.1.30-ltsi-rt34-zenocam1+ [new prereqs: 
linux-image-4.1.30-ltsi-rt34-zenocam1+]======
 
 
This is kernel package version 13.018.
This is kernel package version 13.018.
====== making target debian/stamp/BIN/linux-uml-4.1.30-ltsi-rt34-zenocam1+ [new 
prereqs: do-pre-bin-arch]======
====== making target 
debian/stamp/binary/pre-linux-image-4.1.30-ltsi-rt34-zenocam1+-dbg [new 
prereqs: linux-image-4.1.30-ltsi-rt34-zenocam1+-dbg]======
 
 
/usr/bin/make -f ./debian/rules 
debian/stamp/binary/linux-headers-4.1.30-ltsi-rt34-zenocam1+
This is kernel package version 13.018.
mkdir: cannot create directory ‘debian/stamp/binary’: File exists
make[2]: *** [debian/stamp/binary/pre-linux-image-4.1.30-ltsi-rt34-zenocam1+] 
Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/bin/make -f ./debian/rules 
debian/stamp/binary/linux-image-4.1.30-ltsi-rt34-zenocam1+-dbg
[...]
 
 
 
I might be interpreting this wrong, but it looks like both the linux-headers 
and the linux-image targets
are typing to create the folder debian/stamp/binary. From the code of 
kernel-package, it looks like they
are both calling
 
    @test -d debian/stamp/binary || mkdir debian/stamp/binary
 
which looks like it could lead to a race condition if executed in parallel. A 
solution might be something
like `mkdir -p` or `mkdir debian/stamp/binary || true`.
 
I wounder if / why noone has this issue, since it does happen very consistently 
for me. I will try to call
make-kpkg with `-j1` to see if that makes a difference.

Kind regards,
Nikolaus

 
 
-- System Information:
Debian Release: jessie/sid
  APT prefers trusty-updates
  APT policy: (500, 'trusty-updates'), (500, 'trusty-security'), (500, 
'trusty'), (400, 'trusty-proposed'), (100, 'trusty-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
 
Kernel: Linux 4.4.0-38-generic (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
 
Versions of packages kernel-package depends on:
ii  bc               1.06.95-8ubuntu1
ii  binutils         2.24-5ubuntu14.1
ii  build-essential  11.6ubuntu6
ii  bzip2            1.0.6-5
ii  dpkg-dev         1.17.5ubuntu5.7
ii  file             1:5.14-2ubuntu3.3
ii  gettext          0.18.3.1-1ubuntu3
ii  kmod             15-0ubuntu6
ii  po-debconf       1.0.16+nmu2ubuntu1
ii  xmlto            0.0.25-2
ii  xz-utils [lzma]  5.1.1alpha+20120614-2ubuntu2
 
Versions of packages kernel-package recommends:
ii  cpio           2.11+dfsg-1ubuntu1.2
pn  docbook-utils  <none>
pn  kernel-common  <none>
pn  uboot-mkimage  <none>
 
Versions of packages kernel-package suggests:
ii  libncurses5-dev [libncurses-dev]  5.9+20140118-1ubuntu1
pn  linux-source                      <none>
 
-- no debconf information

Reply via email to