balena-os / meta-balena

A collection of Yocto layers used to build balenaOS images
https://www.balena.io/os
969 stars 116 forks source link

Since kernel 5.10 the kernel headers need to include `scripts/module.lds` #2289

Closed alexgg closed 3 years ago

alexgg commented 3 years ago

See https://github.com/torvalds/linux/commit/596b0474d3d9 for reference.

Upstream distro example https://github.com/openSUSE/kernel-source/commit/fe37c160c33dc09edff1781810aa098a2c316e20

jellyfish-bot commented 3 years ago

[klutchell] This issue has attached support thread https://jel.ly.fish/251a8861-56c8-4cc0-9a9c-e54babb01861

alexgg commented 3 years ago

Also, why didn't kernel-headers-test didn't catch this?

alexgg commented 3 years ago

We use the upstream kernel_source.tar.gz package which contains module.lds:

tar -tzf kernel_source.tar.gz  | grep lds
./5.10.43-yocto-standard/build/include/asm-generic/module.lds.h
./5.10.43-yocto-standard/build/include/asm-generic/vmlinux.lds.h
./5.10.43-yocto-standard/build/tools/lib/traceevent/Documentation/libtraceevent-fields.txt
./5.10.43-yocto-standard/build/scripts/module.lds.S
./5.10.43-yocto-standard/build/scripts/module.lds

But also the pre-built kernel_modules_headers.tar.gz which does not:

tar -tzf kernel_modules_headers.tar.gz  | grep lds
kernel_modules_headers/include/asm-generic/module.lds.h
kernel_modules_headers/include/asm-generic/vmlinux.lds.h
kernel_modules_headers/arch/x86/include/generated/asm/module.lds.h
kernel_modules_headers/arch/x86/kvm/vmx/vmcs_shadow_fields.h
kernel_modules_headers/tools/lib/traceevent/Documentation/libtraceevent-fields.txt
kernel_modules_headers/scripts/module.lds.S

Anyway, the kernel-headers-test example module builds fine for both:

DEBUG: Executing shell function do_compile
+ rm -rf /build/balena-intel/build/tmp/work/core2-64-poky-linux/kernel-headers-test/1.0-r0/kernel-headers-test-1.0/work
+ mkdir -p /build/balena-intel/build/tmp/work/core2-64-poky-linux/kernel-headers-test/1.0-r0/kernel-headers-test-1.0/work
+ cp /build/balena-intel/build/tmp/deploy/images/genericx86-64-ext/kernel_source.tar.gz /build/balena-intel/build/tmp/work/core2-64-poky-linux/kernel-headers-test/1.0-r0/kernel-headers-test-1.0/work
+ cp /build/balena-intel/build/tmp/deploy/images/genericx86-64-ext/kernel_modules_headers.tar.gz /build/balena-intel/build/tmp/work/core2-64-poky-linux/kernel-headers-test/1.0-r0/kernel-headers-test-1.0/work
+ cp /build/balena-intel/build/tmp/work/core2-64-poky-linux/kernel-headers-test/1.0-r0/Dockerfile /build/balena-intel/build/tmp/work/core2-64-poky-linux/kernel-headers-test/1.0-r0/kernel-headers-test-1.0/work/
+ cp -r /build/balena-intel/build/tmp/work/core2-64-poky-linux/kernel-headers-test/1.0-r0/example_module /build/balena-intel/build/tmp/work/core2-64-poky-linux/kernel-headers-test/1.0-r0/kernel-headers-test-1.0/work/
+ DOCKER_API_VERSION=1.22 docker build --no-cache --build-arg kernel_arch=x86 --build-arg cross_compile_prefix=x86_64-linux-gnu- /build/balena-intel/build/tmp/work/core2-64-poky-linux/kernel-headers-test/1.0-r0/kernel-headers-test-1.0/work
+ IMAGE_ID=Sending build context to Docker daemon  29.58MB

Step 1/14 : FROM balenalib/intel-nuc-debian:buster-20210705
 ---> 1122eccf5db9
