[yocto] Problem building glibc-locale

Andras Tantos andras at tantosonline.com
Fri Feb 3 14:52:10 PST 2017


Hi all,

I'm trying to build glibc-locale (actually I'm trying to build 
core-image-base, but that fails building glibc-locale) and encountering 
the following error:

    WARNING: Host distribution "Ubuntu-16.04" 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.
    Parsing recipes: 100%
    |#####################################################################################################################|
    Time: 00:00:05
    Parsing of 871 .bb files complete (0 cached, 871 parsed). 1301
    targets, 218 skipped, 0 masked, 0 errors.
    NOTE: Resolving any missing task queue dependencies

    Build Configuration:
    BB_VERSION        = "1.30.0"
    BUILD_SYS         = "x86_64-linux"
    NATIVELSBSTRING   = "Ubuntu-16.04"
    TARGET_SYS        = "i586-poky-linux"
    MACHINE           = "qemux86"
    DISTRO            = "poky"
    DISTRO_VERSION    = "2.1.2"
    TUNE_FEATURES     = "m32 i586"
    TARGET_FPU        = ""
    meta
    meta-poky
    meta-yocto-bsp    = "krogoth:ae9b341ecfcc60e970f29cfe04306411ad26c0cf"

    NOTE: Fetching uninative binary shim from
    http://downloads.yoctoproject.org/releases/uninative/1.0.1/x86_64-nativesdk-libc.tar.bz2;sha256sum=acf1e44a0ac2e855e81da6426197d36358bf7b4e88e552ef933128498c8910f8
    NOTE: Preparing RunQueue
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    WARNING: zlib-native-1.2.8-r0 do_fetch: Failed to fetch URL
    http://www.zlib.net/zlib-1.2.8.tar.xz, attempting MIRRORS if available
    WARNING: libpcre-native-8.38-r0 do_fetch: Failed to fetch URL
    ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.38.tar.bz2,
    attempting MIRRORS if available
    ERROR: glibc-locale-2.23-r0 do_package: QA Issue: glibc-locale:
    Files/directories were installed but not shipped in any package:
       /usr/lib/gconv/IBM4971.so
       /usr/lib/gconv/IBM1004.so
       /usr/lib/gconv/GREEK7.so
       /usr/lib/gconv/IBM866.so
       /usr/lib/gconv/ISO8859-11.so
    ... lots of files listed and trimmed ...
       /usr/share/i18n/locales/es_CU
       /usr/share/i18n/locales/crh_UA
       /usr/share/i18n/locales/the_NP
       /usr/share/i18n/locales/ar_DZ
       /usr/share/i18n/locales/os_RU
       /usr/share/i18n/locales/nds_DE
       /usr/share/i18n/locales/ar_MA
       /usr/share/i18n/locales/cs_CZ
       /usr/share/i18n/locales/sv_FI
       /usr/share/i18n/locales/sd_IN
       /usr/share/i18n/locales/es_VE
    Please set FILES such that these items are packaged. Alternatively
    if they are unneeded, avoid installing them or delete them within
    do_install.
    glibc-locale: 815 installed and not shipped files.
    [installed-vs-shipped]
    ERROR: glibc-locale-2.23-r0 do_package: Fatal QA errors found,
    failing task.
    ERROR: glibc-locale-2.23-r0 do_package: Function failed: do_package
    ERROR: Logfile of failure stored in:
    /home/atantos/personal/cray-xmp/trunk/sockit_sw/t7/krogoth/build/tmp/work/i586-poky-linux/glibc-locale/2.23-r0/temp/log.do_package.187260
    ERROR: Task 11
    (/home/atantos/personal/cray-xmp/trunk/sockit_sw/t7/krogoth/poky/meta/recipes-core/glibc/glibc-locale_2.23.bb,
    do_package) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 341 tasks of which 0 didn't need to
    be rerun and 1 failed.
    Waiting for 0 running tasks to finish:

    Summary: 1 task failed:
    /home/atantos/personal/cray-xmp/trunk/sockit_sw/t7/krogoth/poky/meta/recipes-core/glibc/glibc-locale_2.23.bb,
    do_package
    Summary: There were 3 WARNING messages shown.
    Summary: There were 3 ERROR messages shown, returning a non-zero
    exit code.


The problem seems to be related to trying to include usbhost in 
DISTRO_FEATURES.

The minimal repro seems to be this script:

    #!/bin/bash
    BRANCH=krogoth
    #BRANCH=jethro

    function error_exit
    {
         echo "$1" 1>&2
         exit 1
    }

    mkdir $BRANCH || error_exit "can't create directory: $BANCH"
    cd $BRANCH || error_exit "can't CD to directory: $BANCH"
    BASE=$PWD

    echo setting up branch: $BRANCH
    echo ====================================================
    echo
    echo STEP 1: cloning repositories
    echo ----------------------------------------------------
    git clone -b $BRANCH git://git.yoctoproject.org/poky.git ||
    error_exit "Can't clone main repo"

    echo
    echo STEP 2: creating default config
    echo ----------------------------------------------------
    source poky/oe-init-build-env ./build

    echo
    echo STEP 3: customizing configuration
    echo ----------------------------------------------------


    echo "###########################################" >> conf/local.conf
    echo "###########################################" >> conf/local.conf
    echo "###########################################" >> conf/local.conf
    echo "# LOCAL CHANGES" >> conf/local.conf
    echo "###########################################" >> conf/local.conf
    echo "###########################################" >> conf/local.conf
    echo "###########################################" >> conf/local.conf
    echo "DISTRO_FEATURES += \"usbhost\"" >> conf/local.conf

    echo
    echo STEP 3: building
    echo ----------------------------------------------------
    bitbake glibc-locale


I've seen other people report this problem but no solution, for example 
here: https://www.mail-archive.com/yocto@yoctoproject.org/msg32378.html 
and here: 
http://stackoverflow.com/questions/41937565/yocto-glibc-locale-do-package-installed-but-not-shipped-in-any-package.

Can you please help me fix the problem?

Thanks,
Andras Tantos

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170203/60144bcd/attachment.html>


More information about the yocto mailing list