Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #55000 > unrolled thread

Debian kernel 4.7.2-1 build on Sid and Jessie fails

Started byjose.r.r@metztli.com (Jose R Rodriguez)
First post2016-09-02 13:10 +0200
Last post2016-09-05 23:50 +0200
Articles 5 — 3 participants

Back to article view | Back to linux.debian.kernel


Contents

  Debian kernel 4.7.2-1 build on Sid and Jessie fails jose.r.r@metztli.com (Jose R Rodriguez) - 2016-09-02 13:10 +0200
    Re: Debian kernel 4.7.2-1 build on Sid and Jessie fails Ben Hutchings <ben@decadent.org.uk> - 2016-09-02 17:50 +0200
      Re: Debian kernel 4.7.2-1 build on Sid and Jessie fails Jose R R <jose.r.r@metztli.com> - 2016-09-03 18:40 +0200
      Re: Debian kernel 4.7.2-1 build on Sid and Jessie fails Ben Hutchings <ben@decadent.org.uk> - 2016-09-03 20:00 +0200
        Re: Debian kernel 4.7.2-1 build on Sid and Jessie fails Jose R R <jose.r.r@metztli.com> - 2016-09-05 23:50 +0200

#55000 — Debian kernel 4.7.2-1 build on Sid and Jessie fails

Fromjose.r.r@metztli.com (Jose R Rodriguez)
Date2016-09-02 13:10 +0200
SubjectDebian kernel 4.7.2-1 build on Sid and Jessie fails
Message-ID<scUw9-7bm-5@gated-at.bofh.it>
Niltze, all!

Currently running Reiser4-patched kernel 4.7 built from pristine source upstream:

Linux mictlantecuhtli 4.7.0.tezcatlipoca #1 SMP PREEMPT Wed Aug 10 05:04:17 PDT 2016 x86_64 GNU/Linux

On the other hand, I have experienced multiple issues building Debian'ized kernel 4.7.2-1 -- first building on Jessie modified for GCC 4.9;
 and then attempting build on Jessie-built GCC 5.3. And finally I attempted the build on Debian Unstable and it failed, as well.
Below are the offending sections -- which, by the way -- roughly correspond in all instances of Debian and GCC:

------Sid Unstable with GCC 5.x and 6.x from Debian repos------------

dh_installchangelogs
dh_installdeb
dh_installman
dh_strip
dh_gencontrol -- -Vkernel:Arch=amd64
Can't exec "-strip": No such file or directory at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 242.
dh_strip: -strip --remove-section=.comment --remove-section=.note debian/linux-cpupower/usr/bin/cpupower failed to to execute: No such file or directory
make[2]: *** [install-cpupower] Error 2
debian/rules.real:538: recipe for target 'install-cpupower' failed
make[2]: *** Waiting for unfinished jobs....
dh_lintian
dh_installdocs
 install -m755 'modpost' '/mnt/sid-buildirectory/usr/src/linux/debian/linux-kbuild-4.7//usr/lib/linux-kbuild-4.7/scripts/mod'
 install -m755 'modpost.real-lsb-32' '/mnt/sid-buildirectory/usr/src/linux/debian/linux-kbuild-4.7//usr/lib/linux-kbuild-4.7/scripts/mod'
 install -m755 'modpost.real-lsb-64' '/mnt/sid-buildirectory/usr/src/linux/debian/linux-kbuild-4.7//usr/lib/linux-kbuild-4.7/scripts/mod'
 install -m755 'modpost.real-msb-32' '/mnt/sid-buildirectory/usr/src/linux/debian/linux-kbuild-4.7//usr/lib/linux-kbuild-4.7/scripts/mod'
 install -m755 'modpost.real-msb-64' '/mnt/sid-buildirectory/usr/src/linux/debian/linux-kbuild-4.7//usr/lib/linux-kbuild-4.7/scripts/mod'

