| Summary: | Yocto meta-toolchain script doesn't work | ||
|---|---|---|---|
| Product: | [Yocto Project Subprojects] ADT | Reporter: | Marco Cavallini <m.cavallini> |
| Component: | adt | Assignee: | Laurentiu Palcu <laurentiu.palcu> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | jessica.zhang, liang.li2, poky.adt.watcher, poky.watcher, yi.zhao |
| Version: | 1.3 | ||
| Target Milestone: | 1.4 M2 | ||
| Hardware: | Beagleboard | ||
| OS: | x86_64 | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
if change "PACKAGE_CLASSES ?= "package_deb"" to "PACKAGE_CLASSES ?= "package_rpm"" in local.conf and no change to others,no such error. steps: 1. run "bitbake meta-toolchain". 2. run "sudo tmp/deploy/sdk/poky-eglibc-x86_64-arm-toolchain-1.3.sh" and set installation dir to "/opt/poky/1.3". toolchain will be installed to "/opt/poky/1.3" successfully. toolchain downloaded from autobuiler also use "PACKAGE_CLASSES ?= "package_rpm"". Ok, with "PACKAGE_CLASSES ?= "package_rpm" it works. BTW I supposed that a toolchain was PACKAGE_CLASSES independent. Thank you Actually, in order to create the sysroots, the package manager is used. So, depending on what you chose in PACKAGE_CLASSES, that package manager will be used to generate the sysroot. This is related to the recent multilib changes... It looks like this commit (0b0674ebcd8a51783e4bb38e3ead3e419dbba376) is the reason why the installer tarball is empty when using the ceb package manager. Reverting the deb changes of that commit didn't produce better results as the do_populate_sdk task fails with some unmet dependencies... It turns out I was reverting only the target part instead of reverting the native part too... :( After reverting both, we can successfully build the standalone toolchain using the deb backend. Patch sent to the mailing list. if set "PACKAGE_CLASSES ?= "package_deb"" in file "conf/local.conf", the toolchain can build success(bitbake meta-toolchain) and can be installed to "/opt/poky/1.3" successfully. git info:958162e96b4a4f23bca94500b5f20975633dd5c6 git branch:poky/master |
Yocto meta-toolchain script doesnt' work Host: Ubuntu 10.04.4 LTS (Lucid Lynx) x86_64 Yocto sources are from git: git clone -b danny git://git.yoctoproject.org/poky.git My local.conf settings are: BB_NUMBER_THREADS = "4" PARALLEL_MAKE = "-j 4" MACHINE ??= "beagleboard" DISTRO ?= "poky" PACKAGE_CLASSES ?= "package_deb" EXTRA_IMAGE_FEATURES = "debug-tweaks" USER_CLASSES ?= "buildstats image-mklibs image-prelink" OE_TERMINAL = "screen" PATCHRESOLVE = "noop" CONF_VERSION = "1" BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},1G,100K WARN,${SSTATE_DIR},1G,100K" Build Configuration: BB_VERSION = "1.16.0" TARGET_ARCH = "arm" TARGET_OS = "linux-gnueabi" MACHINE = "beagleboard" DISTRO = "poky" DISTRO_VERSION = "1.3" TUNE_FEATURES = "armv7a vfp neon cortexa8" TARGET_FPU = "vfp-neon" meta meta-yocto meta-yocto-bsp = "danny:24af2693697ac38070f9702a9e6c4527989379ba" NOTE: Resolving any missing task queue dependencies NOTE: Preparing runqueue NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks WARNING: QA Issue: nativesdk-ncurses: Files/directories were installed but not shipped /opt/poky/1.3/sysroots/x86_64-pokysdk-linux/usr/bin/reset.ncurses /opt/poky/1.3/sysroots/x86_64-pokysdk-linux/usr/bin/clear.ncurses NOTE: Tasks Summary: Attempted 1879 tasks of which 250 didn't need to be rerun and all succeeded. ERROR #1 - Launching the setup script as normal user: $ tmp/deploy/sdk/poky-eglibc-x86_64-arm-toolchain-1.3.sh Enter target directory for SDK (default: /opt/poky/1.3): You are about to install the SDK to "/opt/poky/1.3". Proceed[Y/n]? Error: Unable to create target directory. Do you have permissions? ERROR #2 - Launching the setup script as root user: $ sudo tmp/deploy/sdk/poky-eglibc-x86_64-arm-toolchain-1.3.sh [sudo] password for koan: Enter target directory for SDK (default: /opt/poky/1.3): You are about to install the SDK to "/opt/poky/1.3". Proceed[Y/n]? Extracting SDK...done Setting it up...find: `/opt/poky/1.3/sysroots/x86_64-pokysdk-linux/lib': No such file or directory SDK could not be set up. Relocate script failed. Abort! TIA