Ensure the core-image-rt image can be built WITH the linux-yocto-rt kernel. Specify the kernel via PREFERRED_PROVIDER_virtual/kernel="linux-yocto-rt". Use the PREFERRED_VERSION_linux-yocto-rt to ensure all current versions build.
Attempting to use the core-image-rt in 1.2_M4 gives the broken: $ bitbake core-image-rt Loading cache: 100% |###########################################################################################################################################| ETA: 00:00:00 Loaded 1108 entries from dependency cache. OE Build Configuration: BB_VERSION = "1.15.1" TARGET_ARCH = "i586" TARGET_OS = "linux" MACHINE = "qemux86" DISTRO = "poky" DISTRO_VERSION = "1.2" TUNE_FEATURES = "m32 i586" TARGET_FPU = "" meta meta-yocto = "mcgraw:da6233ea034f35eff59306fdad31f318c340c359" NOTE: Resolving any missing task queue dependencies NOTE: Preparing runqueue ERROR: Multiple .bb files are due to be built which each provide virtual/kernel (/home/timoc/src/yocto/mcgraw/poky/meta/recipes-kernel/linux/linux-yocto-rt_3.2.bb /home/timoc/src/yocto/mcgraw/poky/meta/recipes-kernel/linux/linux-yocto_3.2.bb). This usually means one provides something the other doesn't and should. NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks NOTE: Running task 1217 of 1373 (ID: 240, /home/timoc/src/yocto/mcgraw/poky/meta/recipes-kernel/linux/linux-yocto_3.2.bb, do_package_write_rpm) NOTE: package linux-yocto-3.2.11+git1+867fc7a19f2ea74253d1f20c3d61b7829635175b_1+8ada1bb97415fe959a57a08504be4eb8a656ed30-r1: task do_package_write_rpm: Started ERROR: Package already staged (/mnt/oldhome/home/timoc/yocto/tmp/sstate-control/manifest-qemux86-linux-yocto-rt.deploy-rpm)?! ERROR: Function failed: sstate_task_postfunc ERROR: Execution of event handler 'run_buildstats' failed Traceback (most recent call last): File "run_buildstats(e)", line 104, in run_buildstats(e=<bb.build.TaskFailed object at 0x8cdf4d0>) File "buildstats.bbclass", line 5, in write_task_data(status='failed', logfile='/mnt/oldhome/home/timoc/yocto/tmp/buildstats/core-image-rt-qemux86/201204021110/linux-yocto-rt-3.2.11+git1+867fc7a19f2ea74253d1f20c3d61b7829635175b_1+32ecb53e9ff759bbd297a10712b62a6575daaf86-r1/do_package_write_rpm', dev='dm-2', e=<bb.build.TaskFailed object at 0x8cdf4d0>) IOError: [Errno 2] No such file or directory: '/mnt/oldhome/home/timoc/yocto/tmp/buildstats/core-image-rt-qemux86/201204021110/linux-yocto-rt-3.2.11+git1+867fc7a19f2ea74253d1f20c3d61b7829635175b_1+32ecb53e9ff759bbd297a10712b62a6575daaf86-r1/do_package_write_rpm' ERROR: Logfile of failure stored in: /mnt/oldhome/home/timoc/yocto/tmp/work/qemux86-poky-linux/linux-yocto-3.2.11+git1+867fc7a19f2ea74253d1f20c3d61b7829635175b_1+8ada1bb97415fe959a57a08504be4eb8a656ed30-r1/temp/log.do_package_write_rpm.31260 NOTE: package linux-yocto-rt-3.2.11+git1+867fc7a19f2ea74253d1f20c3d61b7829635175b_1+32ecb53e9ff759bbd297a10712b62a6575daaf86-r1: task do_package_write_rpm: Failed ERROR: Task 240 (/home/timoc/src/yocto/mcgraw/poky/meta/recipes-kernel/linux/linux-yocto_3.2.bb, do_package_write_rpm) failed with exit code '1' NOTE: Tasks Summary: Attempted 1217 tasks of which 1216 didn't need to be rerun and 1 failed. Summary: 1 task failed: /home/timoc/src/yocto/mcgraw/poky/meta/recipes-kernel/linux/linux-yocto_3.2.bb, do_package_write_rpm Summary: There were 4 ERROR messages shown, returning a non-zero exit code.
T OCallaghan, are you reporting an issue building this on the Autobuilder? Or are you reporting a general linux-yocto-rt build failure? I built a clean core-image-rt for qemux86 just now and it completed successfully: OE Build Configuration: BB_VERSION = "1.15.1" TARGET_ARCH = "i586" TARGET_OS = "linux" MACHINE = "qemux86" DISTRO = "poky" DISTRO_VERSION = "1.1+snapshot-20120402" TUNE_FEATURES = "m32 i586" TARGET_FPU = "" meta meta-yocto = "master:723c91297d833f989b762c661d05eef6a5e2fe5c" meta-intel = "master:aa46fd4223e70b0cd845dce0c4e06e29232cca35" meta-kernel-dev = "master:a521d099327773574e26701397a2c0bc6fd66fd2"
I would assume it is a problem with both, but i may have posted to the wrong issue so as not to duplicate an existing issue. Please move to the appropriate place if i erred. The problem is simply that core-image-rt does not build out of the box for 1.2_M4 - which i expected to be the default behavior. It fails due to this error: ---------- ERROR: Multiple .bb files are due to be built which each provide virtual/kernel (/test_yocto/poky/meta/recipes-kernel/linux/linux-yocto-rt_3.2.bb /test_yocto/poky/meta/recipes-kernel/linux/linux-yocto_3.2.bb). This usually means one provides something the other doesn't and should. ---------- --------- snipped test output from my test this morning ------------ test_yocto $ mkdir poky test_yocto $ cd poky test_yocto/poky $ git init Initialized empty Git repository in /test_yocto/poky/.git/ test_yocto/poky $ git remote add poky git://git.yoctoproject.org/poky.git test_yocto/poky $ git remote update Fetching poky remote: Counting objects: 139149, done. remote: Compressing objects: 100% (42368/42368), done. remote: Total 139149 (delta 97543), reused 133591 (delta 93199) Receiving objects: 100% (139149/139149), 76.27 MiB | 806 KiB/s, done. Resolving deltas: 100% (97543/97543), done. From git://git.yoctoproject.org/poky ................ snip .................. test_yocto/poky $ git checkout -tb test-rt poky/1.2_M4 Branch test-rt set up to track remote branch 1.2_M4 from poky. Switched to a new branch 'test-rt' test_yocto/poky $ source oe-init-build-env You had no conf/local.conf file. This configuration file has therefore been created for you with some default values. You may wish to edit it to use a different MACHINE (target hardware) or enable parallel build options to take advantage of multiple cores for example. See the file for more information as common configuration options are commented. The Yocto Project has extensive documentation about OE including a reference manual which can be found at: http://yoctoproject.org/documentation For more information about OpenEmbedded see their website: http://www.openembedded.org/ You had no conf/bblayers.conf file. The configuration file has been created for you with some default values. To add additional metadata layers into your configuration please add entries to this file. The Yocto Project has extensive documentation about OE including a reference manual which can be found at: http://yoctoproject.org/documentation For more information about OpenEmbedded see their website: http://www.openembedded.org/ ### Shell environment set up for builds. ### You can now run 'bitbake <target>' Common targets are: core-image-minimal core-image-sato meta-toolchain meta-toolchain-sdk adt-installer meta-ide-support You can also run generated qemu images with a command like 'runqemu qemux86' test_yocto/poky/build $ umask a+rx u+rwx test_yocto/poky/build $ bitbake core-image-rt Pseudo is not present but is required, building this first before the main build Parsing recipes: 100% |#############################################################################| Time: 00:01:13 Parsing of 831 .bb files complete (0 cached, 831 parsed). 1107 targets, 18 skipped, 0 masked, 0 errors. OE Build Configuration: BB_VERSION = "1.15.1" TARGET_ARCH = "i586" TARGET_OS = "linux" MACHINE = "qemux86" DISTRO = "poky" DISTRO_VERSION = "1.2" TUNE_FEATURES = "m32 i586" TARGET_FPU = "" meta meta-yocto = "test-rt:da6233ea034f35eff59306fdad31f318c340c359" NOTE: Resolving any missing task queue dependencies NOTE: Preparing runqueue NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks NOTE: Running task 1 of 77 (ID: 18, /test_yocto/poky/meta/recipes-devtools/quilt/quilt-native_0.51.bb, do_fetch) NOTE: Running task 2 of 77 (ID: 53, virtual:native:/test_yocto/poky/meta/recipes-devtools/gnu-config/gnu-config_20111111.bb, do_fetch) NOTE: Running task 3 of 77 (ID: 67, /test_yocto/poky/meta/recipes-devtools/m4/m4-native_1.4.16.bb, do_fetch) NOTE: Running task 4 of 77 (ID: 32, virtual:native:/test_yocto/poky/meta/recipes-devtools/autoconf/autoconf_2.68.bb, do_fetch) NOTE: package quilt-native-0.51-r0: task do_fetch: Started NOTE: package gnu-config-native-20111111-r1: task do_fetch: Started NOTE: package m4-native-1.4.16-r2: task do_fetch: Started NOTE: package autoconf-native-2.68-r6: task do_fetch: Started NOTE: package quilt-native-0.51-r0: task do_fetch: Succeeded .......... snip ................. test_yocto/poky/build $ test_yocto/poky/build $ bitbake core-image-rt Loading cache: 100% |#######################################################################################################################################################################################################| ETA: 00:00:00 Loaded 1108 entries from dependency cache. OE Build Configuration: BB_VERSION = "1.15.1" TARGET_ARCH = "i586" TARGET_OS = "linux" MACHINE = "qemux86" DISTRO = "poky" DISTRO_VERSION = "1.2" TUNE_FEATURES = "m32 i586" TARGET_FPU = "" meta meta-yocto = "test-rt:da6233ea034f35eff59306fdad31f318c340c359" NOTE: Resolving any missing task queue dependencies NOTE: Preparing runqueue ERROR: Multiple .bb files are due to be built which each provide virtual/kernel (/test_yocto/poky/meta/recipes-kernel/linux/linux-yocto-rt_3.2.bb /test_yocto/poky/meta/recipes-kernel/linux/linux-yocto_3.2.bb). This usually means one provides something the other doesn't and should. NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks NOTE: Running task 1371 of 1373 (ID: 8, /test_yocto/poky/meta/recipes-rt/images/core-image-rt.bb, do_rootfs) NOTE: package core-image-rt-1.0-r0: task do_rootfs: Started NOTE: package core-image-rt-1.0-r0: task do_rootfs: Succeeded NOTE: Running noexec task 1373 of 1373 (ID: 5, /test_yocto/poky/meta/recipes-rt/images/core-image-rt.bb, do_build) NOTE: Tasks Summary: Attempted 1373 tasks of which 1371 didn't need to be rerun and all succeeded. Summary: There was 1 ERROR message shown, returning a non-zero exit code. test_yocto/poky/build $
Did you specify PREFERRED_PROVIDER_virtual/kernel="linux-yocto-rt" in either bblayers.conf or local.conf?
No, and re-tested with he preferred kernel, and it works, but shouldn't the PREFERRED_PROVIDER be part of the core-image-rt setup? I suspected that i might have missed the documentation about linux-yocto-rt etc, but it seems to be more of an undocumented feature. http://www.google.co.uk/search?q=%22PREFERRED_PROVIDER_virtual%2Fkernel%3D%22linux-yocto-rt%22%22+site%3Ayoctoproject.org%2Fdocs&btnG=Search&hl=en http://www.google.co.uk/search?q=%2B%22PREFERRED_PROVIDER_virtual%2Fkernel%22+%2B%22linux-yocto-rt%22+site%3Ayoctoproject.org%2Fdocs&btnG=Search&hl=en
Let's take this to the mailing list as it has nothing to do with this bug.
Beth, has this been added? I thought it had.
No, not yet. It should be in next week when I have some autobuilder downtime.
No QA needed since it's a autobuilder feature.
http://git.yoctoproject.org/cgit/cgit.cgi/yocto-autobuilder/commit/?id=1ed327cf27b87225782da03d0472c84d7820b7ba
Setting this to verified in 1.3 M1