Step 2/14 : RUN apt-get update && apt-get install -y curl wget build-essential libelf-dev bc flex libssl-dev bison gcc-arm-linux-gnueabi gcc-aarch64-linux-gnu python-minimal
 ---> Running in f0ab25c376a1
Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/): 
Architecture: Intel 64-bit (x86-64) 
OS: Debian Buster 
Variant: run variant 
Default variable(s): UDEV=off 
Extra features: 
- Easy way to install packages with `install_packages <package-name>` command 
- Run anywhere with cross-build feature  (for ARM only) 
- Keep the container idling with `balena-idle` command 
- Show base image details with `balena-info` command
Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:2 http://deb.debian.org/debian buster InRelease [122 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Get:4 http://security.debian.org/debian-security buster/updates/main amd64 Packages [301 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 Packages [7907 kB]
Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [15.2 kB]
Fetched 8463 kB in 1s (5959 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version (7.64.0-4+deb10u2).
The following package was automatically installed and is no longer required:
  libidn11
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  binutils binutils-aarch64-linux-gnu binutils-arm-linux-gnueabi
  binutils-common binutils-x86-64-linux-gnu bzip2 cpp cpp-8
  cpp-8-aarch64-linux-gnu cpp-8-arm-linux-gnueabi cpp-aarch64-linux-gnu
  cpp-arm-linux-gnueabi dpkg-dev g++ g++-8 gcc gcc-8 gcc-8-aarch64-linux-gnu
  gcc-8-aarch64-linux-gnu-base gcc-8-arm-linux-gnueabi
  gcc-8-arm-linux-gnueabi-base gcc-8-cross-base libasan5 libasan5-arm64-cross
  libasan5-armel-cross libatomic1 libatomic1-arm64-cross
  libatomic1-armel-cross libbinutils libbison-dev libc-dev-bin
  libc6-arm64-cross libc6-armel-cross libc6-dev libcc1-0 libdpkg-perl
  libgcc-8-dev libgcc-8-dev-arm64-cross libgcc-8-dev-armel-cross
  libgcc1-arm64-cross libgcc1-armel-cross libgomp1 libgomp1-arm64-cross
  libgomp1-armel-cross libisl19 libitm1 libitm1-arm64-cross liblsan0
  liblsan0-arm64-cross libmpc3 libmpfr6 libmpx2 libpcre2-8-0
  libpython2.7-minimal libquadmath0 libsigsegv2 libstdc++-8-dev
  libstdc++6-arm64-cross libstdc++6-armel-cross libtsan0 libtsan0-arm64-cross
  libubsan1 libubsan1-arm64-cross libubsan1-armel-cross linux-libc-dev m4 make
  patch python2-minimal python2.7-minimal xz-utils zlib1g-dev
Suggested packages:
  binutils-doc bison-doc bzip2-doc cpp-doc gcc-8-locales debian-keyring
  flex-doc g++-multilib g++-8-multilib gcc-8-doc libstdc++6-8-dbg gcc-multilib
  manpages-dev autoconf automake libtool gdb gcc-doc gcc-8-multilib
  libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan5-dbg
  liblsan0-dbg libtsan0-dbg libubsan1-dbg libmpx2-dbg libquadmath0-dbg
  libgcc1-dbg-arm64-cross libgomp1-dbg-arm64-cross libitm1-dbg-arm64-cross
  libatomic1-dbg-arm64-cross libasan5-dbg-arm64-cross liblsan0-dbg-arm64-cross
  libtsan0-dbg-arm64-cross libubsan1-dbg-arm64-cross libmpx2-dbg-arm64-cross
  libquadmath0-dbg-arm64-cross libgcc1-dbg-armel-cross
  libgomp1-dbg-armel-cross libitm1-dbg-armel-cross libatomic1-dbg-armel-cross
  libasan5-dbg-armel-cross liblsan0-dbg-armel-cross libtsan0-dbg-armel-cross
  libubsan1-dbg-armel-cross libmpx2-dbg-armel-cross
  libquadmath0-dbg-armel-cross gdb-aarch64-linux-gnu gdb-arm-linux-gnueabi
  glibc-doc sensible-utils git bzr libssl-doc libstdc++-8-doc m4-doc make-doc
  ed diffutils-doc binfmt-support
Recommended packages:
  fakeroot libalgorithm-merge-perl libfl-dev libc6-dev-arm64-cross
  libc6-dev-armel-cross libc6-dev-arm64-cross | libc-dev-arm64-cross
  libc6-dev-armel-cross | libc-dev-armel-cross manpages manpages-dev
  libfile-fcntllock-perl liblocale-gettext-perl libpython2.7-stdlib python
  python2 python2.7
The following NEW packages will be installed:
  bc binutils binutils-aarch64-linux-gnu binutils-arm-linux-gnueabi
  binutils-common binutils-x86-64-linux-gnu bison build-essential bzip2 cpp
  cpp-8 cpp-8-aarch64-linux-gnu cpp-8-arm-linux-gnueabi cpp-aarch64-linux-gnu
  cpp-arm-linux-gnueabi dpkg-dev flex g++ g++-8 gcc gcc-8
  gcc-8-aarch64-linux-gnu gcc-8-aarch64-linux-gnu-base gcc-8-arm-linux-gnueabi
  gcc-8-arm-linux-gnueabi-base gcc-8-cross-base gcc-aarch64-linux-gnu
  gcc-arm-linux-gnueabi libasan5 libasan5-arm64-cross libasan5-armel-cross
  libatomic1 libatomic1-arm64-cross libatomic1-armel-cross libbinutils
  libbison-dev libc-dev-bin libc6-arm64-cross libc6-armel-cross libc6-dev
  libcc1-0 libdpkg-perl libelf-dev libgcc-8-dev libgcc-8-dev-arm64-cross
  libgcc-8-dev-armel-cross libgcc1-arm64-cross libgcc1-armel-cross libgomp1
  libgomp1-arm64-cross libgomp1-armel-cross libisl19 libitm1
  libitm1-arm64-cross liblsan0 liblsan0-arm64-cross libmpc3 libmpfr6 libmpx2
  libpcre2-8-0 libpython2.7-minimal libquadmath0 libsigsegv2 libssl-dev
  libstdc++-8-dev libstdc++6-arm64-cross libstdc++6-armel-cross libtsan0
  libtsan0-arm64-cross libubsan1 libubsan1-arm64-cross libubsan1-armel-cross
  linux-libc-dev m4 make patch python-minimal python2-minimal
  python2.7-minimal wget xz-utils zlib1g-dev
0 upgraded, 82 newly installed, 0 to remove and 7 not upgraded.
Need to get 93.3 MB of archives.
After this operation, 349 MB of additional disk space will be used.
Get:1 http://security.debian.org/debian-security buster/updates/main amd64 linux-libc-dev amd64 4.19.194-3 [1459 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 libsigsegv2 amd64 2.12-2 [32.8 kB]
Get:3 http://deb.debian.org/debian buster/main amd64 m4 amd64 1.4.18-2 [203 kB]
Get:4 http://deb.debian.org/debian buster/main amd64 flex amd64 2.6.4-6.2 [456 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 libpython2.7-minimal amd64 2.7.16-2+deb10u1 [395 kB]
Get:6 http://deb.debian.org/debian buster/main amd64 python2.7-minimal amd64 2.7.16-2+deb10u1 [1369 kB]
Get:7 http://deb.debian.org/debian buster/main amd64 bzip2 amd64 1.0.6-9.2~deb10u1 [48.4 kB]
Get:8 http://deb.debian.org/debian buster/main amd64 python2-minimal amd64 2.7.16-1 [41.4 kB]
Get:9 http://deb.debian.org/debian buster/main amd64 python-minimal amd64 2.7.16-1 [21.0 kB]
Get:10 http://deb.debian.org/debian buster/main amd64 libpcre2-8-0 amd64 10.32-5 [213 kB]
Get:11 http://deb.debian.org/debian buster/main amd64 wget amd64 1.20.1-1.1 [902 kB]
Get:12 http://deb.debian.org/debian buster/main amd64 xz-utils amd64 5.2.4-1 [183 kB]
Get:13 http://deb.debian.org/debian buster/main amd64 bc amd64 1.07.1-2+b1 [109 kB]
Get:14 http://deb.debian.org/debian buster/main amd64 binutils-common amd64 2.31.1-16 [2073 kB]
Get:15 http://deb.debian.org/debian buster/main amd64 libbinutils amd64 2.31.1-16 [478 kB]
Get:16 http://deb.debian.org/debian buster/main amd64 binutils-x86-64-linux-gnu amd64 2.31.1-16 [1823 kB]
Get:17 http://deb.debian.org/debian buster/main amd64 binutils amd64 2.31.1-16 [56.8 kB]
Get:18 http://deb.debian.org/debian buster/main amd64 binutils-aarch64-linux-gnu amd64 2.31.1-16 [2905 kB]
Get:19 http://deb.debian.org/debian buster/main amd64 binutils-arm-linux-gnueabi amd64 2.31.1-16 [2832 kB]
Get:20 http://deb.debian.org/debian buster/main amd64 libbison-dev amd64 2:3.3.2.dfsg-1 [500 kB]
Get:21 http://deb.debian.org/debian buster/main amd64 bison amd64 2:3.3.2.dfsg-1 [871 kB]
Get:22 http://deb.debian.org/debian buster/main amd64 libc-dev-bin amd64 2.28-10 [275 kB]
Get:23 http://deb.debian.org/debian buster/main amd64 libc6-dev amd64 2.28-10 [2691 kB]
Get:24 http://deb.debian.org/debian buster/main amd64 libisl19 amd64 0.20-2 [587 kB]
Get:25 http://deb.debian.org/debian buster/main amd64 libmpfr6 amd64 4.0.2-1 [775 kB]
Get:26 http://deb.debian.org/debian buster/main amd64 libmpc3 amd64 1.1.0-1 [41.3 kB]
Get:27 http://deb.debian.org/debian buster/main amd64 cpp-8 amd64 8.3.0-6 [8914 kB]
Get:28 http://deb.debian.org/debian buster/main amd64 cpp amd64 4:8.3.0-1 [19.4 kB]
Get:29 http://deb.debian.org/debian buster/main amd64 libcc1-0 amd64 8.3.0-6 [46.6 kB]
Get:30 http://deb.debian.org/debian buster/main amd64 libgomp1 amd64 8.3.0-6 [75.8 kB]
Get:31 http://deb.debian.org/debian buster/main amd64 libitm1 amd64 8.3.0-6 [27.7 kB]
Get:32 http://deb.debian.org/debian buster/main amd64 libatomic1 amd64 8.3.0-6 [9032 B]
Get:33 http://deb.debian.org/debian buster/main amd64 libasan5 amd64 8.3.0-6 [362 kB]
Get:34 http://deb.debian.org/debian buster/main amd64 liblsan0 amd64 8.3.0-6 [131 kB]
Get:35 http://deb.debian.org/debian buster/main amd64 libtsan0 amd64 8.3.0-6 [283 kB]
Get:36 http://deb.debian.org/debian buster/main amd64 libubsan1 amd64 8.3.0-6 [120 kB]
Get:37 http://deb.debian.org/debian buster/main amd64 libmpx2 amd64 8.3.0-6 [11.4 kB]
Get:38 http://deb.debian.org/debian buster/main amd64 libquadmath0 amd64 8.3.0-6 [133 kB]
Get:39 http://deb.debian.org/debian buster/main amd64 libgcc-8-dev amd64 8.3.0-6 [2298 kB]
Get:40 http://deb.debian.org/debian buster/main amd64 gcc-8 amd64 8.3.0-6 [9452 kB]
Get:41 http://deb.debian.org/debian buster/main amd64 gcc amd64 4:8.3.0-1 [5196 B]
Get:42 http://deb.debian.org/debian buster/main amd64 libstdc++-8-dev amd64 8.3.0-6 [1532 kB]
Get:43 http://deb.debian.org/debian buster/main amd64 g++-8 amd64 8.3.0-6 [9752 kB]
Get:44 http://deb.debian.org/debian buster/main amd64 g++ amd64 4:8.3.0-1 [1644 B]
Get:45 http://deb.debian.org/debian buster/main amd64 make amd64 4.2.1-1.2 [341 kB]
Get:46 http://deb.debian.org/debian buster/main amd64 libdpkg-perl all 1.19.7 [1414 kB]
Get:47 http://deb.debian.org/debian buster/main amd64 patch amd64 2.7.6-3+deb10u1 [126 kB]
Get:48 http://deb.debian.org/debian buster/main amd64 dpkg-dev all 1.19.7 [1773 kB]
Get:49 http://deb.debian.org/debian buster/main amd64 build-essential amd64 12.6 [7576 B]
Get:50 http://deb.debian.org/debian buster/main amd64 gcc-8-aarch64-linux-gnu-base amd64 8.3.0-2cross1 [190 kB]
Get:51 http://deb.debian.org/debian buster/main amd64 cpp-8-aarch64-linux-gnu amd64 8.3.0-2cross1 [6251 kB]
Get:52 http://deb.debian.org/debian buster/main amd64 gcc-8-arm-linux-gnueabi-base amd64 8.3.0-2cross1 [190 kB]
Get:53 http://deb.debian.org/debian buster/main amd64 cpp-8-arm-linux-gnueabi amd64 8.3.0-2cross1 [6552 kB]
Get:54 http://deb.debian.org/debian buster/main amd64 cpp-aarch64-linux-gnu amd64 4:8.3.0-1 [16.5 kB]
Get:55 http://deb.debian.org/debian buster/main amd64 cpp-arm-linux-gnueabi amd64 4:8.3.0-1 [16.5 kB]
Get:56 http://deb.debian.org/debian buster/main amd64 gcc-8-cross-base all 8.3.0-2cross1 [185 kB]
Get:57 http://deb.debian.org/debian buster/main amd64 libc6-arm64-cross all 2.28-7cross1 [1312 kB]
Get:58 http://deb.debian.org/debian buster/main amd64 libgcc1-arm64-cross all 1:8.3.0-2cross1 [34.2 kB]
Get:59 http://deb.debian.org/debian buster/main amd64 libgomp1-arm64-cross all 8.3.0-2cross1 [66.3 kB]
Get:60 http://deb.debian.org/debian buster/main amd64 libitm1-arm64-cross all 8.3.0-2cross1 [23.6 kB]
Get:61 http://deb.debian.org/debian buster/main amd64 libatomic1-arm64-cross all 8.3.0-2cross1 [8620 B]
Get:62 http://deb.debian.org/debian buster/main amd64 libstdc++6-arm64-cross all 8.3.0-2cross1 [325 kB]
Get:63 http://deb.debian.org/debian buster/main amd64 libasan5-arm64-cross all 8.3.0-2cross1 [321 kB]
Get:64 http://deb.debian.org/debian buster/main amd64 liblsan0-arm64-cross all 8.3.0-2cross1 [117 kB]
Get:65 http://deb.debian.org/debian buster/main amd64 libtsan0-arm64-cross all 8.3.0-2cross1 [255 kB]
Get:66 http://deb.debian.org/debian buster/main amd64 libubsan1-arm64-cross all 8.3.0-2cross1 [110 kB]
Get:67 http://deb.debian.org/debian buster/main amd64 libgcc-8-dev-arm64-cross all 8.3.0-2cross1 [833 kB]
Get:68 http://deb.debian.org/debian buster/main amd64 gcc-8-aarch64-linux-gnu amd64 8.3.0-2cross1 [6681 kB]
Get:69 http://deb.debian.org/debian buster/main amd64 libc6-armel-cross all 2.28-7cross1 [1189 kB]
Get:70 http://deb.debian.org/debian buster/main amd64 libgcc1-armel-cross all 1:8.3.0-2cross1 [38.5 kB]
Get:71 http://deb.debian.org/debian buster/main amd64 libgomp1-armel-cross all 8.3.0-2cross1 [65.6 kB]
Get:72 http://deb.debian.org/debian buster/main amd64 libatomic1-armel-cross all 8.3.0-2cross1 [8820 B]
Get:73 http://deb.debian.org/debian buster/main amd64 libstdc++6-armel-cross all 8.3.0-2cross1 [288 kB]
Get:74 http://deb.debian.org/debian buster/main amd64 libasan5-armel-cross all 8.3.0-2cross1 [311 kB]
Get:75 http://deb.debian.org/debian buster/main amd64 libubsan1-armel-cross all 8.3.0-2cross1 [102 kB]
Get:76 http://deb.debian.org/debian buster/main amd64 libgcc-8-dev-armel-cross all 8.3.0-2cross1 [601 kB]
Get:77 http://deb.debian.org/debian buster/main amd64 gcc-8-arm-linux-gnueabi amd64 8.3.0-2cross1 [6975 kB]
Get:78 http://deb.debian.org/debian buster/main amd64 gcc-aarch64-linux-gnu amd64 4:8.3.0-1 [1456 B]
Get:79 http://deb.debian.org/debian buster/main amd64 gcc-arm-linux-gnueabi amd64 4:8.3.0-1 [1460 B]
Get:80 http://deb.debian.org/debian buster/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-1 [214 kB]
Get:81 http://deb.debian.org/debian buster/main amd64 libelf-dev amd64 0.176-1.1 [72.1 kB]
Get:82 http://deb.debian.org/debian buster/main amd64 libssl-dev amd64 1.1.1d-0+deb10u6 [1794 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 93.3 MB in 3s (31.4 MB/s)
Selecting previously unselected package libsigsegv2:amd64.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 9978 files and directories currently installed.)
Preparing to unpack .../00-libsigsegv2_2.12-2_amd64.deb ...
Unpacking libsigsegv2:amd64 (2.12-2) ...
Selecting previously unselected package m4.
Preparing to unpack .../01-m4_1.4.18-2_amd64.deb ...
Unpacking m4 (1.4.18-2) ...
Selecting previously unselected package flex.
Preparing to unpack .../02-flex_2.6.4-6.2_amd64.deb ...
Unpacking flex (2.6.4-6.2) ...
Selecting previously unselected package libpython2.7-minimal:amd64.
Preparing to unpack .../03-libpython2.7-minimal_2.7.16-2+deb10u1_amd64.deb ...
Unpacking libpython2.7-minimal:amd64 (2.7.16-2+deb10u1) ...
Selecting previously unselected package python2.7-minimal.
Preparing to unpack .../04-python2.7-minimal_2.7.16-2+deb10u1_amd64.deb ...
Unpacking python2.7-minimal (2.7.16-2+deb10u1) ...
Selecting previously unselected package bzip2.
Preparing to unpack .../05-bzip2_1.0.6-9.2~deb10u1_amd64.deb ...
Unpacking bzip2 (1.0.6-9.2~deb10u1) ...
Selecting previously unselected package python2-minimal.
Preparing to unpack .../06-python2-minimal_2.7.16-1_amd64.deb ...
Unpacking python2-minimal (2.7.16-1) ...
Selecting previously unselected package python-minimal.
Preparing to unpack .../07-python-minimal_2.7.16-1_amd64.deb ...
Unpacking python-minimal (2.7.16-1) ...
Selecting previously unselected package libpcre2-8-0:amd64.
Preparing to unpack .../08-libpcre2-8-0_10.32-5_amd64.deb ...
Unpacking libpcre2-8-0:amd64 (10.32-5) ...
Selecting previously unselected package wget.
Preparing to unpack .../09-wget_1.20.1-1.1_amd64.deb ...
Unpacking wget (1.20.1-1.1) ...
Selecting previously unselected package xz-utils.
Preparing to unpack .../10-xz-utils_5.2.4-1_amd64.deb ...
Unpacking xz-utils (5.2.4-1) ...
Selecting previously unselected package bc.
Preparing to unpack .../11-bc_1.07.1-2+b1_amd64.deb ...
Unpacking bc (1.07.1-2+b1) ...
Selecting previously unselected package binutils-common:amd64.
Preparing to unpack .../12-binutils-common_2.31.1-16_amd64.deb ...
Unpacking binutils-common:amd64 (2.31.1-16) ...
Selecting previously unselected package libbinutils:amd64.
Preparing to unpack .../13-libbinutils_2.31.1-16_amd64.deb ...
Unpacking libbinutils:amd64 (2.31.1-16) ...
Selecting previously unselected package binutils-x86-64-linux-gnu.
Preparing to unpack .../14-binutils-x86-64-linux-gnu_2.31.1-16_amd64.deb ...
Unpacking binutils-x86-64-linux-gnu (2.31.1-16) ...
Selecting previously unselected package binutils.
Preparing to unpack .../15-binutils_2.31.1-16_amd64.deb ...
Unpacking binutils (2.31.1-16) ...
Selecting previously unselected package binutils-aarch64-linux-gnu.
Preparing to unpack .../16-binutils-aarch64-linux-gnu_2.31.1-16_amd64.deb ...
Unpacking binutils-aarch64-linux-gnu (2.31.1-16) ...
Selecting previously unselected package binutils-arm-linux-gnueabi.
Preparing to unpack .../17-binutils-arm-linux-gnueabi_2.31.1-16_amd64.deb ...
Unpacking binutils-arm-linux-gnueabi (2.31.1-16) ...
Selecting previously unselected package libbison-dev:amd64.
Preparing to unpack .../18-libbison-dev_2%3a3.3.2.dfsg-1_amd64.deb ...
Unpacking libbison-dev:amd64 (2:3.3.2.dfsg-1) ...
Selecting previously unselected package bison.
Preparing to unpack .../19-bison_2%3a3.3.2.dfsg-1_amd64.deb ...
Unpacking bison (2:3.3.2.dfsg-1) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../20-libc-dev-bin_2.28-10_amd64.deb ...
Unpacking libc-dev-bin (2.28-10) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../21-linux-libc-dev_4.19.194-3_amd64.deb ...
Unpacking linux-libc-dev:amd64 (4.19.194-3) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../22-libc6-dev_2.28-10_amd64.deb ...
Unpacking libc6-dev:amd64 (2.28-10) ...
Selecting previously unselected package libisl19:amd64.
Preparing to unpack .../23-libisl19_0.20-2_amd64.deb ...
Unpacking libisl19:amd64 (0.20-2) ...
Selecting previously unselected package libmpfr6:amd64.
Preparing to unpack .../24-libmpfr6_4.0.2-1_amd64.deb ...
Unpacking libmpfr6:amd64 (4.0.2-1) ...
Selecting previously unselected package libmpc3:amd64.
Preparing to unpack .../25-libmpc3_1.1.0-1_amd64.deb ...
Unpacking libmpc3:amd64 (1.1.0-1) ...
Selecting previously unselected package cpp-8.
Preparing to unpack .../26-cpp-8_8.3.0-6_amd64.deb ...
Unpacking cpp-8 (8.3.0-6) ...
Selecting previously unselected package cpp.
Preparing to unpack .../27-cpp_4%3a8.3.0-1_amd64.deb ...
Unpacking cpp (4:8.3.0-1) ...
Selecting previously unselected package libcc1-0:amd64.
Preparing to unpack .../28-libcc1-0_8.3.0-6_amd64.deb ...
Unpacking libcc1-0:amd64 (8.3.0-6) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../29-libgomp1_8.3.0-6_amd64.deb ...
Unpacking libgomp1:amd64 (8.3.0-6) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../30-libitm1_8.3.0-6_amd64.deb ...
Unpacking libitm1:amd64 (8.3.0-6) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../31-libatomic1_8.3.0-6_amd64.deb ...
Unpacking libatomic1:amd64 (8.3.0-6) ...
Selecting previously unselected package libasan5:amd64.
Preparing to unpack .../32-libasan5_8.3.0-6_amd64.deb ...
Unpacking libasan5:amd64 (8.3.0-6) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../33-liblsan0_8.3.0-6_amd64.deb ...
Unpacking liblsan0:amd64 (8.3.0-6) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../34-libtsan0_8.3.0-6_amd64.deb ...
Unpacking libtsan0:amd64 (8.3.0-6) ...
Selecting previously unselected package libubsan1:amd64.
Preparing to unpack .../35-libubsan1_8.3.0-6_amd64.deb ...
Unpacking libubsan1:amd64 (8.3.0-6) ...
Selecting previously unselected package libmpx2:amd64.
Preparing to unpack .../36-libmpx2_8.3.0-6_amd64.deb ...
Unpacking libmpx2:amd64 (8.3.0-6) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../37-libquadmath0_8.3.0-6_amd64.deb ...
Unpacking libquadmath0:amd64 (8.3.0-6) ...
Selecting previously unselected package libgcc-8-dev:amd64.
Preparing to unpack .../38-libgcc-8-dev_8.3.0-6_amd64.deb ...
Unpacking libgcc-8-dev:amd64 (8.3.0-6) ...
Selecting previously unselected package gcc-8.
Preparing to unpack .../39-gcc-8_8.3.0-6_amd64.deb ...
Unpacking gcc-8 (8.3.0-6) ...
Selecting previously unselected package gcc.
Preparing to unpack .../40-gcc_4%3a8.3.0-1_amd64.deb ...
Unpacking gcc (4:8.3.0-1) ...
Selecting previously unselected package libstdc++-8-dev:amd64.
Preparing to unpack .../41-libstdc++-8-dev_8.3.0-6_amd64.deb ...
Unpacking libstdc++-8-dev:amd64 (8.3.0-6) ...
Selecting previously unselected package g++-8.
Preparing to unpack .../42-g++-8_8.3.0-6_amd64.deb ...
Unpacking g++-8 (8.3.0-6) ...
Selecting previously unselected package g++.
Preparing to unpack .../43-g++_4%3a8.3.0-1_amd64.deb ...
Unpacking g++ (4:8.3.0-1) ...
Selecting previously unselected package make.
Preparing to unpack .../44-make_4.2.1-1.2_amd64.deb ...
Unpacking make (4.2.1-1.2) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack .../45-libdpkg-perl_1.19.7_all.deb ...
Unpacking libdpkg-perl (1.19.7) ...
Selecting previously unselected package patch.
Preparing to unpack .../46-patch_2.7.6-3+deb10u1_amd64.deb ...
Unpacking patch (2.7.6-3+deb10u1) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../47-dpkg-dev_1.19.7_all.deb ...
Unpacking dpkg-dev (1.19.7) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../48-build-essential_12.6_amd64.deb ...
Unpacking build-essential (12.6) ...
Selecting previously unselected package gcc-8-aarch64-linux-gnu-base:amd64.
Preparing to unpack .../49-gcc-8-aarch64-linux-gnu-base_8.3.0-2cross1_amd64.deb ...
Unpacking gcc-8-aarch64-linux-gnu-base:amd64 (8.3.0-2cross1) ...
Selecting previously unselected package cpp-8-aarch64-linux-gnu.
Preparing to unpack .../50-cpp-8-aarch64-linux-gnu_8.3.0-2cross1_amd64.deb ...
Unpacking cpp-8-aarch64-linux-gnu (8.3.0-2cross1) ...
Selecting previously unselected package gcc-8-arm-linux-gnueabi-base:amd64.
Preparing to unpack .../51-gcc-8-arm-linux-gnueabi-base_8.3.0-2cross1_amd64.deb ...
Unpacking gcc-8-arm-linux-gnueabi-base:amd64 (8.3.0-2cross1) ...
Selecting previously unselected package cpp-8-arm-linux-gnueabi.
Preparing to unpack .../52-cpp-8-arm-linux-gnueabi_8.3.0-2cross1_amd64.deb ...
Unpacking cpp-8-arm-linux-gnueabi (8.3.0-2cross1) ...
Selecting previously unselected package cpp-aarch64-linux-gnu.
Preparing to unpack .../53-cpp-aarch64-linux-gnu_4%3a8.3.0-1_amd64.deb ...
Unpacking cpp-aarch64-linux-gnu (4:8.3.0-1) ...
Selecting previously unselected package cpp-arm-linux-gnueabi.
Preparing to unpack .../54-cpp-arm-linux-gnueabi_4%3a8.3.0-1_amd64.deb ...
Unpacking cpp-arm-linux-gnueabi (4:8.3.0-1) ...
Selecting previously unselected package gcc-8-cross-base.
Preparing to unpack .../55-gcc-8-cross-base_8.3.0-2cross1_all.deb ...
Unpacking gcc-8-cross-base (8.3.0-2cross1) ...
Selecting previously unselected package libc6-arm64-cross.
Preparing to unpack .../56-libc6-arm64-cross_2.28-7cross1_all.deb ...
Unpacking libc6-arm64-cross (2.28-7cross1) ...
Selecting previously unselected package libgcc1-arm64-cross.
Preparing to unpack .../57-libgcc1-arm64-cross_1%3a8.3.0-2cross1_all.deb ...
Unpacking libgcc1-arm64-cross (1:8.3.0-2cross1) ...
Selecting previously unselected package libgomp1-arm64-cross.
Preparing to unpack .../58-libgomp1-arm64-cross_8.3.0-2cross1_all.deb ...
Unpacking libgomp1-arm64-cross (8.3.0-2cross1) ...
Selecting previously unselected package libitm1-arm64-cross.
Preparing to unpack .../59-libitm1-arm64-cross_8.3.0-2cross1_all.deb ...
Unpacking libitm1-arm64-cross (8.3.0-2cross1) ...
Selecting previously unselected package libatomic1-arm64-cross.
Preparing to unpack .../60-libatomic1-arm64-cross_8.3.0-2cross1_all.deb ...
Unpacking libatomic1-arm64-cross (8.3.0-2cross1) ...
Selecting previously unselected package libstdc++6-arm64-cross.
Preparing to unpack .../61-libstdc++6-arm64-cross_8.3.0-2cross1_all.deb ...
Unpacking libstdc++6-arm64-cross (8.3.0-2cross1) ...
Selecting previously unselected package libasan5-arm64-cross.
Preparing to unpack .../62-libasan5-arm64-cross_8.3.0-2cross1_all.deb ...
Unpacking libasan5-arm64-cross (8.3.0-2cross1) ...
Selecting previously unselected package liblsan0-arm64-cross.
Preparing to unpack .../63-liblsan0-arm64-cross_8.3.0-2cross1_all.deb ...
Unpacking liblsan0-arm64-cross (8.3.0-2cross1) ...
Selecting previously unselected package libtsan0-arm64-cross.
Preparing to unpack .../64-libtsan0-arm64-cross_8.3.0-2cross1_all.deb ...
Unpacking libtsan0-arm64-cross (8.3.0-2cross1) ...
Selecting previously unselected package libubsan1-arm64-cross.
Preparing to unpack .../65-libubsan1-arm64-cross_8.3.0-2cross1_all.deb ...
Unpacking libubsan1-arm64-cross (8.3.0-2cross1) ...
Selecting previously unselected package libgcc-8-dev-arm64-cross.
Preparing to unpack .../66-libgcc-8-dev-arm64-cross_8.3.0-2cross1_all.deb ...
Unpacking libgcc-8-dev-arm64-cross (8.3.0-2cross1) ...
Selecting previously unselected package gcc-8-aarch64-linux-gnu.
Preparing to unpack .../67-gcc-8-aarch64-linux-gnu_8.3.0-2cross1_amd64.deb ...
Unpacking gcc-8-aarch64-linux-gnu (8.3.0-2cross1) ...
Selecting previously unselected package libc6-armel-cross.
Preparing to unpack .../68-libc6-armel-cross_2.28-7cross1_all.deb ...
Unpacking libc6-armel-cross (2.28-7cross1) ...
Selecting previously unselected package libgcc1-armel-cross.
Preparing to unpack .../69-libgcc1-armel-cross_1%3a8.3.0-2cross1_all.deb ...
Unpacking libgcc1-armel-cross (1:8.3.0-2cross1) ...
Selecting previously unselected package libgomp1-armel-cross.
Preparing to unpack .../70-libgomp1-armel-cross_8.3.0-2cross1_all.deb ...
Unpacking libgomp1-armel-cross (8.3.0-2cross1) ...
Selecting previously unselected package libatomic1-armel-cross.
Preparing to unpack .../71-libatomic1-armel-cross_8.3.0-2cross1_all.deb ...
Unpacking libatomic1-armel-cross (8.3.0-2cross1) ...
Selecting previously unselected package libstdc++6-armel-cross.
Preparing to unpack .../72-libstdc++6-armel-cross_8.3.0-2cross1_all.deb ...
Unpacking libstdc++6-armel-cross (8.3.0-2cross1) ...
Selecting previously unselected package libasan5-armel-cross.
Preparing to unpack .../73-libasan5-armel-cross_8.3.0-2cross1_all.deb ...
Unpacking libasan5-armel-cross (8.3.0-2cross1) ...
Selecting previously unselected package libubsan1-armel-cross.
Preparing to unpack .../74-libubsan1-armel-cross_8.3.0-2cross1_all.deb ...
Unpacking libubsan1-armel-cross (8.3.0-2cross1) ...
Selecting previously unselected package libgcc-8-dev-armel-cross.
Preparing to unpack .../75-libgcc-8-dev-armel-cross_8.3.0-2cross1_all.deb ...
Unpacking libgcc-8-dev-armel-cross (8.3.0-2cross1) ...
Selecting previously unselected package gcc-8-arm-linux-gnueabi.
Preparing to unpack .../76-gcc-8-arm-linux-gnueabi_8.3.0-2cross1_amd64.deb ...
Unpacking gcc-8-arm-linux-gnueabi (8.3.0-2cross1) ...
Selecting previously unselected package gcc-aarch64-linux-gnu.
Preparing to unpack .../77-gcc-aarch64-linux-gnu_4%3a8.3.0-1_amd64.deb ...
Unpacking gcc-aarch64-linux-gnu (4:8.3.0-1) ...
Selecting previously unselected package gcc-arm-linux-gnueabi.
Preparing to unpack .../78-gcc-arm-linux-gnueabi_4%3a8.3.0-1_amd64.deb ...
Unpacking gcc-arm-linux-gnueabi (4:8.3.0-1) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../79-zlib1g-dev_1%3a1.2.11.dfsg-1_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.11.dfsg-1) ...
Selecting previously unselected package libelf-dev:amd64.
Preparing to unpack .../80-libelf-dev_0.176-1.1_amd64.deb ...
Unpacking libelf-dev:amd64 (0.176-1.1) ...
Selecting previously unselected package libssl-dev:amd64.
Preparing to unpack .../81-libssl-dev_1.1.1d-0+deb10u6_amd64.deb ...
Unpacking libssl-dev:amd64 (1.1.1d-0+deb10u6) ...
Setting up libbison-dev:amd64 (2:3.3.2.dfsg-1) ...
Setting up gcc-8-arm-linux-gnueabi-base:amd64 (8.3.0-2cross1) ...
Setting up gcc-8-cross-base (8.3.0-2cross1) ...
Setting up binutils-common:amd64 (2.31.1-16) ...
Setting up linux-libc-dev:amd64 (4.19.194-3) ...
Setting up bc (1.07.1-2+b1) ...
Setting up binutils-aarch64-linux-gnu (2.31.1-16) ...
Setting up libgomp1:amd64 (8.3.0-6) ...
Setting up bzip2 (1.0.6-9.2~deb10u1) ...
Setting up gcc-8-aarch64-linux-gnu-base:amd64 (8.3.0-2cross1) ...
Setting up libasan5:amd64 (8.3.0-6) ...
Setting up libpython2.7-minimal:amd64 (2.7.16-2+deb10u1) ...
Setting up make (4.2.1-1.2) ...
Setting up libmpfr6:amd64 (4.0.2-1) ...
Setting up python2.7-minimal (2.7.16-2+deb10u1) ...
Setting up libsigsegv2:amd64 (2.12-2) ...
Setting up xz-utils (5.2.4-1) ...
update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/lzma.1.gz because associated file /usr/share/man/man1/xz.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/unlzma.1.gz because associated file /usr/share/man/man1/unxz.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/lzcat.1.gz because associated file /usr/share/man/man1/xzcat.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/lzmore.1.gz because associated file /usr/share/man/man1/xzmore.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/lzless.1.gz because associated file /usr/share/man/man1/xzless.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/lzdiff.1.gz because associated file /usr/share/man/man1/xzdiff.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/lzcmp.1.gz because associated file /usr/share/man/man1/xzcmp.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/lzgrep.1.gz because associated file /usr/share/man/man1/xzgrep.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/lzegrep.1.gz because associated file /usr/share/man/man1/xzegrep.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/lzfgrep.1.gz because associated file /usr/share/man/man1/xzfgrep.1.gz (of link group lzma) doesn't exist
Setting up libc6-arm64-cross (2.28-7cross1) ...
Setting up libquadmath0:amd64 (8.3.0-6) ...
Setting up libssl-dev:amd64 (1.1.1d-0+deb10u6) ...
Setting up libmpc3:amd64 (1.1.0-1) ...
Setting up libatomic1:amd64 (8.3.0-6) ...
Setting up patch (2.7.6-3+deb10u1) ...
Setting up libitm1-arm64-cross (8.3.0-2cross1) ...
Setting up python2-minimal (2.7.16-1) ...
Setting up libpcre2-8-0:amd64 (10.32-5) ...
Setting up libdpkg-perl (1.19.7) ...
Setting up libc6-armel-cross (2.28-7cross1) ...
Setting up libmpx2:amd64 (8.3.0-6) ...
Setting up libubsan1:amd64 (8.3.0-6) ...
Setting up libisl19:amd64 (0.20-2) ...
Setting up libbinutils:amd64 (2.31.1-16) ...
Setting up cpp-8 (8.3.0-6) ...
Setting up libc-dev-bin (2.28-10) ...
Setting up libcc1-0:amd64 (8.3.0-6) ...
Setting up liblsan0:amd64 (8.3.0-6) ...
Setting up libitm1:amd64 (8.3.0-6) ...
Setting up binutils-x86-64-linux-gnu (2.31.1-16) ...
Setting up libtsan0:amd64 (8.3.0-6) ...
Setting up libatomic1-arm64-cross (8.3.0-2cross1) ...
Setting up libgcc1-arm64-cross (1:8.3.0-2cross1) ...
Setting up libgomp1-arm64-cross (8.3.0-2cross1) ...
Setting up binutils-arm-linux-gnueabi (2.31.1-16) ...
Setting up libgomp1-armel-cross (8.3.0-2cross1) ...
Setting up wget (1.20.1-1.1) ...
Setting up m4 (1.4.18-2) ...
Setting up binutils (2.31.1-16) ...
Setting up libatomic1-armel-cross (8.3.0-2cross1) ...
Setting up cpp-8-arm-linux-gnueabi (8.3.0-2cross1) ...
Setting up dpkg-dev (1.19.7) ...
Setting up libstdc++6-arm64-cross (8.3.0-2cross1) ...
Setting up libgcc1-armel-cross (1:8.3.0-2cross1) ...
Setting up cpp-arm-linux-gnueabi (4:8.3.0-1) ...
Setting up python-minimal (2.7.16-1) ...
Setting up cpp-8-aarch64-linux-gnu (8.3.0-2cross1) ...
Setting up libgcc-8-dev:amd64 (8.3.0-6) ...
Setting up cpp (4:8.3.0-1) ...
Setting up bison (2:3.3.2.dfsg-1) ...
update-alternatives: using /usr/bin/bison.yacc to provide /usr/bin/yacc (yacc) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/yacc.1.gz because associated file /usr/share/man/man1/bison.yacc.1.gz (of link group yacc) doesn't exist
Setting up libc6-dev:amd64 (2.28-10) ...
Setting up libstdc++-8-dev:amd64 (8.3.0-6) ...
Setting up liblsan0-arm64-cross (8.3.0-2cross1) ...
Setting up flex (2.6.4-6.2) ...
Setting up gcc-8 (8.3.0-6) ...
Setting up libubsan1-arm64-cross (8.3.0-2cross1) ...
Setting up libtsan0-arm64-cross (8.3.0-2cross1) ...
Setting up libstdc++6-armel-cross (8.3.0-2cross1) ...
Setting up gcc (4:8.3.0-1) ...
Setting up libasan5-arm64-cross (8.3.0-2cross1) ...
Setting up cpp-aarch64-linux-gnu (4:8.3.0-1) ...
Setting up libasan5-armel-cross (8.3.0-2cross1) ...
Setting up libgcc-8-dev-arm64-cross (8.3.0-2cross1) ...
Setting up libubsan1-armel-cross (8.3.0-2cross1) ...
Setting up zlib1g-dev:amd64 (1:1.2.11.dfsg-1) ...
Setting up g++-8 (8.3.0-6) ...
Setting up gcc-8-aarch64-linux-gnu (8.3.0-2cross1) ...
Setting up libgcc-8-dev-armel-cross (8.3.0-2cross1) ...
Setting up libelf-dev:amd64 (0.176-1.1) ...
Setting up g++ (4:8.3.0-1) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up gcc-8-arm-linux-gnueabi (8.3.0-2cross1) ...
Setting up build-essential (12.6) ...
Setting up gcc-aarch64-linux-gnu (4:8.3.0-1) ...
Setting up gcc-arm-linux-gnueabi (4:8.3.0-1) ...
Processing triggers for libc-bin (2.28-10) ...
Removing intermediate container f0ab25c376a1
 ---> 4afaa15f70a6
