[oe] Build error on external kernel modules

Edson Seabra Edson.Seabra at zpesystems.com
Mon Nov 25 17:45:54 UTC 2019


Hi,

I'm working on update our builder environment to new YOCTO  Zeus (3.0).

I could build the core-image-sato,  install, and run it normally. Just providing extra configuration to generate ISO image.

But I was not able to build external kernel modules.  After build the image a just type 'bitbake cryptodev-module' and I got the error below.

Can you give a hint about what is wrong or what I'm missing ?

Thanks in advance.

==== local conf ====


edson at yocto-zeus:sato$ grep -v "^$\|^#" conf/local.conf

MACHINE ?= "genericx86-64"

DISTRO ?= "poky"

PACKAGE_CLASSES ?= "package_ipk"

EXTRA_IMAGE_FEATURES ?= "debug-tweaks"

USER_CLASSES ?= "buildstats image-mklibs image-prelink"

PATCHRESOLVE = "noop"

BB_DISKMON_DIRS ??= "\

    STOPTASKS,${TMPDIR},1G,100K \

    STOPTASKS,${DL_DIR},1G,100K \

    STOPTASKS,${SSTATE_DIR},1G,100K \

    STOPTASKS,/tmp,100M,100K \

    ABORT,${TMPDIR},100M,1K \

    ABORT,${DL_DIR},100M,1K \

    ABORT,${SSTATE_DIR},100M,1K \

    ABORT,/tmp,10M,1K"

PACKAGECONFIG_append_pn-qemu-system-native = " sdl"

CONF_VERSION = "1"

IMAGE_FSTYPES = "iso"

COMPRESSISO = "1"

BB_GENERATE_MIRROR_TARBALLS = "1"

DL_DIR = "/opt/sources"

BUILDCFG_VARS += " IMAGE_LINGUAS MACHINE_FEATURES IMAGE_FSTYPES DISTRO_FEATURES IMAGE_FEATURES "

BB_NUMBER_THREADS = "10"

PARALLEL_MAKE = "-j 6"

edson at yocto-zeus:sato$

==== build log ====


edson at yocto-zeus:sato$ bitbake cryptodev-module

Loading cache: 100% |#########################################################| Time: 0:00:00

Loaded 1314 entries from dependency cache.

NOTE: Resolving any missing task queue dependencies


Build Configuration:

BB_VERSION           = "1.44.0"

BUILD_SYS            = "x86_64-linux"

NATIVELSBSTRING      = "universal"

TARGET_SYS           = "x86_64-poky-linux"

MACHINE              = "genericx86-64"

DISTRO               = "poky"

DISTRO_VERSION       = "3.0"

TUNE_FEATURES        = "m64 core2"

TARGET_FPU           = ""

IMAGE_LINGUAS        = "en-us en-gb"

MACHINE_FEATURES     = " screen keyboard pci usbhost ext2 ext3 x86                      acpi serial usbgadget alsa wifi efi pcbios"

IMAGE_FSTYPES        = "iso"

DISTRO_FEATURES      = "acl alsa argp bluetooth ext2 ipv4 ipv6 largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g nfc x11 largefile opengl ptest multiarch wayland vulkan"

IMAGE_FEATURES       = " debug-tweaks"

meta

meta-poky

meta-yocto-bsp       = "zeus:24046332599cc528834df515a90babc83b7cd570"


Initialising tasks: 100% |####################################################| Time: 0:00:00

Sstate summary: Wanted 26 Found 8 Missed 18 Current 140 (30% match, 89% complete)

NOTE: Executing Tasks

NOTE: Setscene tasks completed

ERROR: make-mod-scripts-1.0-r0 do_configure: oe_runmake failed

ERROR: make-mod-scripts-1.0-r0 do_configure: Execution of '/home/edson/ng-trunk/sato/tmp/work/genericx86_64-poky-linux/make-mod-scripts/1.0-r0/temp/run.do_configure.85788' failed with exit code 1:

make: Entering directory '/home/edson/ng-trunk/sato/tmp/work-shared/genericx86-64/kernel-source'

make: *** No rule to make target 'scripts'.  Stop.

make: Leaving directory '/home/edson/ng-trunk/sato/tmp/work-shared/genericx86-64/kernel-source'

WARNING: exit code 1 from a shell command.


ERROR: Logfile of failure stored in: /home/edson/ng-trunk/sato/tmp/work/genericx86_64-poky-linux/make-mod-scripts/1.0-r0/temp/log.do_configure.85788

Log data follows:

| DEBUG: Executing python function extend_recipe_sysroot

