Re: Debian kernel 4.7.2-1 build on Sid and Jessie fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Much appreciated, Ben!

On Fri, Sep 2, 2016 at 8:49 AM, Ben Hutchings <ben@xxxxxxxxxxxxxxx> 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!
--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux File System Development]     [Linux BTRFS]     [Linux NFS]     [Linux Filesystems]     [Ext4 Filesystem]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Resources]

  Powered by Linux