Step 3/14 : ADD example_module /usr/src/app/example_module_headers_src/
 ---> 1696b90978db
Step 4/14 : ADD example_module /usr/src/app/example_module_headers_built/
 ---> 0256b8d44aac
Step 5/14 : ADD kernel_source.tar.gz /usr/src/app/kernel_source
 ---> 49bd0b88fb87
Step 6/14 : ADD kernel_modules_headers.tar.gz /usr/src/app/
 ---> ec6842ceab10
Step 7/14 : WORKDIR /usr/src/app
 ---> Running in 86792b32fe1f
Removing intermediate container 86792b32fe1f
 ---> 0d70f0372c52
Step 8/14 : RUN if [ -f /lib64/ld-linux-x86-64.so.2 ]; then     if [ ! -f /lib/ld-linux-x86-64.so.2 ]; then         ln -s /lib64/ld-linux-x86-64.so.2  /lib/ld-linux-x86-64.so.2 ;  fi;     fi;
 ---> Running in f7d97aec4147
Removing intermediate container f7d97aec4147
 ---> 735651d3c815
Step 9/14 : ARG kernel_arch
 ---> Running in 66c9b5907740
Removing intermediate container 66c9b5907740
 ---> 50420ea99006
Step 10/14 : ARG cross_compile_prefix
 ---> Running in f187364b71f6
