Cross-compiled kernel package contains host binaries

Bug #1658756 reported by Tomas Hlavacek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kernel-package (Ubuntu)
New
Undecided
Unassigned

Bug Description

The resulting package that came from cross-compilation of current master kernel (4.10-rc4+ or more precisely: 0aa0313f9d576affd7747cc3f179feb097d28990) using this command:

make-kpkg --rootcmd fakeroot --arch arm --cross-compile arm-linux-gnueabihf- --revision=1.0 kernel_image kernel_headers

contained files in /usr/src/linux-headers-<version>/scripts/mod/ that have been compiled for the host architecture, not for the target one. It complicates building new modules with the libraries.

There were many x86_64 binaries, so here is only and example from my test:

root@turris:~# file /usr/src/linux-headers-4.10.0-rc4+/scripts/mod/modpost
/usr/src/linux-headers-4.10.0-rc4+/scripts/mod/modpost: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=bd976cc4c263e4ebd659ce143d8f9eebcb39b518, stripped

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.