| NOTE: Direct dependencies are ['virtual:native:/home/edson/ng-trunk/poky/meta/recipes-devtools/bison/bison_3.4.1.bb:do_populate_sysroot', '/home/edson/ng-trunk/poky/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', '/home/edson/ng-trunk/poky/meta/recipes-devtools/binutils/binutils-cross_2.32.bb:do_populate_sysroot', 'virtual:native:/home/edson/ng-trunk/poky/meta/recipes-support/lzop/lzop_1.04.bb:do_populate_sysroot', '/home/edson/ng-trunk/poky/meta/recipes-core/glibc/glibc_2.30.bb:do_populate_sysroot', 'virtual:native:/home/edson/ng-trunk/poky/meta/recipes-devtools/elfutils/elfutils_0.177.bb:do_populate_sysroot', '/home/edson/ng-trunk/poky/meta/recipes-devtools/gcc/gcc-cross_9.2.bb:do_populate_sysroot', '/home/edson/ng-trunk/poky/meta/recipes-devtools/quilt/quilt-native_0.66.bb:do_populate_sysroot', '/home/edson/ng-trunk/poky/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot', 'virtual:native:/home/edson/ng-trunk/poky/meta/recipes-connectivity/openssl/openssl_1.1.1d.bb:do_populate_sysroot', 'virtual:native:/home/edson/ng-trunk/poky/meta/recipes-core/util-linux/util-linux_2.34.bb:do_populate_sysroot', 'virtual:native:/home/edson/ng-trunk/poky/meta/recipes-extended/xz/xz_5.2.4.bb:do_populate_sysroot', 'virtual:native:/home/edson/ng-trunk/poky/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', '/home/edson/ng-trunk/poky/meta/recipes-devtools/gcc/gcc-runtime_9.2.bb:do_populate_sysroot', 'virtual:native:/home/edson/ng-trunk/poky/meta/recipes-extended/bc/bc_1.07.1.bb:do_populate_sysroot']

| NOTE: Installed into sysroot: ['kmod-native', 'lzop-native', 'elfutils-native', 'kern-tools-native', 'openssl-native', 'util-linux-native', 'lzo-native', 'gtk-doc-native', 'python3-native', 'libcap-ng-native', 'libnsl2-native', 'libtirpc-native', 'gdbm-native', 'bzip2-native', 'sqlite3-native', 'libffi-native']

| NOTE: Skipping as already exists in sysroot: ['bison-native', 'binutils-cross-x86_64', 'glibc', 'gcc-cross-x86_64', 'quilt-native', 'xz-native', 'pkgconfig-native', 'gcc-runtime', 'bc-native', 'autoconf-native', 'texinfo-dummy-native', 'gnu-config-native', 'gettext-minimal-native', 'automake-native', 'libtool-native', 'flex-native', 'zlib-native', 'linux-libc-headers', 'gmp-native', 'libmpc-native', 'mpfr-native', 'ncurses-native', 'libgcc', 'readline-native', 'm4-native']

| DEBUG: sed -e 's:^[^/]*/:/home/edson/ng-trunk/sato/tmp/work/genericx86_64-poky-linux/make-mod-scripts/1.0-r0/recipe-sysroot-native/:g' /home/edson/ng-trunk/sato/tmp/sysroots-components/x86_64/elfutils-native/fixmepath /home/edson/ng-trunk/sato/tmp/sysroots-components/x86_64/openssl-native/fixmepath /home/edson/ng-trunk/sato/tmp/sysroots-components/x86_64/gtk-doc-native/fixmepath /home/edson/ng-trunk/sato/tmp/sysroots-components/x86_64/python3-native/fixmepath | xargs sed -i -e 's:FIXMESTAGINGDIRTARGET:/home/edson/ng-trunk/sato/tmp/work/genericx86_64-poky-linux/make-mod-scripts/1.0-r0/recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:/home/edson/ng-trunk/sato/tmp/work/genericx86_64-poky-linux/make-mod-scripts/1.0-r0/recipe-sysroot-native:g' -e 's:FIXME_PSEUDO_SYSROOT:/home/edson/ng-trunk/sato/tmp/sysroots-components/x86_64/pseudo-native:g' -e 's:FIXME_HOSTTOOLS_DIR:/home/edson/ng-trunk/sato/tmp/hosttools:g' -e 's:FIXME_PKGDATA_DIR:/home/edson/ng-trunk/sato/tmp/pkgdata/genericx86-64:g' -e 's:FIXME_PSEUDO_LOCALSTATEDIR:/home/edson/ng-trunk/sato/tmp/work/genericx86_64-poky-linux/make-mod-scripts/1.0-r0/pseudo/:g' -e 's:FIXME_LOGFIFO:/home/edson/ng-trunk/sato/tmp/work/genericx86_64-poky-linux/make-mod-scripts/1.0-r0/temp/fifo.85788:g'