------------------------------------

 INSTALL usr/include/linux/byteorder/ (2 files)
  INSTALL usr/include/linux/caif/ (2 files)
  INSTALL usr/include/linux/can/ (5 files)
  INSTALL usr/include/linux/dvb/ (8 files)
Can't exec "-strip": No such file or directory at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 242.
dh_strip: -strip --strip-debug --remove-section=.comment --remove-section=.note --enable-deterministic-archives debian/libusbip-dev/usr/lib/libusbip.a failed to to execute: No such file or directory
  INSTALL usr/include/rdma/hfi/ (1 file)
make[2]: *** [install-usbip] Error 2
debian/rules.real:584: recipe for target 'install-usbip' failed
  INSTALL usr/include/rdma/ (6 files)
Can't exec "-objcopy": No such file or directory at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 242.
dh_strip: -objcopy --only-keep-debug --compress-debug-sections debian/liblockdep4.7/usr/lib/x86_64-linux-gnu/liblockdep.so.4.7 debian/.debhelper/liblockdep4.7/dbgsym-root/usr/lib/debug/.build-id/81/6e7b2c74f1a2aff094a8e3a442c3b135461b72.debug failed to to execute: No such file or directory
make[2]: *** [install-liblockdep] Error 2
debian/rules.real:644: recipe for target 'install-liblockdep' failed
  INSTALL usr/include/linux/hdlc/ (1 file)
  INSTALL usr/include/scsi/fc/ (4 files)

-----------------------------------

 INSTALL usr/include/linux/tc_act/ (12 files)
  INSTALL usr/include/linux/usb/ (11 files)
  INSTALL usr/include/linux/ (429 files)
dh_strip
dh_md5sums
Can't exec "-objcopy": No such file or directory at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 242.
dh_strip: -objcopy --only-keep-debug --compress-debug-sections debian/linux-kbuild-4.7/usr/lib/linux-kbuild-4.7/scripts/conmakehash debian/.debhelper/linux-kbuild-4.7/dbgsym-root/usr/lib/debug/.build-id/a3/a76f127dacfc8bf8ebe737d923c0a63aa6aa8e.debug failed to to execute: No such file or directory
make[2]: *** [install-kbuild] Error 2
debian/rules.real:517: recipe for target 'install-kbuild' failed
dh_builddeb -- -Zxz
dpkg-deb: building package 'linux-headers-4.7.0-1+reiser4.0.1-all' in '../linux-headers-4.7.0-1+reiser4.0.1-all_4.7.2-1+reiser4.0.1_amd64.deb'.
dpkg-deb: building package 'linux-headers-4.7.0-1+reiser4.0.1-all-amd64' in '../linux-headers-4.7.0-1+reiser4.0.1-all-amd64_4.7.2-1+reiser4.0.1_amd64.deb'.
make[3]: Leaving directory '/mnt/sid-buildirectory/usr/src/linux'
  INSTALL usr/include/asm/ (65 files)
  CHECK   usr/include/misc/ (1 files)
  CHECK   usr/include/mtd/ (5 files)

----------------------------------

dh_gencontrol --
dh_md5sums
dh_builddeb -- -Zxz
dpkg-deb: building package 'linux-libc-dev' in '../linux-libc-dev_4.7.2-1+reiser4.0.1_amd64.deb'.
make[3]: Leaving directory '/mnt/sid-buildirectory/usr/src/linux'
make[2]: Leaving directory '/mnt/sid-buildirectory/usr/src/linux'
make[1]: *** [binary-arch_amd64_real] Error 2
debian/rules.gen:30: recipe for target 'binary-arch_amd64_real' failed
make[1]: Leaving directory '/mnt/sid-buildirectory/usr/src/linux'
make: *** [binary-arch] Error 2
debian/rules:55: recipe for target 'binary-arch' failed

-----End of Sid fragment errors------------------------------



----------------------------------



------Jessie Stable with GCC 4.9 from Debian repos------------

