From: Trevor W. <two...@gm...> - 2013-02-09 19:30:13
|
Hi everyone, Sorry if this is common knowledge and I'm just adding to the noise. I recently performed a build from source using the new Yocto-based build and stumbled across two potential build issues and wanted to document them in case anyone else has the same problems. To be clear I'm following the directions from this link: https://github.com/gumstix/Gumstix-YoctoProject-Repo/blob/master/README.md which I obtained from here: http://gumstix.org/software-development/open-embedded/209-yocto.html and I'm performing a build on the stable, master branch, not the unstable dev branch. 1) build fails because of a git fetch failure in prelink-native or prelink-cross and yet performing the git clone operation by hand works perfectly fine $ bitbake prelink-native WARNING: Host distribution "openSUSE 12.2" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution. Loading cache: 100% |################################################################################| ETA: 00:00:00 Loaded 1639 entries from dependency cache. Parsing recipes: 100% |################################################################################| Time: 00:00:00 Parsing of 1304 .bb files complete (1301 cached, 3 parsed). 1641 targets, 31 skipped, 0 masked, 0 errors. OE Build Configuration: BB_VERSION = "1.15.2" TARGET_ARCH = "arm" TARGET_OS = "linux-gnueabi" MACHINE = "overo" DISTRO = "poky" DISTRO_VERSION = "1.2.1" TUNE_FEATURES = "armv7a vfp neon cortexa8" TARGET_FPU = "vfp-neon" meta meta-yocto = "(nobranch):846b7c388738f382e83576e77b705aa547c1dd9b" meta-gnome meta-oe meta-xfce = "(nobranch):e77646bc2cf905fd671fc5c19ab6fd17f9b94b3f" meta-gumstix = "(nobranch):22ceac3d709dcad1691f915d7e35d07695b65f88" NOTE: Resolving any missing task queue dependencies NOTE: Preparing runqueue NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks NOTE: Running task 113 of 152 (ID: 4, virtual:native:/home/trevor/devel/gumstix/overo/yocto/gumstix/poky/meta/recipes-devtools/prelink/ prelink_git.bb, do_fetch) NOTE: package prelink-native-1.0+git1+7b47f2f8a15ed13b7905bc120bb2586f3e164f7d-r9: task do_fetch: Started WARNING: Failed to fetch URL git:// git.yoctoproject.org/prelink-cross.git;protocol=git ERROR: Fetcher failure: Fetch command export HOME="[snip]"; export GIT_CONFIG="[snip]"; export PATH="[snip]"; git remote add --mirror=fetch origin git://git.yoctoproject.org/prelink-cross.git could not be run: None ERROR: Function failed: Fetcher failure for URL: 'git:// git.yoctoproject.org/prelink-cross.git;protocol=git'. Unable to fetch URL from any source. NOTE: package prelink-native-1.0+git1+7b47f2f8a15ed13b7905bc120bb2586f3e164f7d-r9: task do_fetch: Failed ERROR: Task 4 (virtual:native:/home/trevor/devel/gumstix/overo/yocto/gumstix/poky/meta/recipes-devtools/prelink/ prelink_git.bb, do_fetch) failed with exit code '1' NOTE: Tasks Summary: Attempted 141 tasks of which 140 didn't need to be rerun and 1 failed. Summary: 1 task failed: virtual:native:/home/trevor/devel/gumstix/overo/yocto/gumstix/poky/meta/recipes-devtools/prelink/ prelink_git.bb, do_fetch Summary: There were 2 WARNING messages shown. Summary: There were 2 ERROR messages shown, returning a non-zero exit code. In my case I like to keep my version of git fairly up to date; currently I'm running git-1.8.1 from git's git repository. The stable gumstix build, however, is based on a release of Yocto from a couple months back. As it turns out using a newer git with that version of bitbake's fetching tools isn't compatible. The solution is to downgrade my host's git tools (or I could have just used my distribution's released git tools instead of my own). I downgraded git to version 1.7.7 and it worked fine. 2) build fails trying to perform the do_install step of linux-sakoman-3.5.bb, the 'make' tool is complaining about "no rule to make target .../firmware/./" $ bitbake linux-sakoman WARNING: Host distribution "openSUSE 12.2" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution. Loading cache: 100% |##########| ETA: 00:00:00 Loaded 1639 entries from dependency cache. Parsing recipes: 100% |##########| Time: 00:00:00 Parsing of 1304 .bb files complete (1301 cached, 3 parsed). 1641 targets, 31 skipped, 0 masked, 0 errors. OE Build Configuration: BB_VERSION = "1.15.2" TARGET_ARCH = "arm" TARGET_OS = "linux-gnueabi" MACHINE = "overo" DISTRO = "poky" DISTRO_VERSION = "1.2.1" TUNE_FEATURES = "armv7a vfp neon cortexa8" TARGET_FPU = "vfp-neon" meta meta-yocto = "(nobranch):846b7c388738f382e83576e77b705aa547c1dd9b" meta-gnome meta-oe meta-xfce = "(nobranch):e77646bc2cf905fd671fc5c19ab6fd17f9b94b3f" meta-gumstix = "(nobranch):22ceac3d709dcad1691f915d7e35d07695b65f88" NOTE: Resolving any missing task queue dependencies NOTE: Preparing runqueue NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks NOTE: Running task 335 of 746 (ID: 86, virtual:native:/home/trevor/devel/gumstix/overo/yocto/gumstix/poky/meta/recipes-devtools/prelink/ prelink_git.bb, do_fetch) NOTE: Running task 382 of 746 (ID: 4, /home/trevor/devel/gumstix/overo/yocto/gumstix/poky/meta-gumstix/recipes-kernel/linux/ linux-sakoman_3.5.bb, do_fetch) NOTE: package prelink-native-1.0+git1+7b47f2f8a15ed13b7905bc120bb2586f3e164f7d-r9: task do_fetch: Started NOTE: package linux-sakoman-3.5-r0: task do_fetch: Started NOTE: package prelink-native-1.0+git1+7b47f2f8a15ed13b7905bc120bb2586f3e164f7d-r9: task do_fetch: Succeeded NOTE: Running task 680 of 746 (ID: 82, virtual:native:/home/trevor/devel/gumstix/overo/yocto/gumstix/poky/meta/recipes-devtools/prelink/ prelink_git.bb, do_unpack) NOTE: package prelink-native-1.0+git1+7b47f2f8a15ed13b7905bc120bb2586f3e164f7d-r9: task do_unpack: Started NOTE: package prelink-native-1.0+git1+7b47f2f8a15ed13b7905bc120bb2586f3e164f7d-r9: task do_unpack: Succeeded NOTE: Running task 681 of 746 (ID: 83, virtual:native:/home/trevor/devel/gumstix/overo/yocto/gumstix/poky/meta/recipes-devtools/prelink/ prelink_git.bb, do_patch) NOTE: package linux-sakoman-3.5-r0: task do_fetch: Succeeded NOTE: package prelink-native-1.0+git1+7b47f2f8a15ed13b7905bc120bb2586f3e164f7d-r9: task do_patch: Started NOTE: package prelink-native-1.0+git1+7b47f2f8a15ed13b7905bc120bb2586f3e164f7d-r9: task do_patch: Succeeded NOTE: Running task 682 of 746 (ID: 0, /home/trevor/devel/gumstix/overo/yocto/gumstix/poky/meta-gumstix/recipes-kernel/linux/ linux-sakoman_3.5.bb, do_unpack) NOTE: Running task 683 of 746 (ID: 87, virtual:native:/home/trevor/devel/gumstix/overo/yocto/gumstix/poky/meta/recipes-devtools/prelink/ prelink_git.bb, do_configure) NOTE: package linux-sakoman-3.5-r0: task do_unpack: Started NOTE: package prelink-native-1.0+git1+7b47f2f8a15ed13b7905bc120bb2586f3e164f7d-r9: task do_configure: Started NOTE: package prelink-native-1.0+git1+7b47f2f8a15ed13b7905bc120bb2586f3e164f7d-r9: task do_configure: Succeeded NOTE: Running task 685 of 746 (ID: 88, virtual:native:/home/trevor/devel/gumstix/overo/yocto/gumstix/poky/meta/recipes-devtools/prelink/ prelink_git.bb, do_compile) NOTE: package prelink-native-1.0+git1+7b47f2f8a15ed13b7905bc120bb2586f3e164f7d-r9: task do_compile: Started NOTE: package prelink-native-1.0+git1+7b47f2f8a15ed13b7905bc120bb2586f3e164f7d-r9: task do_compile: Succeeded NOTE: Running task 686 of 746 (ID: 84, virtual:native:/home/trevor/devel/gumstix/overo/yocto/gumstix/poky/meta/recipes-devtools/prelink/ prelink_git.bb, do_install) NOTE: package prelink-native-1.0+git1+7b47f2f8a15ed13b7905bc120bb2586f3e164f7d-r9: task do_install: Started NOTE: package prelink-native-1.0+git1+7b47f2f8a15ed13b7905bc120bb2586f3e164f7d-r9: task do_install: Succeeded NOTE: Running task 687 of 746 (ID: 85, virtual:native:/home/trevor/devel/gumstix/overo/yocto/gumstix/poky/meta/recipes-devtools/prelink/ prelink_git.bb, do_populate_sysroot) NOTE: Running noexec task 690 of 746 (ID: 89, virtual:native:/home/trevor/devel/gumstix/overo/yocto/gumstix/poky/meta/recipes-devtools/prelink/ prelink_git.bb, do_package_write) NOTE: package prelink-native-1.0+git1+7b47f2f8a15ed13b7905bc120bb2586f3e164f7d-r9: task do_populate_sysroot: Started NOTE: package prelink-native-1.0+git1+7b47f2f8a15ed13b7905bc120bb2586f3e164f7d-r9: task do_populate_sysroot: Succeeded NOTE: package linux-sakoman-3.5-r0: task do_unpack: Succeeded NOTE: Running task 733 of 746 (ID: 1, /home/trevor/devel/gumstix/overo/yocto/gumstix/poky/meta-gumstix/recipes-kernel/linux/ linux-sakoman_3.5.bb, do_patch) NOTE: package linux-sakoman-3.5-r0: task do_patch: Started NOTE: package linux-sakoman-3.5-r0: task do_patch: Succeeded NOTE: Running task 734 of 746 (ID: 6, /home/trevor/devel/gumstix/overo/yocto/gumstix/poky/meta-gumstix/recipes-kernel/linux/ linux-sakoman_3.5.bb, do_configure) NOTE: Running task 735 of 746 (ID: 14, /home/trevor/devel/gumstix/overo/yocto/gumstix/poky/meta-gumstix/recipes-kernel/linux/ linux-sakoman_3.5.bb, do_populate_lic) NOTE: package linux-sakoman-3.5-r0: task do_configure: Started NOTE: package linux-sakoman-3.5-r0: task do_populate_lic: Started NOTE: package linux-sakoman-3.5-r0: task do_populate_lic: Succeeded NOTE: package linux-sakoman-3.5-r0: task do_configure: Succeeded NOTE: Running task 736 of 746 (ID: 7, /home/trevor/devel/gumstix/overo/yocto/gumstix/poky/meta-gumstix/recipes-kernel/linux/ linux-sakoman_3.5.bb, do_compile) NOTE: package linux-sakoman-3.5-r0: task do_compile: Started NOTE: package linux-sakoman-3.5-r0: task do_compile: Succeeded NOTE: Running task 737 of 746 (ID: 9, /home/trevor/devel/gumstix/overo/yocto/gumstix/poky/meta-gumstix/recipes-kernel/linux/ linux-sakoman_3.5.bb, do_compile_kernelmodules) NOTE: Running task 738 of 746 (ID: 8, /home/trevor/devel/gumstix/overo/yocto/gumstix/poky/meta-gumstix/recipes-kernel/linux/ linux-sakoman_3.5.bb, do_sizecheck) NOTE: package linux-sakoman-3.5-r0: task do_compile_kernelmodules: Started NOTE: package linux-sakoman-3.5-r0: task do_sizecheck: Started NOTE: package linux-sakoman-3.5-r0: task do_sizecheck: Succeeded NOTE: package linux-sakoman-3.5-r0: task do_compile_kernelmodules: Succeeded NOTE: Running task 739 of 746 (ID: 2, /home/trevor/devel/gumstix/overo/yocto/gumstix/poky/meta-gumstix/recipes-kernel/linux/ linux-sakoman_3.5.bb, do_install) NOTE: package linux-sakoman-3.5-r0: task do_install: Started ERROR: Function failed: do_install (see /home/trevor/devel/gumstix/overo/yocto/gumstix/build/tmp/work/overo-poky-linux-gnueabi/linux-sakoman-3.5-r0/temp/log.do_install.11331 for further information) ERROR: Logfile of failure stored in: /home/trevor/devel/gumstix/overo/yocto/gumstix/build/tmp/work/overo-poky-linux-gnueabi/linux-sakoman-3.5-r0/temp/log.do_install.11331 Log data follows: | NOTE: make -j 4 DEPMOD=echo INSTALL_MOD_PATH=/home/trevor/devel/gumstix/overo/yocto/gumstix/build/tmp/work/overo-poky-linux-gnueabi/linux-sakoman-3.5-r0/image modules_install | INSTALL block/cfq-iosched.ko | INSTALL drivers/hwmon/adt7462.ko | INSTALL drivers/hwmon/adt7470.ko | INSTALL drivers/hwmon/adt7475.ko [...snip... 100's more of the same...] | MKDIR /home/trevor/devel/gumstix/overo/yocto/gumstix/build/tmp/work/overo-poky-linux-gnueabi/linux-sakoman-3.5-r0/image/lib/firmware/emi26/ | make[1]: *** No rule to make target `/home/trevor/devel/gumstix/overo/yocto/gumstix/build/tmp/work/overo-poky-linux-gnueabi/linux-sakoman-3.5-r0/image/lib/firmware/./', needed by `/home/trevor/devel/gumstix/overo/yocto/gumstix/build/tmp/work/overo-poky-linux-gnueabi/linux-sakoman-3.5-r0/image/lib/firmware/ti_3410.fw'. Stop. | make[1]: *** Waiting for unfinished jobs.... | MKDIR /home/trevor/devel/gumstix/overo/yocto/gumstix/build/tmp/work/overo-poky-linux-gnueabi/linux-sakoman-3.5-r0/image/lib/firmware/emi62/ | MKDIR /home/trevor/devel/gumstix/overo/yocto/gumstix/build/tmp/work/overo-poky-linux-gnueabi/linux-sakoman-3.5-r0/image/lib/firmware/kaweth/ | make: *** [_modinst_post] Error 2 | ERROR: oe_runmake failed NOTE: package linux-sakoman-3.5-r0: task do_install: Failed ERROR: Task 2 (/home/trevor/devel/gumstix/overo/yocto/gumstix/poky/meta-gumstix/recipes-kernel/linux/ linux-sakoman_3.5.bb, do_install) failed with exit code '1' NOTE: Tasks Summary: Attempted 739 tasks of which 722 didn't need to be rerun and 1 failed. Summary: 1 task failed: /home/trevor/devel/gumstix/overo/yocto/gumstix/poky/meta-gumstix/recipes-kernel/linux/ linux-sakoman_3.5.bb, do_install Summary: There was 1 WARNING message shown. Summary: There was 1 ERROR message shown, returning a non-zero exit code. This is a problem anyone using the latest version of 'make' (3.82) is going to face. In my case openSuSE (release 12.2) has upgraded to the latest version of the 'make' utility (meanwhile most other distributions have not). The semantics of how make-3.82 work have changed in such a way that many older Makefiles no longer work correctly. The solution is to fetch your own copy of make-3.81, compile, build, and install it someone so that it appears in your PATH before your system's make-3.82. After "fixing" these two problems the above build completed successfully. |