Removing intermediate container f187364b71f6
 ---> de8b47573178
Step 11/14 : RUN ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_source/*/build modules_prepare
 ---> Running in cf7330a1d828
make: Entering directory '/usr/src/app/kernel_source/5.10.43-yocto-standard/build'
  SYNC    include/config/auto.conf.cmd
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  HOSTLD  scripts/kconfig/conf
*
* Restart config...
*
*
* BPF based packet filtering framework (BPFILTER)
*
BPF based packet filtering framework (BPFILTER) (BPFILTER) [Y/n/?] y
  bpfilter kernel module with user mode helper (BPFILTER_UMH) [M/n/y/?] (NEW) 
Error in reading or end of file.

Error in reading or end of file.

Error in reading or end of file.

*
* Sample kernel code
*
Sample kernel code (SAMPLES) [Y/n/?] y
  auxdisplay sample (SAMPLE_AUXDISPLAY) [N/y/?] (NEW) 
  Build trace_events examples -- loadable modules only (SAMPLE_TRACE_EVENTS) [N/m/?] n
  Build trace_printk module - tests various trace_printk formats (SAMPLE_TRACE_PRINTK) [M/n/?] m
  Build register_ftrace_direct() example (SAMPLE_FTRACE_DIRECT) [N/m/?] n
  Build sample module for kernel access to Ftrace instancess (SAMPLE_TRACE_ARRAY) [N/m/?] n
  Build kobject examples (SAMPLE_KOBJECT) [N/m/y/?] n
  Build kprobes examples -- loadable modules only (SAMPLE_KPROBES) [N/m/?] n
  Build kernel hardware breakpoint examples -- loadable module only (SAMPLE_HW_BREAKPOINT) [N/m/?] n
  Build kfifo examples -- loadable modules only (SAMPLE_KFIFO) [N/m/?] n
  Build kdb command example -- loadable modules only (SAMPLE_KDB) [N/m/?] n
  Build rpmsg client sample -- loadable modules only (SAMPLE_RPMSG_CLIENT) [N/m/?] n
  Build configfs patching sample -- loadable modules only (SAMPLE_CONFIGFS) [N/m/?] n
  Build VFIO mtty example mediated device sample code -- loadable modules only (SAMPLE_VFIO_MDEV_MTTY) [N/m/?] n
  Build VFIO mdpy example mediated device sample code -- loadable modules only (SAMPLE_VFIO_MDEV_MDPY) [N/m/?] n
  Build VFIO mdpy example guest fbdev driver -- loadable module only (SAMPLE_VFIO_MDEV_MDPY_FB) [N/m/?] n
  Build VFIO mdpy example mediated device sample code -- loadable modules only (SAMPLE_VFIO_MDEV_MBOCHS) [N/m/?] n
  watchdog sample (SAMPLE_WATCHDOG) [N/y/?] (NEW) 
  SYSTBL  arch/x86/include/generated/asm/syscalls_32.h
  SYSHDR  arch/x86/include/generated/asm/unistd_32_ia32.h
  SYSHDR  arch/x86/include/generated/asm/unistd_64_x32.h
  SYSTBL  arch/x86/include/generated/asm/syscalls_64.h
  HYPERCALLS arch/x86/include/generated/asm/xen-hypercalls.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_32.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_64.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_x32.h
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_64.o
  HOSTCC  arch/x86/tools/relocs_common.o
  HOSTLD  arch/x86/tools/relocs
  HOSTCC  scripts/selinux/genheaders/genheaders
  HOSTCC  scripts/selinux/mdp/mdp
  HOSTCC  scripts/bin2c
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/recordmcount
  HOSTCC  scripts/sorttable
  HOSTCC  scripts/asn1_compiler
  HOSTCC  scripts/sign-file
  HOSTCC  scripts/extract-cert
  HOSTCC  scripts/insert-sys-cert
  WRAP    arch/x86/include/generated/uapi/asm/bpf_perf_event.h
  WRAP    arch/x86/include/generated/uapi/asm/errno.h
  WRAP    arch/x86/include/generated/uapi/asm/fcntl.h
  WRAP    arch/x86/include/generated/uapi/asm/ioctl.h
  WRAP    arch/x86/include/generated/uapi/asm/ioctls.h
  WRAP    arch/x86/include/generated/uapi/asm/ipcbuf.h
  WRAP    arch/x86/include/generated/uapi/asm/param.h
  WRAP    arch/x86/include/generated/uapi/asm/poll.h
  WRAP    arch/x86/include/generated/uapi/asm/resource.h
  WRAP    arch/x86/include/generated/uapi/asm/socket.h
  WRAP    arch/x86/include/generated/uapi/asm/sockios.h
  WRAP    arch/x86/include/generated/uapi/asm/termbits.h
  WRAP    arch/x86/include/generated/uapi/asm/termios.h
  WRAP    arch/x86/include/generated/uapi/asm/types.h
  WRAP    arch/x86/include/generated/asm/early_ioremap.h
  WRAP    arch/x86/include/generated/asm/export.h
  WRAP    arch/x86/include/generated/asm/mcs_spinlock.h
  WRAP    arch/x86/include/generated/asm/irq_regs.h
  WRAP    arch/x86/include/generated/asm/local64.h
  WRAP    arch/x86/include/generated/asm/mm-arch-hooks.h
  WRAP    arch/x86/include/generated/asm/mmiowb.h
  WRAP    arch/x86/include/generated/asm/module.lds.h
  WRAP    arch/x86/include/generated/asm/rwonce.h
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  CC      scripts/mod/devicetable-offsets.s
  UPD     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
scripts/Makefile.build:414: warning: overriding recipe for target 'modules.order'
Makefile:1421: warning: ignoring old recipe for target 'modules.order'
  DESCEND  objtool
  HOSTCC   /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/fixdep.o
  HOSTLD   /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/fixdep-in.o
  LINK     /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/fixdep
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/exec-cmd.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/help.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/pager.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/parse-options.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/run-command.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/sigchain.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/subcmd-config.o
  LD       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/libsubcmd-in.o
  AR       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/libsubcmd.a
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/arch/x86/special.o
  MKDIR    /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/arch/x86/lib/
  GEN      /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/arch/x86/lib/inat-tables.c
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/arch/x86/decode.o
  LD       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/arch/x86/objtool-in.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/weak.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/check.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/special.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/orc_gen.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/orc_dump.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/builtin-check.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/builtin-orc.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/elf.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/objtool.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/libstring.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/libctype.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/str_error_r.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/librbtree.o
  LD       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/objtool-in.o
  LINK     /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/objtool
  LDS     scripts/module.lds
make: Leaving directory '/usr/src/app/kernel_source/5.10.43-yocto-standard/build'
Removing intermediate container cf7330a1d828
 ---> 918464c206ae
Step 12/14 : RUN ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_source/*/build/ M=/usr/src/app/example_module_headers_src
 ---> Running in 80cfb1ae7a92
make: Entering directory '/usr/src/app/kernel_source/5.10.43-yocto-standard/build'
  CC [M]  /usr/src/app/example_module_headers_src/hello.o
  MODPOST /usr/src/app/example_module_headers_src/Module.symvers
WARNING: modpost: missing MODULE_LICENSE() in /usr/src/app/example_module_headers_src/hello.o
  CC [M]  /usr/src/app/example_module_headers_src/hello.mod.o
  LD [M]  /usr/src/app/example_module_headers_src/hello.ko
make: Leaving directory '/usr/src/app/kernel_source/5.10.43-yocto-standard/build'
Removing intermediate container 80cfb1ae7a92
 ---> a55d5811e182
Step 13/14 : RUN ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_modules_headers/ modules_prepare
 ---> Running in 8369228fc64a
make: Entering directory '/usr/src/app/kernel_modules_headers'
  SYNC    include/config/auto.conf.cmd
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  HOSTLD  scripts/kconfig/conf
*
* Restart config...
*
*
* BPF based packet filtering framework (BPFILTER)
*
BPF based packet filtering framework (BPFILTER) (BPFILTER) [Y/n/?] y
  bpfilter kernel module with user mode helper (BPFILTER_UMH) [M/n/y/?] (NEW) 
Error in reading or end of file.

Error in reading or end of file.

Error in reading or end of file.

*
* Sample kernel code
*
Sample kernel code (SAMPLES) [Y/n/?] y
  auxdisplay sample (SAMPLE_AUXDISPLAY) [N/y/?] (NEW) 
  Build trace_events examples -- loadable modules only (SAMPLE_TRACE_EVENTS) [N/m/?] n
  Build trace_printk module - tests various trace_printk formats (SAMPLE_TRACE_PRINTK) [M/n/?] m
  Build register_ftrace_direct() example (SAMPLE_FTRACE_DIRECT) [N/m/?] n
  Build sample module for kernel access to Ftrace instancess (SAMPLE_TRACE_ARRAY) [N/m/?] n
  Build kobject examples (SAMPLE_KOBJECT) [N/m/y/?] n
  Build kprobes examples -- loadable modules only (SAMPLE_KPROBES) [N/m/?] n
  Build kernel hardware breakpoint examples -- loadable module only (SAMPLE_HW_BREAKPOINT) [N/m/?] n
  Build kfifo examples -- loadable modules only (SAMPLE_KFIFO) [N/m/?] n
  Build kdb command example -- loadable modules only (SAMPLE_KDB) [N/m/?] n
  Build rpmsg client sample -- loadable modules only (SAMPLE_RPMSG_CLIENT) [N/m/?] n
  Build configfs patching sample -- loadable modules only (SAMPLE_CONFIGFS) [N/m/?] n
  Build VFIO mtty example mediated device sample code -- loadable modules only (SAMPLE_VFIO_MDEV_MTTY) [N/m/?] n
  Build VFIO mdpy example mediated device sample code -- loadable modules only (SAMPLE_VFIO_MDEV_MDPY) [N/m/?] n
  Build VFIO mdpy example guest fbdev driver -- loadable module only (SAMPLE_VFIO_MDEV_MDPY_FB) [N/m/?] n
  Build VFIO mdpy example mediated device sample code -- loadable modules only (SAMPLE_VFIO_MDEV_MBOCHS) [N/m/?] n
  watchdog sample (SAMPLE_WATCHDOG) [N/y/?] (NEW) 
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_64.o
  HOSTCC  arch/x86/tools/relocs_common.o
  HOSTLD  arch/x86/tools/relocs
  HOSTCC  scripts/selinux/genheaders/genheaders
  HOSTCC  scripts/selinux/mdp/mdp
  HOSTCC  scripts/bin2c
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/recordmcount
  HOSTCC  scripts/sorttable
  HOSTCC  scripts/asn1_compiler
  HOSTCC  scripts/sign-file
  HOSTCC  scripts/extract-cert
  HOSTCC  scripts/insert-sys-cert
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  CC      scripts/mod/devicetable-offsets.s
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
scripts/Makefile.build:414: warning: overriding recipe for target 'modules.order'
Makefile:1421: warning: ignoring old recipe for target 'modules.order'
  DESCEND  objtool
  HOSTCC   /usr/src/app/kernel_modules_headers/tools/objtool/fixdep.o
  HOSTLD   /usr/src/app/kernel_modules_headers/tools/objtool/fixdep-in.o
  LINK     /usr/src/app/kernel_modules_headers/tools/objtool/fixdep
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/exec-cmd.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/help.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/pager.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/parse-options.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/run-command.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/sigchain.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/subcmd-config.o
  LD       /usr/src/app/kernel_modules_headers/tools/objtool/libsubcmd-in.o
  AR       /usr/src/app/kernel_modules_headers/tools/objtool/libsubcmd.a
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/arch/x86/special.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/arch/x86/decode.o
  LD       /usr/src/app/kernel_modules_headers/tools/objtool/arch/x86/objtool-in.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/weak.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/check.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/special.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/orc_gen.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/orc_dump.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/builtin-check.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/builtin-orc.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/elf.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/objtool.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/libstring.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/libctype.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/str_error_r.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/librbtree.o
  LD       /usr/src/app/kernel_modules_headers/tools/objtool/objtool-in.o
  LINK     /usr/src/app/kernel_modules_headers/tools/objtool/objtool
  LDS     scripts/module.lds
make: Leaving directory '/usr/src/app/kernel_modules_headers'
Removing intermediate container 8369228fc64a
 ---> 52e67ad4f047
Step 14/14 : RUN ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_modules_headers/ M=/usr/src/app/example_module_headers_built
 ---> Running in 930bf11de5ba
make: Entering directory '/usr/src/app/kernel_modules_headers'
  CC [M]  /usr/src/app/example_module_headers_built/hello.o
  MODPOST /usr/src/app/example_module_headers_built/Module.symvers
WARNING: modpost: missing MODULE_LICENSE() in /usr/src/app/example_module_headers_built/hello.o
  CC [M]  /usr/src/app/example_module_headers_built/hello.mod.o
  LD [M]  /usr/src/app/example_module_headers_built/hello.ko
make: Leaving directory '/usr/src/app/kernel_modules_headers'
Removing intermediate container 930bf11de5ba
 ---> aea62659fcbb
Successfully built aea62659fcbb
+ grep -o -E [a-z0-9]{12}
+ tail -n1
+ echo Sending build context to Docker daemon  29.58MB

Step 1/14 : FROM balenalib/intel-nuc-debian:buster-20210705
 ---> 1122eccf5db9