install -m755 'modpost.real-lsb-64' '/mnt/sdb5/usr/src/build/tekitl-4.7.2-1/linux/debian/linux-kbuild-4.7//usr/lib/linux-kbuild-4.7/scripts/mod'
 install -m755 'modpost.real-msb-32' '/mnt/sdb5/usr/src/build/tekitl-4.7.2-1/linux/debian/linux-kbuild-4.7//usr/lib/linux-kbuild-4.7/scripts/mod'
 install -m755 'modpost.real-msb-64' '/mnt/sdb5/usr/src/build/tekitl-4.7.2-1/linux/debian/linux-kbuild-4.7//usr/lib/linux-kbuild-4.7/scripts/mod'
make[4]: Leaving directory '/mnt/sdb5/usr/src/build/tekitl-4.7.2-1/linux/debian/build/build-tools/scripts/mod'
make[3]: Leaving directory '/mnt/sdb5/usr/src/build/tekitl-4.7.2-1/linux/debian/build/build-tools/scripts'
dh_link /usr/lib/linux-kbuild-4.7 /usr/src/linux-kbuild-4.7
dh_installchangelogs
dh_installdocs
dh_strip
Can't exec "-objcopy": No such file or directory at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 242.
dh_strip: -objcopy --only-keep-debug --compress-debug-sections debian/linux-kbuild-4.7/usr/lib/linux-kbuild-4.7/scripts/conmakehash debian/.debhelper/linux-kbuild-4.7/dbgsym-root/usr/lib/debug/.build-id/3c/9fadf2ee8a92e81301012980c4776ef50ae8de.debug failed to to execute: No such file or directory
make[2]: *** [install-kbuild] Error 2
make[1]: *** [binary-arch_amd64_real] Error 2
make: *** [binary-arch] Error 2
debian/rules.real:517: recipe for target 'install-kbuild' failed
make[2]: Leaving directory '/mnt/sdb5/usr/src/build/tekitl-4.7.2-1/linux'
debian/rules.gen:30: recipe for target 'binary-arch_amd64_real' failed
make[1]: Leaving directory '/mnt/sdb5/usr/src/build/tekitl-4.7.2-1/linux'
debian/rules:55: recipe for target 'binary-arch' failed

------Jessie Stable with GCC 4.9 from Debian repos END------------

------------------------------



------Jessie Stable with GCC 5.3 built on this instance BEGIN------------

install -m755 'modpost.real-lsb-64' '/mnt/sdb5/usr/src/build/tekitl-4.7.2-1/linux/debian/linux-kbuild-4.7//usr/lib/linux-kbuild-4.7/scripts/mod'
 install -m755 'modpost.real-msb-32' '/mnt/sdb5/usr/src/build/tekitl-4.7.2-1/linux/debian/linux-kbuild-4.7//usr/lib/linux-kbuild-4.7/scripts/mod'
 install -m755 'modpost.real-msb-64' '/mnt/sdb5/usr/src/build/tekitl-4.7.2-1/linux/debian/linux-kbuild-4.7//usr/lib/linux-kbuild-4.7/scripts/mod'
make[4]: Leaving directory '/mnt/sdb5/usr/src/build/tekitl-4.7.2-1/linux/debian/build/build-tools/scripts/mod'
make[3]: Leaving directory '/mnt/sdb5/usr/src/build/tekitl-4.7.2-1/linux/debian/build/build-tools/scripts'
dh_link /usr/lib/linux-kbuild-4.7 /usr/src/linux-kbuild-4.7
dh_installchangelogs
dh_installdocs
dh_strip
Can't exec "-strip": No such file or directory at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 242.
dh_strip: -strip --remove-section=.comment --remove-section=.note debian/linux-kbuild-4.7/usr/lib/linux-kbuild-4.7/scripts/conmakehash failed to to execute: No such file or directory
make[2]: *** [install-kbuild] Error 2
make[1]: *** [binary-arch_amd64_real] Error 2
make: *** [binary-arch] Error 2
debian/rules.real:517: recipe for target 'install-kbuild' failed
make[2]: Leaving directory '/mnt/sdb5/usr/src/build/tekitl-4.7.2-1/linux'
debian/rules.gen:30: recipe for target 'binary-arch_amd64_real' failed
make[1]: Leaving directory '/mnt/sdb5/usr/src/build/tekitl-4.7.2-1/linux'
debian/rules:55: recipe for target 'binary-arch' failed