| DEBUG: Python function extend_recipe_sysroot finished

| DEBUG: Executing shell function do_configure

| NOTE: make HOSTCC=gcc  -isystem/home/edson/ng-trunk/sato/tmp/work/genericx86_64-poky-linux/make-mod-scripts/1.0-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/edson/ng-trunk/sato/tmp/work/genericx86_64-poky-linux/make-mod-scripts/1.0-r0/recipe-sysroot-native/usr/lib                         -L/home/edson/ng-trunk/sato/tmp/work/genericx86_64-poky-linux/make-mod-scripts/1.0-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/edson/ng-trunk/sato/tmp/work/genericx86_64-poky-linux/make-mod-scripts/1.0-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/edson/ng-trunk/sato/tmp/work/genericx86_64-poky-linux/make-mod-scripts/1.0-r0/recipe-sysroot-native/lib                         -Wl,-rpath,/home/edson/ng-trunk/sato/tmp/work/genericx86_64-poky-linux/make-mod-scripts/1.0-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/edson/ng-trunk/sato/tmp/work/genericx86_64-poky-linux/make-mod-scripts/1.0-r0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/edson/ng-trunk/sato/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc  -E CC=x86_64-poky-linux-gcc  -fuse-ld=bfd -fmacro-prefix-map=/home/edson/ng-trunk/sato/tmp/work/genericx86_64-poky-linux/make-mod-scripts/1.0-r0=/usr/src/debug/make-mod-scripts/1.0-r0                      -fdebug-prefix-map=/home/edson/ng-trunk/sato/tmp/work/genericx86_64-poky-linux/make-mod-scripts/1.0-r0=/usr/src/debug/make-mod-scripts/1.0-r0                      -fdebug-prefix-map=/home/edson/ng-trunk/sato/tmp/work/genericx86_64-poky-linux/make-mod-scripts/1.0-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/edson/ng-trunk/sato/tmp/work/genericx86_64-poky-linux/make-mod-scripts/1.0-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/edson/ng-trunk/sato/tmp/work-shared/genericx86-64/kernel-source=/usr/src/kernel LD=x86_64-poky-linux-ld.bfd  AR=x86_64-poky-linux-ar  -C /home/edson/ng-trunk/sato/tmp/work-shared/genericx86-64/kernel-source O=/home/edson/ng-trunk/sato/tmp/work-shared/genericx86-64/kernel-build-artifacts scripts

| make: Entering directory '/home/edson/ng-trunk/sato/tmp/work-shared/genericx86-64/kernel-source'

| make: *** No rule to make target 'scripts'.  Stop.

| make: Leaving directory '/home/edson/ng-trunk/sato/tmp/work-shared/genericx86-64/kernel-source'

| ERROR: oe_runmake failed

| WARNING: exit code 1 from a shell command.

| ERROR: Execution of '/home/edson/ng-trunk/sato/tmp/work/genericx86_64-poky-linux/make-mod-scripts/1.0-r0/temp/run.do_configure.85788' failed with exit code 1:

| make: Entering directory '/home/edson/ng-trunk/sato/tmp/work-shared/genericx86-64/kernel-source'

| make: *** No rule to make target 'scripts'.  Stop.

| make: Leaving directory '/home/edson/ng-trunk/sato/tmp/work-shared/genericx86-64/kernel-source'

| WARNING: exit code 1 from a shell command.

|

ERROR: Task (/home/edson/ng-trunk/poky/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb:do_configure) failed with exit code '1'

NOTE: Tasks Summary: Attempted 683 tasks of which 665 didn't need to be rerun and 1 failed.


Summary: 1 task failed:

  /home/edson/ng-trunk/poky/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb:do_configure

Summary: There were 2 ERROR messages shown, returning a non-zero exit code.


Edson Seabra

Principal Engineer

M +1 510 579 0843

E   edson.seabra at zpesystems.com<mailto:alvin.chan at zpesystems.com>

[1506169147061_OutlookEmoji-1505330244060_ZPELogo_Email.png1e6c5898-d340-4c90-8c28-e559c26bc7d1.png]
46757 Fremont Blvd., Fremont, CA 94538
zpesystems.com<https://www.zpesystems.com/> | Request a Nodegrid Demo<https://www.zpesystems.com/demo/>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-1506169147.png
Type: image/png
Size: 2497 bytes
Desc: Outlook-1506169147.png
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20191125/cebd947c/attachment-0001.png>


More information about the Openembedded-devel mailing list