Step 2/14 : RUN apt-get update && apt-get install -y curl wget build-essential libelf-dev bc flex libssl-dev bison gcc-arm-linux-gnueabi gcc-aarch64-linux-gnu python-minimal
 ---> Running in f0ab25c376a1
Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/): 
Architecture: Intel 64-bit (x86-64) 
OS: Debian Buster 
Variant: run variant 
Default variable(s): UDEV=off 
Extra features: 
- Easy way to install packages with `install_packages <package-name>` command 
- Run anywhere with cross-build feature  (for ARM only) 
- Keep the container idling with `balena-idle` command 
- Show base image details with `balena-info` command
Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:2 http://deb.debian.org/debian buster InRelease [122 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Get:4 http://security.debian.org/debian-security buster/updates/main amd64 Packages [301 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 Packages [7907 kB]
Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [15.2 kB]
Fetched 8463 kB in 1s (5959 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version (7.64.0-4+deb10u2).
The following package was automatically installed and is no longer required:
  libidn11
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  binutils binutils-aarch64-linux-gnu binutils-arm-linux-gnueabi
  binutils-common binutils-x86-64-linux-gnu bzip2 cpp cpp-8
  cpp-8-aarch64-linux-gnu cpp-8-arm-linux-gnueabi cpp-aarch64-linux-gnu
  cpp-arm-linux-gnueabi dpkg-dev g++ g++-8 gcc gcc-8 gcc-8-aarch64-linux-gnu
  gcc-8-aarch64-linux-gnu-base gcc-8-arm-linux-gnueabi
  gcc-8-arm-linux-gnueabi-base gcc-8-cross-base libasan5 libasan5-arm64-cross
  libasan5-armel-cross libatomic1 libatomic1-arm64-cross
  libatomic1-armel-cross libbinutils libbison-dev libc-dev-bin
  libc6-arm64-cross libc6-armel-cross libc6-dev libcc1-0 libdpkg-perl
  libgcc-8-dev libgcc-8-dev-arm64-cross libgcc-8-dev-armel-cross
  libgcc1-arm64-cross libgcc1-armel-cross libgomp1 libgomp1-arm64-cross
  libgomp1-armel-cross libisl19 libitm1 libitm1-arm64-cross liblsan0
  liblsan0-arm64-cross libmpc3 libmpfr6 libmpx2 libpcre2-8-0
  libpython2.7-minimal libquadmath0 libsigsegv2 libstdc++-8-dev
  libstdc++6-arm64-cross libstdc++6-armel-cross libtsan0 libtsan0-arm64-cross
  libubsan1 libubsan1-arm64-cross libubsan1-armel-cross linux-libc-dev m4 make
  patch python2-minimal python2.7-minimal xz-utils zlib1g-dev
Suggested packages:
  binutils-doc bison-doc bzip2-doc cpp-doc gcc-8-locales debian-keyring
  flex-doc g++-multilib g++-8-multilib gcc-8-doc libstdc++6-8-dbg gcc-multilib
  manpages-dev autoconf automake libtool gdb gcc-doc gcc-8-multilib
  libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan5-dbg
  liblsan0-dbg libtsan0-dbg libubsan1-dbg libmpx2-dbg libquadmath0-dbg
  libgcc1-dbg-arm64-cross libgomp1-dbg-arm64-cross libitm1-dbg-arm64-cross
  libatomic1-dbg-arm64-cross libasan5-dbg-arm64-cross liblsan0-dbg-arm64-cross
  libtsan0-dbg-arm64-cross libubsan1-dbg-arm64-cross libmpx2-dbg-arm64-cross
  libquadmath0-dbg-arm64-cross libgcc1-dbg-armel-cross
  libgomp1-dbg-armel-cross libitm1-dbg-armel-cross libatomic1-dbg-armel-cross
  libasan5-dbg-armel-cross liblsan0-dbg-armel-cross libtsan0-dbg-armel-cross
  libubsan1-dbg-armel-cross libmpx2-dbg-armel-cross
  libquadmath0-dbg-armel-cross gdb-aarch64-linux-gnu gdb-arm-linux-gnueabi
  glibc-doc sensible-utils git bzr libssl-doc libstdc++-8-doc m4-doc make-doc
  ed diffutils-doc binfmt-support
Recommended packages:
  fakeroot libalgorithm-merge-perl libfl-dev libc6-dev-arm64-cross
  libc6-dev-armel-cross libc6-dev-arm64-cross | libc-dev-arm64-cross
  libc6-dev-armel-cross | libc-dev-armel-cross manpages manpages-dev
  libfile-fcntllock-perl liblocale-gettext-perl libpython2.7-stdlib python
  python2 python2.7
The following NEW packages will be installed:
  bc binutils binutils-aarch64-linux-gnu binutils-arm-linux-gnueabi
  binutils-common binutils-x86-64-linux-gnu bison build-essential bzip2 cpp
  cpp-8 cpp-8-aarch64-linux-gnu cpp-8-arm-linux-gnueabi cpp-aarch64-linux-gnu
  cpp-arm-linux-gnueabi dpkg-dev flex g++ g++-8 gcc gcc-8
  gcc-8-aarch64-linux-gnu gcc-8-aarch64-linux-gnu-base gcc-8-arm-linux-gnueabi
  gcc-8-arm-linux-gnueabi-base gcc-8-cross-base gcc-aarch64-linux-gnu
  gcc-arm-linux-gnueabi libasan5 libasan5-arm64-cross libasan5-armel-cross
  libatomic1 libatomic1-arm64-cross libatomic1-armel-cross libbinutils
  libbison-dev libc-dev-bin libc6-arm64-cross libc6-armel-cross libc6-dev
  libcc1-0 libdpkg-perl libelf-dev libgcc-8-dev libgcc-8-dev-arm64-cross
  libgcc-8-dev-armel-cross libgcc1-arm64-cross libgcc1-armel-cross libgomp1
  libgomp1-arm64-cross libgomp1-armel-cross libisl19 libitm1
  libitm1-arm64-cross liblsan0 liblsan0-arm64-cross libmpc3 libmpfr6 libmpx2
  libpcre2-8-0 libpython2.7-minimal libquadmath0 libsigsegv2 libssl-dev
  libstdc++-8-dev libstdc++6-arm64-cross libstdc++6-armel-cross libtsan0
  libtsan0-arm64-cross libubsan1 libubsan1-arm64-cross libubsan1-armel-cross
  linux-libc-dev m4 make patch python-minimal python2-minimal
  python2.7-minimal wget xz-utils zlib1g-dev
0 upgraded, 82 newly installed, 0 to remove and 7 not upgraded.
Need to get 93.3 MB of archives.
After this operation, 349 MB of additional disk space will be used.
Get:1 http://security.debian.org/debian-security buster/updates/main amd64 linux-libc-dev amd64 4.19.194-3 [1459 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 libsigsegv2 amd64 2.12-2 [32.8 kB]
Get:3 http://deb.debian.org/debian buster/main amd64 m4 amd64 1.4.18-2 [203 kB]
Get:4 http://deb.debian.org/debian buster/main amd64 flex amd64 2.6.4-6.2 [456 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 libpython2.7-minimal amd64 2.7.16-2+deb10u1 [395 kB]
Get:6 http://deb.debian.org/debian buster/main amd64 python2.7-minimal amd64 2.7.16-2+deb10u1 [1369 kB]
Get:7 http://deb.debian.org/debian buster/main amd64 bzip2 amd64 1.0.6-9.2~deb10u1 [48.4 kB]
Get:8 http://deb.debian.org/debian buster/main amd64 python2-minimal amd64 2.7.16-1 [41.4 kB]
Get:9 http://deb.debian.org/debian buster/main amd64 python-minimal amd64 2.7.16-1 [21.0 kB]
Get:10 http://deb.debian.org/debian buster/main amd64 libpcre2-8-0 amd64 10.32-5 [213 kB]
Get:11 http://deb.debian.org/debian buster/main amd64 wget amd64 1.20.1-1.1 [902 kB]
Get:12 http://deb.debian.org/debian buster/main amd64 xz-utils amd64 5.2.4-1 [183 kB]
Get:13 http://deb.debian.org/debian buster/main amd64 bc amd64 1.07.1-2+b1 [109 kB]
Get:14 http://deb.debian.org/debian buster/main amd64 binutils-common amd64 2.31.1-16 [2073 kB]
Get:15 http://deb.debian.org/debian buster/main amd64 libbinutils amd64 2.31.1-16 [478 kB]
Get:16 http://deb.debian.org/debian buster/main amd64 binutils-x86-64-linux-gnu amd64 2.31.1-16 [1823 kB]
Get:17 http://deb.debian.org/debian buster/main amd64 binutils amd64 2.31.1-16 [56.8 kB]
Get:18 http://deb.debian.org/debian buster/main amd64 binutils-aarch64-linux-gnu amd64 2.31.1-16 [2905 kB]
Get:19 http://deb.debian.org/debian buster/main amd64 binutils-arm-linux-gnueabi amd64 2.31.1-16 [2832 kB]
Get:20 http://deb.debian.org/debian buster/main amd64 libbison-dev amd64 2:3.3.2.dfsg-1 [500 kB]
Get:21 http://deb.debian.org/debian buster/main amd64 bison amd64 2:3.3.2.dfsg-1 [871 kB]
Get:22 http://deb.debian.org/debian buster/main amd64 libc-dev-bin amd64 2.28-10 [275 kB]
Get:23 http://deb.debian.org/debian buster/main amd64 libc6-dev amd64 2.28-10 [2691 kB]
Get:24 http://deb.debian.org/debian buster/main amd64 libisl19 amd64 0.20-2 [587 kB]
Get:25 http://deb.debian.org/debian buster/main amd64 libmpfr6 amd64 4.0.2-1 [775 kB]
Get:26 http://deb.debian.org/debian buster/main amd64 libmpc3 amd64 1.1.0-1 [41.3 kB]
Get:27 http://deb.debian.org/debian buster/main amd64 cpp-8 amd64 8.3.0-6 [8914 kB]
Get:28 http://deb.debian.org/debian buster/main amd64 cpp amd64 4:8.3.0-1 [19.4 kB]
Get:29 http://deb.debian.org/debian buster/main amd64 libcc1-0 amd64 8.3.0-6 [46.6 kB]
Get:30 http://deb.debian.org/debian buster/main amd64 libgomp1 amd64 8.3.0-6 [75.8 kB]
Get:31 http://deb.debian.org/debian buster/main amd64 libitm1 amd64 8.3.0-6 [27.7 kB]
Get:32 http://deb.debian.org/debian buster/main amd64 libatomic1 amd64 8.3.0-6 [9032 B]
Get:33 http://deb.debian.org/debian buster/main amd64 libasan5 amd64 8.3.0-6 [362 kB]
Get:34 http://deb.debian.org/debian buster/main amd64 liblsan0 amd64 8.3.0-6 [131 kB]
Get:35 http://deb.debian.org/debian buster/main amd64 libtsan0 amd64 8.3.0-6 [283 kB]
Get:36 http://deb.debian.org/debian buster/main amd64 libubsan1 amd64 8.3.0-6 [120 kB]
Get:37 http://deb.debian.org/debian buster/main amd64 libmpx2 amd64 8.3.0-6 [11.4 kB]
Get:38 http://deb.debian.org/debian buster/main amd64 libquadmath0 amd64 8.3.0-6 [133 kB]
Get:39 http://deb.debian.org/debian buster/main amd64 libgcc-8-dev amd64 8.3.0-6 [2298 kB]
Get:40 http://deb.debian.org/debian buster/main amd64 gcc-8 amd64 8.3.0-6 [9452 kB]
Get:41 http://deb.debian.org/debian buster/main amd64 gcc amd64 4:8.3.0-1 [5196 B]
Get:42 http://deb.debian.org/debian buster/main amd64 libstdc++-8-dev amd64 8.3.0-6 [1532 kB]
Get:43 http://deb.debian.org/debian buster/main amd64 g++-8 amd64 8.3.0-6 [9752 kB]
Get:44 http://deb.debian.org/debian buster/main amd64 g++ amd64 4:8.3.0-1 [1644 B]
Get:45 http://deb.debian.org/debian buster/main amd64 make amd64 4.2.1-1.2 [341 kB]
Get:46 http://deb.debian.org/debian buster/main amd64 libdpkg-perl all 1.19.7 [1414 kB]
Get:47 http://deb.debian.org/debian buster/main amd64 patch amd64 2.7.6-3+deb10u1 [126 kB]
Get:48 http://deb.debian.org/debian buster/main amd64 dpkg-dev all 1.19.7 [1773 kB]
Get:49 http://deb.debian.org/debian buster/main amd64 build-essential amd64 12.6 [7576 B]
Get:50 http://deb.debian.org/debian buster/main amd64 gcc-8-aarch64-linux-gnu-base amd64 8.3.0-2cross1 [190 kB]
Get:51 http://deb.debian.org/debian buster/main amd64 cpp-8-aarch64-linux-gnu amd64 8.3.0-2cross1 [6251 kB]
Get:52 http://deb.debian.org/debian buster/main amd64 gcc-8-arm-linux-gnueabi-base amd64 8.3.0-2cross1 [190 kB]
Get:53 http://deb.debian.org/debian buster/main amd64 cpp-8-arm-linux-gnueabi amd64 8.3.0-2cross1 [6552 kB]
Get:54 http://deb.debian.org/debian buster/main amd64 cpp-aarch64-linux-gnu amd64 4:8.3.0-1 [16.5 kB]
Get:55 http://deb.debian.org/debian buster/main amd64 cpp-arm-linux-gnueabi amd64 4:8.3.0-1 [16.5 kB]
Get:56 http://deb.debian.org/debian buster/main amd64 gcc-8-cross-base all 8.3.0-2cross1 [185 kB]
Get:57 http://deb.debian.org/debian buster/main amd64 libc6-arm64-cross all 2.28-7cross1 [1312 kB]
Get:58 http://deb.debian.org/debian buster/main amd64 libgcc1-arm64-cross all 1:8.3.0-2cross1 [34.2 kB]
Get:59 http://deb.debian.org/debian buster/main amd64 libgomp1-arm64-cross all 8.3.0-2cross1 [66.3 kB]
Get:60 http://deb.debian.org/debian buster/main amd64 libitm1-arm64-cross all 8.3.0-2cross1 [23.6 kB]
Get:61 http://deb.debian.org/debian buster/main amd64 libatomic1-arm64-cross all 8.3.0-2cross1 [8620 B]
Get:62 http://deb.debian.org/debian buster/main amd64 libstdc++6-arm64-cross all 8.3.0-2cross1 [325 kB]
Get:63 http://deb.debian.org/debian buster/main amd64 libasan5-arm64-cross all 8.3.0-2cross1 [321 kB]
Get:64 http://deb.debian.org/debian buster/main amd64 liblsan0-arm64-cross all 8.3.0-2cross1 [117 kB]
Get:65 http://deb.debian.org/debian buster/main amd64 libtsan0-arm64-cross all 8.3.0-2cross1 [255 kB]
Get:66 http://deb.debian.org/debian buster/main amd64 libubsan1-arm64-cross all 8.3.0-2cross1 [110 kB]
Get:67 http://deb.debian.org/debian buster/main amd64 libgcc-8-dev-arm64-cross all 8.3.0-2cross1 [833 kB]
Get:68 http://deb.debian.org/debian buster/main amd64 gcc-8-aarch64-linux-gnu amd64 8.3.0-2cross1 [6681 kB]
Get:69 http://deb.debian.org/debian buster/main amd64 libc6-armel-cross all 2.28-7cross1 [1189 kB]
Get:70 http://deb.debian.org/debian buster/main amd64 libgcc1-armel-cross all 1:8.3.0-2cross1 [38.5 kB]
Get:71 http://deb.debian.org/debian buster/main amd64 libgomp1-armel-cross all 8.3.0-2cross1 [65.6 kB]
Get:72 http://deb.debian.org/debian buster/main amd64 libatomic1-armel-cross all 8.3.0-2cross1 [8820 B]
Get:73 http://deb.debian.org/debian buster/main amd64 libstdc++6-armel-cross all 8.3.0-2cross1 [288 kB]
Get:74 http://deb.debian.org/debian buster/main amd64 libasan5-armel-cross all 8.3.0-2cross1 [311 kB]
Get:75 http://deb.debian.org/debian buster/main amd64 libubsan1-armel-cross all 8.3.0-2cross1 [102 kB]
Get:76 http://deb.debian.org/debian buster/main amd64 libgcc-8-dev-armel-cross all 8.3.0-2cross1 [601 kB]
Get:77 http://deb.debian.org/debian buster/main amd64 gcc-8-arm-linux-gnueabi amd64 8.3.0-2cross1 [6975 kB]
Get:78 http://deb.debian.org/debian buster/main amd64 gcc-aarch64-linux-gnu amd64 4:8.3.0-1 [1456 B]
Get:79 http://deb.debian.org/debian buster/main amd64 gcc-arm-linux-gnueabi amd64 4:8.3.0-1 [1460 B]
Get:80 http://deb.debian.org/debian buster/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-1 [214 kB]
Get:81 http://deb.debian.org/debian buster/main amd64 libelf-dev amd64 0.176-1.1 [72.1 kB]
Get:82 http://deb.debian.org/debian buster/main amd64 libssl-dev amd64 1.1.1d-0+deb10u6 [1794 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 93.3 MB in 3s (31.4 MB/s)
Selecting previously unselected package libsigsegv2:amd64.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 9978 files and directories currently installed.)
Preparing to unpack .../00-libsigsegv2_2.12-2_amd64.deb ...
Unpacking libsigsegv2:amd64 (2.12-2) ...
Selecting previously unselected package m4.
Preparing to unpack .../01-m4_1.4.18-2_amd64.deb ...
Unpacking m4 (1.4.18-2) ...
Selecting previously unselected package flex.
Preparing to unpack .../02-flex_2.6.4-6.2_amd64.deb ...
Unpacking flex (2.6.4-6.2) ...
Selecting previously unselected package libpython2.7-minimal:amd64.
Preparing to unpack .../03-libpython2.7-minimal_2.7.16-2+deb10u1_amd64.deb ...
Unpacking libpython2.7-minimal:amd64 (2.7.16-2+deb10u1) ...
Selecting previously unselected package python2.7-minimal.
Preparing to unpack .../04-python2.7-minimal_2.7.16-2+deb10u1_amd64.deb ...
Unpacking python2.7-minimal (2.7.16-2+deb10u1) ...
Selecting previously unselected package bzip2.
Preparing to unpack .../05-bzip2_1.0.6-9.2~deb10u1_amd64.deb ...
Unpacking bzip2 (1.0.6-9.2~deb10u1) ...
Selecting previously unselected package python2-minimal.
Preparing to unpack .../06-python2-minimal_2.7.16-1_amd64.deb ...
Unpacking python2-minimal (2.7.16-1) ...
Selecting previously unselected package python-minimal.
Preparing to unpack .../07-python-minimal_2.7.16-1_amd64.deb ...
Unpacking python-minimal (2.7.16-1) ...
Selecting previously unselected package libpcre2-8-0:amd64.
Preparing to unpack .../08-libpcre2-8-0_10.32-5_amd64.deb ...
Unpacking libpcre2-8-0:amd64 (10.32-5) ...
Selecting previously unselected package wget.
Preparing to unpack .../09-wget_1.20.1-1.1_amd64.deb ...
Unpacking wget (1.20.1-1.1) ...
Selecting previously unselected package xz-utils.
Preparing to unpack .../10-xz-utils_5.2.4-1_amd64.deb ...
Unpacking xz-utils (5.2.4-1) ...
Selecting previously unselected package bc.
Preparing to unpack .../11-bc_1.07.1-2+b1_amd64.deb ...
Unpacking bc (1.07.1-2+b1) ...
Selecting previously unselected package binutils-common:amd64.
Preparing to unpack .../12-binutils-common_2.31.1-16_amd64.deb ...
Unpacking binutils-common:amd64 (2.31.1-16) ...
Selecting previously unselected package libbinutils:amd64.
Preparing to unpack .../13-libbinutils_2.31.1-16_amd64.deb ...
Unpacking libbinutils:amd64 (2.31.1-16) ...
Selecting previously unselected package binutils-x86-64-linux-gnu.
Preparing to unpack .../14-binutils-x86-64-linux-gnu_2.31.1-16_amd64.deb ...
Unpacking binutils-x86-64-linux-gnu (2.31.1-16) ...
Selecting previously unselected package binutils.
Preparing to unpack .../15-binutils_2.31.1-16_amd64.deb ...
Unpacking binutils (2.31.1-16) ...
Selecting previously unselected package binutils-aarch64-linux-gnu.
Preparing to unpack .../16-binutils-aarch64-linux-gnu_2.31.1-16_amd64.deb ...
Unpacking binutils-aarch64-linux-gnu (2.31.1-16) ...
Selecting previously unselected package binutils-arm-linux-gnueabi.
Preparing to unpack .../17-binutils-arm-linux-gnueabi_2.31.1-16_amd64.deb ...
Unpacking binutils-arm-linux-gnueabi (2.31.1-16) ...
Selecting previously unselected package libbison-dev:amd64.
Preparing to unpack .../18-libbison-dev_2%3a3.3.2.dfsg-1_amd64.deb ...
Unpacking libbison-dev:amd64 (2:3.3.2.dfsg-1) ...
Selecting previously unselected package bison.
Preparing to unpack .../19-bison_2%3a3.3.2.dfsg-1_amd64.deb ...
Unpacking bison (2:3.3.2.dfsg-1) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../20-libc-dev-bin_2.28-10_amd64.deb ...
Unpacking libc-dev-bin (2.28-10) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../21-linux-libc-dev_4.19.194-3_amd64.deb ...
Unpacking linux-libc-dev:amd64 (4.19.194-3) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../22-libc6-dev_2.28-10_amd64.deb ...
Unpacking libc6-dev:amd64 (2.28-10) ...
Selecting previously unselected package libisl19:amd64.
Preparing to unpack .../23-libisl19_0.20-2_amd64.deb ...
Unpacking libisl19:amd64 (0.20-2) ...
Selecting previously unselected package libmpfr6:amd64.
Preparing to unpack .../24-libmpfr6_4.0.2-1_amd64.deb ...
Unpacking libmpfr6:amd64 (4.0.2-1) ...
Selecting previously unselected package libmpc3:amd64.
Preparing to unpack .../25-libmpc3_1.1.0-1_amd64.deb ...
Unpacking libmpc3:amd64 (1.1.0-1) ...
Selecting previously unselected package cpp-8.
Preparing to unpack .../26-cpp-8_8.3.0-6_amd64.deb ...
Unpacking cpp-8 (8.3.0-6) ...
Selecting previously unselected package cpp.
Preparing to unpack .../27-cpp_4%3a8.3.0-1_amd64.deb ...
Unpacking cpp (4:8.3.0-1) ...
Selecting previously unselected package libcc1-0:amd64.
Preparing to unpack .../28-libcc1-0_8.3.0-6_amd64.deb ...
Unpacking libcc1-0:amd64 (8.3.0-6) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../29-libgomp1_8.3.0-6_amd64.deb ...
Unpacking libgomp1:amd64 (8.3.0-6) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../30-libitm1_8.3.0-6_amd64.deb ...
Unpacking libitm1:amd64 (8.3.0-6) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../31-libatomic1_8.3.0-6_amd64.deb ...
Unpacking libatomic1:amd64 (8.3.0-6) ...
Selecting previously unselected package libasan5:amd64.
Preparing to unpack .../32-libasan5_8.3.0-6_amd64.deb ...
Unpacking libasan5:amd64 (8.3.0-6) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../33-liblsan0_8.3.0-6_amd64.deb ...
Unpacking liblsan0:amd64 (8.3.0-6) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../34-libtsan0_8.3.0-6_amd64.deb ...
Unpacking libtsan0:amd64 (8.3.0-6) ...
Selecting previously unselected package libubsan1:amd64.
Preparing to unpack .../35-libubsan1_8.3.0-6_amd64.deb ...
Unpacking libubsan1:amd64 (8.3.0-6) ...
Selecting previously unselected package libmpx2:amd64.
Preparing to unpack .../36-libmpx2_8.3.0-6_amd64.deb ...
Unpacking libmpx2:amd64 (8.3.0-6) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../37-libquadmath0_8.3.0-6_amd64.deb ...
Unpacking libquadmath0:amd64 (8.3.0-6) ...
Selecting previously unselected package libgcc-8-dev:amd64.
Preparing to unpack .../38-libgcc-8-dev_8.3.0-6_amd64.deb ...
Unpacking libgcc-8-dev:amd64 (8.3.0-6) ...
Selecting previously unselected package gcc-8.
Preparing to unpack .../39-gcc-8_8.3.0-6_amd64.deb ...
Unpacking gcc-8 (8.3.0-6) ...
Selecting previously unselected package gcc.
Preparing to unpack .../40-gcc_4%3a8.3.0-1_amd64.deb ...
Unpacking gcc (4:8.3.0-1) ...
Selecting previously unselected package libstdc++-8-dev:amd64.
Preparing to unpack .../41-libstdc++-8-dev_8.3.0-6_amd64.deb ...
Unpacking libstdc++-8-dev:amd64 (8.3.0-6) ...
Selecting previously unselected package g++-8.
Preparing to unpack .../42-g++-8_8.3.0-6_amd64.deb ...
Unpacking g++-8 (8.3.0-6) ...
Selecting previously unselected package g++.
Preparing to unpack .../43-g++_4%3a8.3.0-1_amd64.deb ...
Unpacking g++ (4:8.3.0-1) ...
Selecting previously unselected package make.
Preparing to unpack .../44-make_4.2.1-1.2_amd64.deb ...
Unpacking make (4.2.1-1.2) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack .../45-libdpkg-perl_1.19.7_all.deb ...
Unpacking libdpkg-perl (1.19.7) ...
Selecting previously unselected package patch.
Preparing to unpack .../46-patch_2.7.6-3+deb10u1_amd64.deb ...
Unpacking patch (2.7.6-3+deb10u1) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../47-dpkg-dev_1.19.7_all.deb ...
Unpacking dpkg-dev (1.19.7) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../48-build-essential_12.6_amd64.deb ...
Unpacking build-essential (12.6) ...
Selecting previously unselected package gcc-8-aarch64-linux-gnu-base:amd64.
Preparing to unpack .../49-gcc-8-aarch64-linux-gnu-base_8.3.0-2cross1_amd64.deb ...
Unpacking gcc-8-aarch64-linux-gnu-base:amd64 (8.3.0-2cross1) ...
Selecting previously unselected package cpp-8-aarch64-linux-gnu.
Preparing to unpack .../50-cpp-8-aarch64-linux-gnu_8.3.0-2cross1_amd64.deb ...
Unpacking cpp-8-aarch64-linux-gnu (8.3.0-2cross1) ...
Selecting previously unselected package gcc-8-arm-linux-gnueabi-base:amd64.
Preparing to unpack .../51-gcc-8-arm-linux-gnueabi-base_8.3.0-2cross1_amd64.deb ...
Unpacking gcc-8-arm-linux-gnueabi-base:amd64 (8.3.0-2cross1) ...
Selecting previously unselected package cpp-8-arm-linux-gnueabi.
Preparing to unpack .../52-cpp-8-arm-linux-gnueabi_8.3.0-2cross1_amd64.deb ...
Unpacking cpp-8-arm-linux-gnueabi (8.3.0-2cross1) ...
Selecting previously unselected package cpp-aarch64-linux-gnu.
Preparing to unpack .../53-cpp-aarch64-linux-gnu_4%3a8.3.0-1_amd64.deb ...
Unpacking cpp-aarch64-linux-gnu (4:8.3.0-1) ...
Selecting previously unselected package cpp-arm-linux-gnueabi.
Preparing to unpack .../54-cpp-arm-linux-gnueabi_4%3a8.3.0-1_amd64.deb ...
Unpacking cpp-arm-linux-gnueabi (4:8.3.0-1) ...
Selecting previously unselected package gcc-8-cross-base.
Preparing to unpack .../55-gcc-8-cross-base_8.3.0-2cross1_all.deb ...
Unpacking gcc-8-cross-base (8.3.0-2cross1) ...
Selecting previously unselected package libc6-arm64-cross.
Preparing to unpack .../56-libc6-arm64-cross_2.28-7cross1_all.deb ...
Unpacking libc6-arm64-cross (2.28-7cross1) ...
Selecting previously unselected package libgcc1-arm64-cross.
Preparing to unpack .../57-libgcc1-arm64-cross_1%3a8.3.0-2cross1_all.deb ...
Unpacking libgcc1-arm64-cross (1:8.3.0-2cross1) ...
Selecting previously unselected package libgomp1-arm64-cross.
Preparing to unpack .../58-libgomp1-arm64-cross_8.3.0-2cross1_all.deb ...
Unpacking libgomp1-arm64-cross (8.3.0-2cross1) ...
Selecting previously unselected package libitm1-arm64-cross.
Preparing to unpack .../59-libitm1-arm64-cross_8.3.0-2cross1_all.deb ...
Unpacking libitm1-arm64-cross (8.3.0-2cross1) ...
Selecting previously unselected package libatomic1-arm64-cross.
Preparing to unpack .../60-libatomic1-arm64-cross_8.3.0-2cross1_all.deb ...
Unpacking libatomic1-arm64-cross (8.3.0-2cross1) ...
Selecting previously unselected package libstdc++6-arm64-cross.
Preparing to unpack .../61-libstdc++6-arm64-cross_8.3.0-2cross1_all.deb ...
Unpacking libstdc++6-arm64-cross (8.3.0-2cross1) ...
Selecting previously unselected package libasan5-arm64-cross.
Preparing to unpack .../62-libasan5-arm64-cross_8.3.0-2cross1_all.deb ...
Unpacking libasan5-arm64-cross (8.3.0-2cross1) ...
Selecting previously unselected package liblsan0-arm64-cross.
Preparing to unpack .../63-liblsan0-arm64-cross_8.3.0-2cross1_all.deb ...
Unpacking liblsan0-arm64-cross (8.3.0-2cross1) ...
Selecting previously unselected package libtsan0-arm64-cross.
Preparing to unpack .../64-libtsan0-arm64-cross_8.3.0-2cross1_all.deb ...
Unpacking libtsan0-arm64-cross (8.3.0-2cross1) ...
Selecting previously unselected package libubsan1-arm64-cross.
Preparing to unpack .../65-libubsan1-arm64-cross_8.3.0-2cross1_all.deb ...
Unpacking libubsan1-arm64-cross (8.3.0-2cross1) ...
Selecting previously unselected package libgcc-8-dev-arm64-cross.
Preparing to unpack .../66-libgcc-8-dev-arm64-cross_8.3.0-2cross1_all.deb ...
Unpacking libgcc-8-dev-arm64-cross (8.3.0-2cross1) ...
Selecting previously unselected package gcc-8-aarch64-linux-gnu.
Preparing to unpack .../67-gcc-8-aarch64-linux-gnu_8.3.0-2cross1_amd64.deb ...
Unpacking gcc-8-aarch64-linux-gnu (8.3.0-2cross1) ...
Selecting previously unselected package libc6-armel-cross.
Preparing to unpack .../68-libc6-armel-cross_2.28-7cross1_all.deb ...
Unpacking libc6-armel-cross (2.28-7cross1) ...
Selecting previously unselected package libgcc1-armel-cross.
Preparing to unpack .../69-libgcc1-armel-cross_1%3a8.3.0-2cross1_all.deb ...
Unpacking libgcc1-armel-cross (1:8.3.0-2cross1) ...
Selecting previously unselected package libgomp1-armel-cross.
Preparing to unpack .../70-libgomp1-armel-cross_8.3.0-2cross1_all.deb ...
Unpacking libgomp1-armel-cross (8.3.0-2cross1) ...
Selecting previously unselected package libatomic1-armel-cross.
Preparing to unpack .../71-libatomic1-armel-cross_8.3.0-2cross1_all.deb ...
Unpacking libatomic1-armel-cross (8.3.0-2cross1) ...
Selecting previously unselected package libstdc++6-armel-cross.
Preparing to unpack .../72-libstdc++6-armel-cross_8.3.0-2cross1_all.deb ...
Unpacking libstdc++6-armel-cross (8.3.0-2cross1) ...
Selecting previously unselected package libasan5-armel-cross.
Preparing to unpack .../73-libasan5-armel-cross_8.3.0-2cross1_all.deb ...
Unpacking libasan5-armel-cross (8.3.0-2cross1) ...
Selecting previously unselected package libubsan1-armel-cross.
Preparing to unpack .../74-libubsan1-armel-cross_8.3.0-2cross1_all.deb ...
Unpacking libubsan1-armel-cross (8.3.0-2cross1) ...
Selecting previously unselected package libgcc-8-dev-armel-cross.
Preparing to unpack .../75-libgcc-8-dev-armel-cross_8.3.0-2cross1_all.deb ...
Unpacking libgcc-8-dev-armel-cross (8.3.0-2cross1) ...
Selecting previously unselected package gcc-8-arm-linux-gnueabi.
Preparing to unpack .../76-gcc-8-arm-linux-gnueabi_8.3.0-2cross1_amd64.deb ...
Unpacking gcc-8-arm-linux-gnueabi (8.3.0-2cross1) ...
Selecting previously unselected package gcc-aarch64-linux-gnu.
Preparing to unpack .../77-gcc-aarch64-linux-gnu_4%3a8.3.0-1_amd64.deb ...
Unpacking gcc-aarch64-linux-gnu (4:8.3.0-1) ...
Selecting previously unselected package gcc-arm-linux-gnueabi.
Preparing to unpack .../78-gcc-arm-linux-gnueabi_4%3a8.3.0-1_amd64.deb ...
Unpacking gcc-arm-linux-gnueabi (4:8.3.0-1) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../79-zlib1g-dev_1%3a1.2.11.dfsg-1_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.11.dfsg-1) ...
Selecting previously unselected package libelf-dev:amd64.
Preparing to unpack .../80-libelf-dev_0.176-1.1_amd64.deb ...
Unpacking libelf-dev:amd64 (0.176-1.1) ...
Selecting previously unselected package libssl-dev:amd64.
Preparing to unpack .../81-libssl-dev_1.1.1d-0+deb10u6_amd64.deb ...
Unpacking libssl-dev:amd64 (1.1.1d-0+deb10u6) ...
Setting up libbison-dev:amd64 (2:3.3.2.dfsg-1) ...
Setting up gcc-8-arm-linux-gnueabi-base:amd64 (8.3.0-2cross1) ...
Setting up gcc-8-cross-base (8.3.0-2cross1) ...
Setting up binutils-common:amd64 (2.31.1-16) ...
Setting up linux-libc-dev:amd64 (4.19.194-3) ...
Setting up bc (1.07.1-2+b1) ...
Setting up binutils-aarch64-linux-gnu (2.31.1-16) ...
Setting up libgomp1:amd64 (8.3.0-6) ...
Setting up bzip2 (1.0.6-9.2~deb10u1) ...
Setting up gcc-8-aarch64-linux-gnu-base:amd64 (8.3.0-2cross1) ...
Setting up libasan5:amd64 (8.3.0-6) ...
Setting up libpython2.7-minimal:amd64 (2.7.16-2+deb10u1) ...
Setting up make (4.2.1-1.2) ...
Setting up libmpfr6:amd64 (4.0.2-1) ...
Setting up python2.7-minimal (2.7.16-2+deb10u1) ...
Setting up libsigsegv2:amd64 (2.12-2) ...
Setting up xz-utils (5.2.4-1) ...
update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/lzma.1.gz because associated file /usr/share/man/man1/xz.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/unlzma.1.gz because associated file /usr/share/man/man1/unxz.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/lzcat.1.gz because associated file /usr/share/man/man1/xzcat.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/lzmore.1.gz because associated file /usr/share/man/man1/xzmore.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/lzless.1.gz because associated file /usr/share/man/man1/xzless.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/lzdiff.1.gz because associated file /usr/share/man/man1/xzdiff.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/lzcmp.1.gz because associated file /usr/share/man/man1/xzcmp.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/lzgrep.1.gz because associated file /usr/share/man/man1/xzgrep.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/lzegrep.1.gz because associated file /usr/share/man/man1/xzegrep.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/lzfgrep.1.gz because associated file /usr/share/man/man1/xzfgrep.1.gz (of link group lzma) doesn't exist
Setting up libc6-arm64-cross (2.28-7cross1) ...
Setting up libquadmath0:amd64 (8.3.0-6) ...
Setting up libssl-dev:amd64 (1.1.1d-0+deb10u6) ...
Setting up libmpc3:amd64 (1.1.0-1) ...
Setting up libatomic1:amd64 (8.3.0-6) ...
Setting up patch (2.7.6-3+deb10u1) ...
Setting up libitm1-arm64-cross (8.3.0-2cross1) ...
Setting up python2-minimal (2.7.16-1) ...
Setting up libpcre2-8-0:amd64 (10.32-5) ...
Setting up libdpkg-perl (1.19.7) ...
Setting up libc6-armel-cross (2.28-7cross1) ...
Setting up libmpx2:amd64 (8.3.0-6) ...
Setting up libubsan1:amd64 (8.3.0-6) ...
Setting up libisl19:amd64 (0.20-2) ...
Setting up libbinutils:amd64 (2.31.1-16) ...
Setting up cpp-8 (8.3.0-6) ...
Setting up libc-dev-bin (2.28-10) ...
Setting up libcc1-0:amd64 (8.3.0-6) ...
Setting up liblsan0:amd64 (8.3.0-6) ...
Setting up libitm1:amd64 (8.3.0-6) ...
Setting up binutils-x86-64-linux-gnu (2.31.1-16) ...
Setting up libtsan0:amd64 (8.3.0-6) ...
Setting up libatomic1-arm64-cross (8.3.0-2cross1) ...
Setting up libgcc1-arm64-cross (1:8.3.0-2cross1) ...
Setting up libgomp1-arm64-cross (8.3.0-2cross1) ...
Setting up binutils-arm-linux-gnueabi (2.31.1-16) ...
Setting up libgomp1-armel-cross (8.3.0-2cross1) ...
Setting up wget (1.20.1-1.1) ...
Setting up m4 (1.4.18-2) ...
Setting up binutils (2.31.1-16) ...
Setting up libatomic1-armel-cross (8.3.0-2cross1) ...
Setting up cpp-8-arm-linux-gnueabi (8.3.0-2cross1) ...
Setting up dpkg-dev (1.19.7) ...
Setting up libstdc++6-arm64-cross (8.3.0-2cross1) ...
Setting up libgcc1-armel-cross (1:8.3.0-2cross1) ...
Setting up cpp-arm-linux-gnueabi (4:8.3.0-1) ...
Setting up python-minimal (2.7.16-1) ...
Setting up cpp-8-aarch64-linux-gnu (8.3.0-2cross1) ...
Setting up libgcc-8-dev:amd64 (8.3.0-6) ...
Setting up cpp (4:8.3.0-1) ...
Setting up bison (2:3.3.2.dfsg-1) ...
update-alternatives: using /usr/bin/bison.yacc to provide /usr/bin/yacc (yacc) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/yacc.1.gz because associated file /usr/share/man/man1/bison.yacc.1.gz (of link group yacc) doesn't exist
Setting up libc6-dev:amd64 (2.28-10) ...
Setting up libstdc++-8-dev:amd64 (8.3.0-6) ...
Setting up liblsan0-arm64-cross (8.3.0-2cross1) ...
Setting up flex (2.6.4-6.2) ...
Setting up gcc-8 (8.3.0-6) ...
Setting up libubsan1-arm64-cross (8.3.0-2cross1) ...
Setting up libtsan0-arm64-cross (8.3.0-2cross1) ...
Setting up libstdc++6-armel-cross (8.3.0-2cross1) ...
Setting up gcc (4:8.3.0-1) ...
Setting up libasan5-arm64-cross (8.3.0-2cross1) ...
Setting up cpp-aarch64-linux-gnu (4:8.3.0-1) ...
Setting up libasan5-armel-cross (8.3.0-2cross1) ...
Setting up libgcc-8-dev-arm64-cross (8.3.0-2cross1) ...
Setting up libubsan1-armel-cross (8.3.0-2cross1) ...
Setting up zlib1g-dev:amd64 (1:1.2.11.dfsg-1) ...
Setting up g++-8 (8.3.0-6) ...
Setting up gcc-8-aarch64-linux-gnu (8.3.0-2cross1) ...
Setting up libgcc-8-dev-armel-cross (8.3.0-2cross1) ...
Setting up libelf-dev:amd64 (0.176-1.1) ...
Setting up g++ (4:8.3.0-1) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up gcc-8-arm-linux-gnueabi (8.3.0-2cross1) ...
Setting up build-essential (12.6) ...
Setting up gcc-aarch64-linux-gnu (4:8.3.0-1) ...
Setting up gcc-arm-linux-gnueabi (4:8.3.0-1) ...
Processing triggers for libc-bin (2.28-10) ...
Removing intermediate container f0ab25c376a1
 ---> 4afaa15f70a6