---------------------------------------------------------------


Any insight would be greately appreciated.


Best Professional Regards.

Download Debian-Reiser4 for free! Reiser4 -enabled Jessie Debian Installer for AMD64 https://sf.net/projects/debian-reiser4/ via @sourceforge

[toc] | [next] | [standalone]


#55002

FromBen Hutchings <ben@decadent.org.uk>
Date2016-09-02 17:50 +0200
Message-ID<scYT7-1gF-3@gated-at.bofh.it>
In reply to#55000

[Multipart message — attachments visible in raw view] — view raw

On Fri, 2016-09-02 at 03:35 -0700, Jose R Rodriguez wrote:
> Niltze, all!
> 
> Currently running Reiser4-patched kernel 4.7 built from pristine
> source upstream:
> 
> Linux mictlantecuhtli 4.7.0.tezcatlipoca #1 SMP PREEMPT Wed Aug 10
> 05:04:17 PDT 2016 x86_64 GNU/Linux
> 
> On the other hand, I have experienced multiple issues building
> Debian'ized kernel 4.7.2-1 -- first building on Jessie modified for
> GCC 4.9;
>  and then attempting build on Jessie-built GCC 5.3. And finally I
> attempted the build on Debian Unstable and it failed, as well.
> Below are the offending sections -- which, by the way -- roughly
> correspond in all instances of Debian and GCC:
[...]

This happens if you invoke debian/rules directly and not through dpkg-
buildpackage.

debian/rules.real does:

    ifdef OVERRIDE_HOST_TYPE
      CROSS_COMPILE := $(OVERRIDE_HOST_TYPE)-
    else ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
      CROSS_COMPILE := $(DEB_HOST_GNU_TYPE)-
    else
      CROSS_COMPILE :=
    endif

So the assumption is that all those architecture variables, or none,
are defined.  dpkg-buildpackage does define them all.

However, debian/rules does:

    DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)

and does not define any other architecture variables.

We should probably include /usr/share/dpkg/architecture.mk in
debian/rules instead.

Ben.

-- 
Ben Hutchings
Unix is many things to many people,
but it's never been everything to anybody.

[toc] | [prev] | [next] | [standalone]


#55008

FromJose R R <jose.r.r@metztli.com>
Date2016-09-03 18:40 +0200
Message-ID<sdm93-7Hd-7@gated-at.bofh.it>
In reply to#55002
Much appreciated, Ben!

On Fri, Sep 2, 2016 at 8:49 AM, Ben Hutchings <ben@decadent.org.uk> wrote:
> On Fri, 2016-09-02 at 03:35 -0700, Jose R Rodriguez wrote:
>> Niltze, all!
>>
>> Currently running Reiser4-patched kernel 4.7 built from pristine
>> source upstream:
>>
>> Linux mictlantecuhtli 4.7.0.tezcatlipoca #1 SMP PREEMPT Wed Aug 10
>> 05:04:17 PDT 2016 x86_64 GNU/Linux
>>
>> On the other hand, I have experienced multiple issues building
>> Debian'ized kernel 4.7.2-1 -- first building on Jessie modified for
>> GCC 4.9;
>>  and then attempting build on Jessie-built GCC 5.3. And finally I
>> attempted the build on Debian Unstable and it failed, as well.
>> Below are the offending sections -- which, by the way -- roughly
>> correspond in all instances of Debian and GCC:
> [...]
>
> This happens if you invoke debian/rules directly and not through dpkg-
> buildpackage.
>
> debian/rules.real does:
>
>     ifdef OVERRIDE_HOST_TYPE
>       CROSS_COMPILE := $(OVERRIDE_HOST_TYPE)-
>     else ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
>       CROSS_COMPILE := $(DEB_HOST_GNU_TYPE)-
>     else
>       CROSS_COMPILE :=
>     endif
>
> So the assumption is that all those architecture variables, or none,
> are defined.  dpkg-buildpackage does define them all.
>
> However, debian/rules does:
>
>     DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
>
> and does not define any other architecture variables.
>
> We should probably include /usr/share/dpkg/architecture.mk in
> debian/rules instead.
>
As I began to learn how to build a kernel 'the debian way', I had been
using as reference:

https://kernel-handbook.alioth.debian.org/ch-common-tasks.html#s-common-official-vcs

Accordingly, up to this debian'ized kernel, the directive

fakeroot debian/rules binary-arch

worked well to generate both DEBs *and* UDEBs successfully.

Now, following your advice, Ben, I have replaced the above directive with

dpkg-buildpackage -d -b -us -uc -T binary-arch

(option -d is to override apparent flex dependency show-stopper --
but: "flex is already the newest version", according to apt).

*also* with or without including switches, -us -uc, the kernel build
procedure finishes -- apparently successfully as it generates the
*.deb files; notwithstanding, it fails to generate *.udeb files --
which are required to build Debian-Installer (d-i)

---------------------------------------------------------------

kernel/sound/pci/snd-intel8x0m.ko
                kernel/sound/pci/snd-via82xx-modem.ko
                kernel/sound/synth/emux/snd-emux-synth.ko
                kernel/virt/lib/irqbypass.ko
        kernel-wedge strip-modules 4.7.0-1+reiser4.0.1-amd64
kernel-wedge check kernel-image-4.7.0-1+reiser4.0.1-amd64-di
nic-modules-4.7.0-1+reiser4.0.1-amd64-di
nic-wireless-modules-4.7.0-1+reiser4.0.1-amd64-di
nic-shared-modules-4.7.0-1+reiser4.0.1-amd64-di
serial-modules-4.7.0-1+reiser4.0.1-amd64-di
usb-serial-modules-4.7.0-1+reiser4.0.1-amd64-di
ppp-modules-4.7.0-1+reiser4.0.1-amd64-di
pata-modules-4.7.0-1+reiser4.0.1-amd64-di
cdrom-core-modules-4.7.0-1+reiser4.0.1-amd64-di
firewire-core-modules-4.7.0-1+reiser4.0.1-amd64-di
scsi-core-modules-4.7.0-1+reiser4.0.1-amd64-di
scsi-modules-4.7.0-1+reiser4.0.1-amd64-di
loop-modules-4.7.0-1+reiser4.0.1-amd64-di
btrfs-modules-4.7.0-1+reiser4.0.1-amd64-di
ext4-modules-4.7.0-1+reiser4.0.1-amd64-di
isofs-modules-4.7.0-1+reiser4.0.1-amd64-di
jfs-modules-4.7.0-1+reiser4.0.1-amd64-di
reiser4-modules-4.7.0-1+reiser4.0.1-amd64-di
ntfs-modules-4.7.0-1+reiser4.0.1-amd64-di
xfs-modules-4.7.0-1+reiser4.0.1-amd64-di
fat-modules-4.7.0-1+reiser4.0.1-amd64-di
md-modules-4.7.0-1+reiser4.0.1-amd64-di
multipath-modules-4.7.0-1+reiser4.0.1-amd64-di
usb-modules-4.7.0-1+reiser4.0.1-amd64-di
usb-storage-modules-4.7.0-1+reiser4.0.1-amd64-di
pcmcia-storage-modules-4.7.0-1+reiser4.0.1-amd64-di
fb-modules-4.7.0-1+reiser4.0.1-amd64-di
input-modules-4.7.0-1+reiser4.0.1-amd64-di
event-modules-4.7.0-1+reiser4.0.1-amd64-di
mouse-modules-4.7.0-1+reiser4.0.1-amd64-di
nic-pcmcia-modules-4.7.0-1+reiser4.0.1-amd64-di
pcmcia-modules-4.7.0-1+reiser4.0.1-amd64-di
nic-usb-modules-4.7.0-1+reiser4.0.1-amd64-di
sata-modules-4.7.0-1+reiser4.0.1-amd64-di
core-modules-4.7.0-1+reiser4.0.1-amd64-di
acpi-modules-4.7.0-1+reiser4.0.1-amd64-di
i2c-modules-4.7.0-1+reiser4.0.1-amd64-di
crc-modules-4.7.0-1+reiser4.0.1-amd64-di
crypto-modules-4.7.0-1+reiser4.0.1-amd64-di
crypto-dm-modules-4.7.0-1+reiser4.0.1-amd64-di
efi-modules-4.7.0-1+reiser4.0.1-amd64-di
ata-modules-4.7.0-1+reiser4.0.1-amd64-di
mmc-core-modules-4.7.0-1+reiser4.0.1-amd64-di
mmc-modules-4.7.0-1+reiser4.0.1-amd64-di
nbd-modules-4.7.0-1+reiser4.0.1-amd64-di
squashfs-modules-4.7.0-1+reiser4.0.1-amd64-di
speakup-modules-4.7.0-1+reiser4.0.1-amd64-di
virtio-modules-4.7.0-1+reiser4.0.1-amd64-di
uinput-modules-4.7.0-1+reiser4.0.1-amd64-di
sound-modules-4.7.0-1+reiser4.0.1-amd64-di
hyperv-modules-4.7.0-1+reiser4.0.1-amd64-di
udf-modules-4.7.0-1+reiser4.0.1-amd64-di
fuse-modules-4.7.0-1+reiser4.0.1-amd64-di
dh_fixperms
make[2]: Leaving directory '/mnt/sdb5/usr/src/build/tekitl-4.7.2-1/linux'
make[1]: Leaving directory '/mnt/sdb5/usr/src/build/tekitl-4.7.2-1/linux'

