Fixed
Created: Apr 26, 2018
Updated: Dec 3, 2018
Resolved Date: May 20, 2018
Found In Version: 10.17.41.7
Fix Version: 10.17.41.8
Severity: Standard
Applicable for: Wind River Linux LTS 17
Component/s: Kernel
Failed to build preempt-rt kernel on qemuarm64 BSP
Problem Description
======================
xxxx@host:/wrl10/build/US106554_crytodev_qemuarm64_rt_01/build_test$ /lpg-build/cdc/fast_prod/WRL10_17/WRL10_17_GIT/wrlinux-10/setup.sh --machines qemuarm64 --distros=wrlinux --dl-layers --accept-eula=yes xxxx@host:/wrl10/build/US106554_crytodev_qemuarm64_rt_01/build_test$ . ./environment-setup-x86_64-wrlinuxsdk-linux
xxxx@host:/wrl10/build/US106554_crytodev_qemuarm64_rt_01/build_test$ . ./oe-init-build-env build_test xxxx@host:/wrl10/build/US106554_crytodev_qemuarm64_rt_01/build_test$ $ vi conf/local.conf #Add the following two lines.
TARGET_SUPPORTED_KTYPES_append = " preempt-rt"
PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-rt"
xxxx@host:/wrl10/build/US106554_crytodev_qemuarm64_rt_01/build_test$ bitbake linux-yocto-rt Loading cache: 100% |###############################################################################################################################################################################| Time: 0:00:18 Loaded 5799 entries from dependency cache.
WARNING: No recipes available for:
/wrl10/build/US106554_crytodev_qemuarm64_rt_01/layers/wrlinux/wrlinux-distro/recipes-weak-ciphers/python-device-cloud/python-device-cloud_%.bbappend
/wrl10/build/US106554_crytodev_qemuarm64_rt_01/layers/wrlinux/wrlinux-distro/recipes-weak-ciphers/python3-device-cloud/python3-device-cloud_%.bbappend
NOTE: Resolving any missing task queue dependencies
Build Configuration:
WRLINUX_VERSION = "10.17.41.7"
WRLINUX_BRANCH = "LTS"
BB_VERSION = "1.36.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
DISTRO = "wrlinux"
DISTRO_VERSION = "10.17.41.7"
MACHINE = "qemuarm64"
DEFAULTTUNE = "aarch64"
TARGET_SYS = "aarch64-wrs-linux"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""
lib32: DEFAULTTUNE = "armv7vethf"
lib32: TARGET_SYS = "arm-wrsmllib32-linux-gnueabi"
lib32: TUNE_FEATURES = "arm armv7ve vfp thumb callconvention-hard"
lib32: TARGET_FPU = "hard"
wrlinux
wrlinux-distro = "HEAD:d8505bfbe3649e15f68cf4720a099e59ce82c0b2"
meta = "HEAD:603554b5f064ba1c2042fe5a7f0e4040ca12d270"
wr-template = "HEAD:0a6c6f593d8c13216b897c1731b289c15f571393"
meta-filesystems
meta-gnome
meta-initramfs
meta-python
meta-multimedia
meta-networking
meta-oe
meta-perl = "HEAD:2d27c4ed45d9cf3a8107d5d56596e51503d2f34a"
meta-realtime = "HEAD:210860d67c8061fd92dd8f24fe333647b4314ad3"
meta-virtualization = "HEAD:bfb1bc9696d1c0f8ae880bf6167e803df9614faf"
meta-webserver
meta-xfce = "HEAD:2d27c4ed45d9cf3a8107d5d56596e51503d2f34a"
wrlinux-dl = "HEAD:b9ceea2ff3001a6cd0e3a98d03839409c9195d51"
meta-dpdk = "HEAD:bdf925ffd788bea368540e6f6e11e857709f7d9c"
meta-encrypted-storage
meta-ids
meta-integrity
meta = "HEAD:07938457c592563282aac173033305ad3b986185"
meta-security = "HEAD:1ceb93cfbf92b52c2de772a7b8cf9c2eceda21cf"
meta-selinux = "HEAD:70580f8dfc1f1b9187ac6cfecdfb1cf92ffc3992"
meta-signing-key
meta-tpm
meta-tpm2
meta-efi-secure-boot = "HEAD:07938457c592563282aac173033305ad3b986185"
oe-core-dl-2.4 = "HEAD:ed78e9bb5e71d683fc4ddf8f478364830010c626"
meta-filesystems-dl-2.4 = "HEAD:b5ea67798f5a61be19b53a5405505c8492f2882d"
meta-gnome-dl-2.4 = "HEAD:be5c92d5f856fa59f5ce07f967328386c736cf98"
meta-initramfs-dl-2.4 = "HEAD:5cef41edbeff10926374b10a0dbd9d8f6eb4fff3"
meta-python-dl-2.4 = "HEAD:aab1cd4678c89dda4cee8f3b929f6bf985bcb932"
meta-multimedia-dl-2.4 = "HEAD:a68150ec3053cee48051878648432568328a6a15"
meta-networking-dl-2.4 = "HEAD:76e7397c35e8636286548500796432063379dcf6"
meta-oe-dl-2.4 = "HEAD:00b4191aa4889f212bdc1874bff8c7d89b158dc4"
meta-perl-dl-2.4 = "HEAD:7a0c9e059e870aab447a0a79bd44c1d49a9d6bcf"
meta-realtime-dl-2.4 = "HEAD:c7d81a76390c0b3685e1199ff54f5bbebcb65497"
meta-virtualization-dl-2.4 = "HEAD:7014351daeaa38ff19cc6354e762379ac6d30150"
meta-webserver-dl-2.4 = "HEAD:fd15e4636bb79b1c341f9a50f8382c88f3fdb9f0"
meta-xfce-dl-2.4 = "HEAD:f7e1fc9395e0cd0cc95017b10e527f4571adf7f2"
meta-dpdk-dl = "HEAD:260d5516be8b18b939fcc6b55eeb36e445e3a788"
meta-encrypted-storage-dl = "HEAD:405c965d20477e20c82fa87a3667887b5efa3983"
meta-ids-dl = "HEAD:31f96a144dd5559783290ae79a366e9dd476b8bc"
meta-integrity-dl = "HEAD:f75a1aea90e8e2facc9bfc90e50b1b2bf67e380d"
meta-security-dl = "HEAD:2cd01e7dadf382604cdc67c90142d8c54c8aa4aa"
meta-selinux-dl = "HEAD:050f1e46a2664fe28dfb141535519e0744c7c77c"
meta-tpm-dl = "HEAD:ba45633ce30142d3cef6496fe89614984d20265e"
meta-tpm2-dl = "HEAD:6cc93864ed331655c7507b6626ed0605552fbec2"
meta-efi-secure-boot-dl = "HEAD:ea5e5181dccaa51961b48f5e7028ce8f86b5b99b"
local = "master:f47cfbb3bfb388c9ffa47a509dc571d73bd5eef3"
Initialising tasks: 100% |##########################################################################################################################################################################| Time: 0:00:03
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: linux-yocto-rt-4.12.21+gitAUTOINC+38c56dc223_bec5c846f0-r0 do_kernel_metadata: Could not locate BSP definition for qemuarm64/preempt-rt and no defconfig was provided
ERROR: linux-yocto-rt-4.12.21+gitAUTOINC+38c56dc223_bec5c846f0-r0 do_kernel_metadata: Function failed: do_kernel_metadata (log file is located at /wrl10/build/US106554_crytodev_qemuarm64_rt_01/build_test/tmp-glibc/work/qemuarm64-wrs-linux/linux-yocto-rt/4.12.21+gitAUTOINC+38c56dc223_bec5c846f0-r0/temp/log.do_kernel_metadata.13171)
ERROR: Logfile of failure stored in: /wrl10/build/US106554_crytodev_qemuarm64_rt_01/build_test/tmp-glibc/work/qemuarm64-wrs-linux/linux-yocto-rt/4.12.21+gitAUTOINC+38c56dc223_bec5c846f0-r0/temp/log.do_kernel_metadata.13171
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are
| ['/wrl10/build/US106554_crytodev_qemuarm64_rt_01/laye
| rs/oe-core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_
| populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['kern-tools-native',
| 'quilt-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_kernel_metadata
| ERROR: Could not locate BSP definition for qemuarm64/preempt-rt and no
| defconfig was provided
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_kernel_metadata (log file is located at
| /wrl10/build/US106554_crytodev_qemuarm64_rt_01/build_
| test/tmp-glibc/work/qemuarm64-wrs-linux/linux-yocto-rt/4.12.21+gitAUTO
| INC+38c56dc223_bec5c846f0-r0/temp/log.do_kernel_metadata.13171)
ERROR: Task (/wrl10/build/US106554_crytodev_qemuarm64_rt_01/layers/oe-core/meta/recipes-kernel/linux/linux-yocto-rt_4.12.bb:do_kernel_metadata) failed with exit code '1'
NOTE: Tasks Summary: Attempted 493 tasks of which 491 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/wrl10/build/US106554_crytodev_qemuarm64_rt_01/layers/oe-core/meta/recipes-kernel/linux/linux-yocto-rt_4.12.bb:do_kernel_metadataqemuarm64
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
/lpg-build/cdc/fast_prod/WRL10_17/WRL10_17_GIT/wrlinux-10/setup.sh --machines qemuarm64 --distros=wrlinux --dl-layers --accept-eula=yes
. ./environment-setup-x86_64-wrlinuxsdk-linux
. ./oe-init-build-env build_test
...
vi conf/local.conf
#Add the following two lines.
TARGET_SUPPORTED_KTYPES_append = " preempt-rt"
PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-rt"
bitbake linux-yocto-rt