Step 3/14 : ADD example_module /usr/src/app/example_module_headers_src/
 ---> 1696b90978db
Step 4/14 : ADD example_module /usr/src/app/example_module_headers_built/
 ---> 0256b8d44aac
Step 5/14 : ADD kernel_source.tar.gz /usr/src/app/kernel_source
 ---> 49bd0b88fb87
Step 6/14 : ADD kernel_modules_headers.tar.gz /usr/src/app/
 ---> ec6842ceab10
Step 7/14 : WORKDIR /usr/src/app
 ---> Running in 86792b32fe1f
Removing intermediate container 86792b32fe1f
 ---> 0d70f0372c52
Step 8/14 : RUN if [ -f /lib64/ld-linux-x86-64.so.2 ]; then     if [ ! -f /lib/ld-linux-x86-64.so.2 ]; then         ln -s /lib64/ld-linux-x86-64.so.2  /lib/ld-linux-x86-64.so.2 ;  fi;     fi;
 ---> Running in f7d97aec4147
Removing intermediate container f7d97aec4147
 ---> 735651d3c815
Step 9/14 : ARG kernel_arch
 ---> Running in 66c9b5907740
Removing intermediate container 66c9b5907740
 ---> 50420ea99006
Step 10/14 : ARG cross_compile_prefix
 ---> Running in f187364b71f6