----------------------------from------------------------------------
http://paste.debian.net/806348/


Thank you again, Ben.


Best Professional Regards

-- 
Jose R R
http://metztli.it
---------------------------------------------------------------------------------------------
Try at no charge http://b2evolution.net for http://OpenShift.com PaaS
---------------------------------------------------------------------------------------------
from our GitHub http://Nepohualtzintzin.com repository. Cloud the easy way!

[toc] | [prev] | [next] | [standalone]


#55010

FromBen Hutchings <ben@decadent.org.uk>
Date2016-09-03 20:00 +0200
Message-ID<sdnou-8lq-7@gated-at.bofh.it>
In reply to#55002

[Multipart message — attachments visible in raw view] — view raw

On Fri, 2016-09-02 at 16:49 +0100, Ben Hutchings wrote:
> On Fri, 2016-09-02 at 03:35 -0700, Jose R Rodriguez wrote:
> > 
> > Niltze, all!
> > 
> > Currently running Reiser4-patched kernel 4.7 built from pristine
> > source upstream:
> > 
> > Linux mictlantecuhtli 4.7.0.tezcatlipoca #1 SMP PREEMPT Wed Aug 10
> > 05:04:17 PDT 2016 x86_64 GNU/Linux
> > 
> > On the other hand, I have experienced multiple issues building
> > Debian'ized kernel 4.7.2-1 -- first building on Jessie modified for
> > GCC 4.9;
> >  and then attempting build on Jessie-built GCC 5.3. And finally I
> > attempted the build on Debian Unstable and it failed, as well.
> > Below are the offending sections -- which, by the way -- roughly
> > correspond in all instances of Debian and GCC:
> [...]
> 
> This happens if you invoke debian/rules directly and not through dpkg-
> buildpackage.

Rather, it can happen in some circumstances, but...