Removing intermediate container f187364b71f6
 ---> de8b47573178
Step 11/14 : RUN ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_source/*/build modules_prepare
 ---> Running in cf7330a1d828
make: Entering directory '/usr/src/app/kernel_source/5.10.43-yocto-standard/build'
  SYNC    include/config/auto.conf.cmd
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  HOSTLD  scripts/kconfig/conf
*
* Restart config...
*
*
* BPF based packet filtering framework (BPFILTER)
*
BPF based packet filtering framework (BPFILTER) (BPFILTER) [Y/n/?] y
  bpfilter kernel module with user mode helper (BPFILTER_UMH) [M/n/y/?] (NEW) 
Error in reading or end of file.

Error in reading or end of file.

Error in reading or end of file.

*
* Sample kernel code
*
Sample kernel code (SAMPLES) [Y/n/?] y
  auxdisplay sample (SAMPLE_AUXDISPLAY) [N/y/?] (NEW) 
  Build trace_events examples -- loadable modules only (SAMPLE_TRACE_EVENTS) [N/m/?] n
  Build trace_printk module - tests various trace_printk formats (SAMPLE_TRACE_PRINTK) [M/n/?] m
  Build register_ftrace_direct() example (SAMPLE_FTRACE_DIRECT) [N/m/?] n
  Build sample module for kernel access to Ftrace instancess (SAMPLE_TRACE_ARRAY) [N/m/?] n
  Build kobject examples (SAMPLE_KOBJECT) [N/m/y/?] n
  Build kprobes examples -- loadable modules only (SAMPLE_KPROBES) [N/m/?] n
  Build kernel hardware breakpoint examples -- loadable module only (SAMPLE_HW_BREAKPOINT) [N/m/?] n
  Build kfifo examples -- loadable modules only (SAMPLE_KFIFO) [N/m/?] n
  Build kdb command example -- loadable modules only (SAMPLE_KDB) [N/m/?] n
  Build rpmsg client sample -- loadable modules only (SAMPLE_RPMSG_CLIENT) [N/m/?] n
  Build configfs patching sample -- loadable modules only (SAMPLE_CONFIGFS) [N/m/?] n
  Build VFIO mtty example mediated device sample code -- loadable modules only (SAMPLE_VFIO_MDEV_MTTY) [N/m/?] n
  Build VFIO mdpy example mediated device sample code -- loadable modules only (SAMPLE_VFIO_MDEV_MDPY) [N/m/?] n
  Build VFIO mdpy example guest fbdev driver -- loadable module only (SAMPLE_VFIO_MDEV_MDPY_FB) [N/m/?] n
  Build VFIO mdpy example mediated device sample code -- loadable modules only (SAMPLE_VFIO_MDEV_MBOCHS) [N/m/?] n
  watchdog sample (SAMPLE_WATCHDOG) [N/y/?] (NEW) 
  SYSTBL  arch/x86/include/generated/asm/syscalls_32.h
  SYSHDR  arch/x86/include/generated/asm/unistd_32_ia32.h
  SYSHDR  arch/x86/include/generated/asm/unistd_64_x32.h
  SYSTBL  arch/x86/include/generated/asm/syscalls_64.h
  HYPERCALLS arch/x86/include/generated/asm/xen-hypercalls.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_32.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_64.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_x32.h
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_64.o
  HOSTCC  arch/x86/tools/relocs_common.o
  HOSTLD  arch/x86/tools/relocs
  HOSTCC  scripts/selinux/genheaders/genheaders
  HOSTCC  scripts/selinux/mdp/mdp
  HOSTCC  scripts/bin2c
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/recordmcount
  HOSTCC  scripts/sorttable
  HOSTCC  scripts/asn1_compiler
  HOSTCC  scripts/sign-file
  HOSTCC  scripts/extract-cert
  HOSTCC  scripts/insert-sys-cert
  WRAP    arch/x86/include/generated/uapi/asm/bpf_perf_event.h
  WRAP    arch/x86/include/generated/uapi/asm/errno.h
  WRAP    arch/x86/include/generated/uapi/asm/fcntl.h
  WRAP    arch/x86/include/generated/uapi/asm/ioctl.h
  WRAP    arch/x86/include/generated/uapi/asm/ioctls.h
  WRAP    arch/x86/include/generated/uapi/asm/ipcbuf.h
  WRAP    arch/x86/include/generated/uapi/asm/param.h
  WRAP    arch/x86/include/generated/uapi/asm/poll.h
  WRAP    arch/x86/include/generated/uapi/asm/resource.h
  WRAP    arch/x86/include/generated/uapi/asm/socket.h
  WRAP    arch/x86/include/generated/uapi/asm/sockios.h
  WRAP    arch/x86/include/generated/uapi/asm/termbits.h
  WRAP    arch/x86/include/generated/uapi/asm/termios.h
  WRAP    arch/x86/include/generated/uapi/asm/types.h
  WRAP    arch/x86/include/generated/asm/early_ioremap.h
  WRAP    arch/x86/include/generated/asm/export.h
  WRAP    arch/x86/include/generated/asm/mcs_spinlock.h
  WRAP    arch/x86/include/generated/asm/irq_regs.h
  WRAP    arch/x86/include/generated/asm/local64.h
  WRAP    arch/x86/include/generated/asm/mm-arch-hooks.h
  WRAP    arch/x86/include/generated/asm/mmiowb.h
  WRAP    arch/x86/include/generated/asm/module.lds.h
  WRAP    arch/x86/include/generated/asm/rwonce.h
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  CC      scripts/mod/devicetable-offsets.s
  UPD     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
scripts/Makefile.build:414: warning: overriding recipe for target 'modules.order'
Makefile:1421: warning: ignoring old recipe for target 'modules.order'
  DESCEND  objtool
  HOSTCC   /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/fixdep.o
  HOSTLD   /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/fixdep-in.o
  LINK     /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/fixdep
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/exec-cmd.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/help.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/pager.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/parse-options.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/run-command.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/sigchain.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/subcmd-config.o
  LD       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/libsubcmd-in.o
  AR       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/libsubcmd.a
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/arch/x86/special.o
  MKDIR    /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/arch/x86/lib/
  GEN      /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/arch/x86/lib/inat-tables.c
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/arch/x86/decode.o
  LD       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/arch/x86/objtool-in.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/weak.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/check.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/special.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/orc_gen.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/orc_dump.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/builtin-check.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/builtin-orc.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/elf.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/objtool.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/libstring.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/libctype.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/str_error_r.o
  CC       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/librbtree.o
  LD       /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/objtool-in.o
  LINK     /usr/src/app/kernel_source/5.10.43-yocto-standard/build/tools/objtool/objtool
  LDS     scripts/module.lds
make: Leaving directory '/usr/src/app/kernel_source/5.10.43-yocto-standard/build'
Removing intermediate container cf7330a1d828
 ---> 918464c206ae
Step 12/14 : RUN ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_source/*/build/ M=/usr/src/app/example_module_headers_src
 ---> Running in 80cfb1ae7a92
make: Entering directory '/usr/src/app/kernel_source/5.10.43-yocto-standard/build'
  CC [M]  /usr/src/app/example_module_headers_src/hello.o
  MODPOST /usr/src/app/example_module_headers_src/Module.symvers
WARNING: modpost: missing MODULE_LICENSE() in /usr/src/app/example_module_headers_src/hello.o
  CC [M]  /usr/src/app/example_module_headers_src/hello.mod.o
  LD [M]  /usr/src/app/example_module_headers_src/hello.ko
make: Leaving directory '/usr/src/app/kernel_source/5.10.43-yocto-standard/build'
Removing intermediate container 80cfb1ae7a92
 ---> a55d5811e182
Step 13/14 : RUN ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_modules_headers/ modules_prepare
 ---> Running in 8369228fc64a
make: Entering directory '/usr/src/app/kernel_modules_headers'
  SYNC    include/config/auto.conf.cmd
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  HOSTLD  scripts/kconfig/conf
*
* Restart config...
*
*
* BPF based packet filtering framework (BPFILTER)
*
BPF based packet filtering framework (BPFILTER) (BPFILTER) [Y/n/?] y
  bpfilter kernel module with user mode helper (BPFILTER_UMH) [M/n/y/?] (NEW) 
Error in reading or end of file.

Error in reading or end of file.

Error in reading or end of file.

*
* Sample kernel code
*
Sample kernel code (SAMPLES) [Y/n/?] y
  auxdisplay sample (SAMPLE_AUXDISPLAY) [N/y/?] (NEW) 
  Build trace_events examples -- loadable modules only (SAMPLE_TRACE_EVENTS) [N/m/?] n
  Build trace_printk module - tests various trace_printk formats (SAMPLE_TRACE_PRINTK) [M/n/?] m
  Build register_ftrace_direct() example (SAMPLE_FTRACE_DIRECT) [N/m/?] n
  Build sample module for kernel access to Ftrace instancess (SAMPLE_TRACE_ARRAY) [N/m/?] n
  Build kobject examples (SAMPLE_KOBJECT) [N/m/y/?] n
  Build kprobes examples -- loadable modules only (SAMPLE_KPROBES) [N/m/?] n
  Build kernel hardware breakpoint examples -- loadable module only (SAMPLE_HW_BREAKPOINT) [N/m/?] n
  Build kfifo examples -- loadable modules only (SAMPLE_KFIFO) [N/m/?] n
  Build kdb command example -- loadable modules only (SAMPLE_KDB) [N/m/?] n
  Build rpmsg client sample -- loadable modules only (SAMPLE_RPMSG_CLIENT) [N/m/?] n
  Build configfs patching sample -- loadable modules only (SAMPLE_CONFIGFS) [N/m/?] n
  Build VFIO mtty example mediated device sample code -- loadable modules only (SAMPLE_VFIO_MDEV_MTTY) [N/m/?] n
  Build VFIO mdpy example mediated device sample code -- loadable modules only (SAMPLE_VFIO_MDEV_MDPY) [N/m/?] n
  Build VFIO mdpy example guest fbdev driver -- loadable module only (SAMPLE_VFIO_MDEV_MDPY_FB) [N/m/?] n
  Build VFIO mdpy example mediated device sample code -- loadable modules only (SAMPLE_VFIO_MDEV_MBOCHS) [N/m/?] n
  watchdog sample (SAMPLE_WATCHDOG) [N/y/?] (NEW) 
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_64.o
  HOSTCC  arch/x86/tools/relocs_common.o
  HOSTLD  arch/x86/tools/relocs
  HOSTCC  scripts/selinux/genheaders/genheaders
  HOSTCC  scripts/selinux/mdp/mdp
  HOSTCC  scripts/bin2c
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/recordmcount
  HOSTCC  scripts/sorttable
  HOSTCC  scripts/asn1_compiler
  HOSTCC  scripts/sign-file
  HOSTCC  scripts/extract-cert
  HOSTCC  scripts/insert-sys-cert
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  CC      scripts/mod/devicetable-offsets.s
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
scripts/Makefile.build:414: warning: overriding recipe for target 'modules.order'
Makefile:1421: warning: ignoring old recipe for target 'modules.order'
  DESCEND  objtool
  HOSTCC   /usr/src/app/kernel_modules_headers/tools/objtool/fixdep.o
  HOSTLD   /usr/src/app/kernel_modules_headers/tools/objtool/fixdep-in.o
  LINK     /usr/src/app/kernel_modules_headers/tools/objtool/fixdep
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/exec-cmd.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/help.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/pager.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/parse-options.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/run-command.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/sigchain.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/subcmd-config.o
  LD       /usr/src/app/kernel_modules_headers/tools/objtool/libsubcmd-in.o
  AR       /usr/src/app/kernel_modules_headers/tools/objtool/libsubcmd.a
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/arch/x86/special.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/arch/x86/decode.o
  LD       /usr/src/app/kernel_modules_headers/tools/objtool/arch/x86/objtool-in.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/weak.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/check.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/special.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/orc_gen.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/orc_dump.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/builtin-check.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/builtin-orc.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/elf.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/objtool.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/libstring.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/libctype.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/str_error_r.o
  CC       /usr/src/app/kernel_modules_headers/tools/objtool/librbtree.o
  LD       /usr/src/app/kernel_modules_headers/tools/objtool/objtool-in.o
  LINK     /usr/src/app/kernel_modules_headers/tools/objtool/objtool
  LDS     scripts/module.lds
make: Leaving directory '/usr/src/app/kernel_modules_headers'
Removing intermediate container 8369228fc64a
 ---> 52e67ad4f047
Step 14/14 : RUN ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_modules_headers/ M=/usr/src/app/example_module_headers_built
 ---> Running in 930bf11de5ba
make: Entering directory '/usr/src/app/kernel_modules_headers'
  CC [M]  /usr/src/app/example_module_headers_built/hello.o
  MODPOST /usr/src/app/example_module_headers_built/Module.symvers
WARNING: modpost: missing MODULE_LICENSE() in /usr/src/app/example_module_headers_built/hello.o
  CC [M]  /usr/src/app/example_module_headers_built/hello.mod.o
  LD [M]  /usr/src/app/example_module_headers_built/hello.ko
make: Leaving directory '/usr/src/app/kernel_modules_headers'
Removing intermediate container 930bf11de5ba
 ---> aea62659fcbb
Successfully built aea62659fcbb
+ IMAGE_ID=aea62659fcbb
+ DOCKER_API_VERSION=1.22 docker rmi aea62659fcbb
Deleted: sha256:aea62659fcbbb2b3ff0206b179a8b1b30b8393857c4d90e4e880279b7ed540d6
Deleted: sha256:156b72752aa2f56ac9dcf5a2cf0ff90a2a9e790c9eda801425fb873cca18cc86
Deleted: sha256:52e67ad4f047aea91bbb7592bf21e4f80b71dadd3f7c7178a9cdc05c22b258f6
Deleted: sha256:65188558a021ebe458d8ded60b89781a01ad30c06978adcbaf6dced03c76ffe4
Deleted: sha256:a55d5811e182f914981b0171c3053fd2c0e1dbe4a39071388ea8c82abc581f63
Deleted: sha256:3755779f5ec847f9987e6421874999b1f45f8b3c884cc8c58110486247702e41
Deleted: sha256:918464c206ae44fa8f87756ee2922bb5d5536fc88dfb5f0a599014e0125bf3d6
Deleted: sha256:a79e798a89a10551ed8e34c2d0ca618a7535fd33f403ebe4fdc1210c3ffb3a0a
Deleted: sha256:de8b47573178271149c11bc4e565d468e67334ae7ea4bd1c5273a89874c73b51
Deleted: sha256:50420ea990064281c1edaae0c8ce3870f335f6baf56c144d4a01ea8625aad0eb
Deleted: sha256:735651d3c815ccf8e454a93c47875c074b3ac9306526b9a557541725a5c42629
Deleted: sha256:db494db55aee9529dacf20dc7990a1f7b50616684cfe3bf4321a8a1ac3b119d0
Deleted: sha256:0d70f0372c522861d3b6bffaa1b39bf6e605a05b2282e950b774d01c51861ee3
Deleted: sha256:ec6842ceab1023dd8dc6af4fcc2812e31a10be48b905322814729c06d701990c
Deleted: sha256:4ecc3bdeacf701e88401ab1fc8aa137cd8fe811919082b9738a0ec1bc54468d2
Deleted: sha256:49bd0b88fb8778bf19b43871971a19f8345bbb9a97ad95dd1807c3dfd8800772
Deleted: sha256:d51ed362d85eedd1a6aca32ac2d062574bb7a4f739400a0f6d1289337ff84e82
Deleted: sha256:0256b8d44aac7b39bd8655fa07df9983f7e533f88dbc3cdee10ba4e3d3c6afa4
Deleted: sha256:8e20ee55cd1c8ae9344e645917825d33eda12087f85259ab3c59ec5ae13105f5
Deleted: sha256:1696b90978dbe27a01cf9ed0569cb03123df76b4a50afa405d7ee367abed36b3
Deleted: sha256:29d3b41a06f577c21495bdc1be37256bcd3e889835e98db072551af8ecad8c49
Deleted: sha256:4afaa15f70a6f4ea302eb311d961780b5a5797dc797b882f72c0a8ec08fa399b
Deleted: sha256:698c16635b2239c7d57024ba86702118a4e3fe39a4371c7ab2509267814bd065
+ ret=0
+ trap  0
+ exit 0
DEBUG: Shell function do_compile finished

The difference is that the kernel-headers-test dockerfile performs a modules_prepare for both kernel_source and kernel_module_headers, while the kernel-module-build project only does modules_prepare for the kernel_source package.

when running modules_prepare, modules.lds is built from the modules.lds.S source file in the headers.

alexgg commented 3 years ago

So this boils down once again to why do we ship two different versions of header files. The history behind it is well explained in https://github.com/balena-os/meta-balena/issues/1822.

Basically we want to get rid of the prebuilt headers and always call modules_prepare on the kernel source. As this issue shows, this would have addressed this problem too. The only consideration is that customers using kernel_modules_headers would need to switch to using kernel_source. This breaking change is part of the BalenaOS 3 improvement.

alexgg commented 3 years ago

To test the patch, I first remove the modules_prepare from kernel-headers-test to see it fail:

diff --git a/meta-balena-common/recipes-kernel/linux/files/Dockerfile b/meta-balena-common/recipes-kernel/linux/files/Dockerfile
index a7f9f3901f3a..0e88224d69ca 100644
--- a/meta-balena-common/recipes-kernel/linux/files/Dockerfile
+++ b/meta-balena-common/recipes-kernel/linux/files/Dockerfile
@@ -25,5 +25,5 @@ RUN ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/a

 # Compile external hello module using pre-built headers
 # We run modules_prepare again because the tools pre-compiled are actually the target device arch. While we cross-compile for testing.
-RUN ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_modules_headers/ modules_prepare
+#RUN ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_modules_headers/ modules_prepare
 RUN ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_modules_headers/ M=/usr/src/app/example_module_headers_built

The bitbake kernel-headers-test:

|   CC [M]  /usr/src/app/example_module_headers_built/hello.mod.o
| make[2]: *** No rule to make target 'scripts/module.lds', needed by '/usr/src/app/example_module_headers_built/hello.ko'.  Stop.
| make[1]: *** [scripts/Makefile.modpost:130: __modpost] Error 2
| make: *** [Makefile:1725: modules] Error 2
| make: Leaving directory '/usr/src/app/kernel_modules_headers'
| + bb_exit_handler
| + ret=2
| + echo WARNING: exit code 2 from a shell command.
| WARNING: exit code 2 from a shell command.
| + exit 2
|

Apply the patch, build again successfully.