> debian/rules.real does:
> 
>     ifdef OVERRIDE_HOST_TYPE
>       CROSS_COMPILE := $(OVERRIDE_HOST_TYPE)-
>     else ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
>       CROSS_COMPILE := $(DEB_HOST_GNU_TYPE)-
>     else
>       CROSS_COMPILE :=
>     endif
> 
> So the assumption is that all those architecture variables, or none,
> are defined.  dpkg-buildpackage does define them all.
> 
> However, debian/rules does:
> 
>     DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
> 
> and does not define any other architecture variables.

...variable definitions in debian/rules don't automatically propagate
to debian/rules.real, so this doesn't explain the failure.  And
although I have seen this failure myself, I can't reproduce it now.

> We should probably include /usr/share/dpkg/architecture.mk in
> debian/rules instead.

I now think it should be included in debian/rules.real.  However, until
I have a way to reproduce the problem, I'm not going to attempt a fix.

Ben.

-- 
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.

[toc] | [prev] | [next] | [standalone]


#55026

FromJose R R <jose.r.r@metztli.com>
Date2016-09-05 23:50 +0200
Message-ID<se9Wa-12j-3@gated-at.bofh.it>
In reply to#55010
On Sat, Sep 3, 2016 at 10:30 AM, Ben Hutchings <ben@decadent.org.uk> wrote:
>
> On Fri, 2016-09-02 at 16:49 +0100, Ben Hutchings wrote:
> > On Fri, 2016-09-02 at 03:35 -0700, Jose R Rodriguez wrote:
> > >
> > > Niltze, all!
> > >
> > > Currently running Reiser4-patched kernel 4.7 built from pristine
> > > source upstream:
> > >
> > > Linux mictlantecuhtli 4.7.0.tezcatlipoca #1 SMP PREEMPT Wed Aug 10
> > > 05:04:17 PDT 2016 x86_64 GNU/Linux
> > >
> > > On the other hand, I have experienced multiple issues building
> > > Debian'ized kernel 4.7.2-1 -- first building on Jessie modified for
> > > GCC 4.9;
> > >  and then attempting build on Jessie-built GCC 5.3. And finally I
> > > attempted the build on Debian Unstable and it failed, as well.
> > > Below are the offending sections -- which, by the way -- roughly
> > > correspond in all instances of Debian and GCC:
> > [...]
> >
> > This happens if you invoke debian/rules directly and not through dpkg-
> > buildpackage.
>
> Rather, it can happen in some circumstances, but...
>
> > debian/rules.real does:
> >
> >     ifdef OVERRIDE_HOST_TYPE
> >       CROSS_COMPILE := $(OVERRIDE_HOST_TYPE)-
> >     else ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
> >       CROSS_COMPILE := $(DEB_HOST_GNU_TYPE)-
> >     else
> >       CROSS_COMPILE :=
> >     endif
> >
> > So the assumption is that all those architecture variables, or none,
> > are defined.  dpkg-buildpackage does define them all.
> >
> > However, debian/rules does:
> >
> >     DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
> >
> > and does not define any other architecture variables.
>
> ...variable definitions in debian/rules don't automatically propagate
> to debian/rules.real, so this doesn't explain the failure.  And
> although I have seen this failure myself, I can't reproduce it now.
>
> > We should probably include /usr/share/dpkg/architecture.mk in
> > debian/rules instead.
>
> I now think it should be included in debian/rules.real.  However, until
> I have a way to reproduce the problem, I'm not going to attempt a fix.
>
> Ben.
>
> --
> Ben Hutchings
> Once a job is fouled up, anything done to improve it makes it worse.

I much appreciate your hints, Ben. The fault was mine. After a couple
of days of struggle, I modified debian/rules.real by inserting a
couple of extra directives and compared the generated debian/control
file output with previous ones - which provided me relevant insight to
correct my mistake and generate required *.udebs for d-i. Thank you
again, Ben.


Best Professional Regard.

-- 
Jose R R
http://metztli.it
---------------------------------------------------------------------------------------------
Try at no charge http://b2evolution.net for http://OpenShift.com PaaS
---------------------------------------------------------------------------------------------
from our GitHub http://Nepohualtzintzin.com repository. Cloud the easy way!

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web