[yocto] bitbake core-image-base -c do_populate_sdk fails with glibc (unmet dependencies)

David Bensoussan dbensoussan at synapticon.com
Sun Apr 23 02:09:21 PDT 2017


I forgot to precise, compiling, doesn't work on the host system, it cannot
compile a simple .c file, not finding "stdio.h".

On Sun, 23 Apr 2017 at 10:40 David Bensoussan <dbensoussan at synapticon.com>
wrote:

> I managed to track down how to create the SDK. Sorry for the long answer
> but it might help people googling it.
>
> DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC}
> ${POKY_DEFAULT_DISTRO_FEATURES}" in *meta-poky/conf/distro/poky.conf*
> DISTRO_FEATURES_LIBC is defined as DISTRO_FEATURES_LIBC_DEFAULT in
> *meta/conf/distro/include/default-distrovars.inc*
> DISTRO_FEATURES_LIBC_DEFAULT ?= "ipv4 ipv6 libc-backtrace libc-big-macros
> libc-bsd libc-cxx-tests libc-catgets libc-charsets libc-crypt \
> libc-crypt-ufc libc-db-aliases libc-envz libc-fcvt libc-fmtmsg libc-fstab
> libc-ftraverse \
> libc-getlogin libc-idn libc-inet-anl libc-libm libc-locales
> libc-locale-code \
> libc-memusage libc-nis libc-nsswitch libc-rcmd libc-rtld-debug libc-spawn
> libc-streams libc-sunrpc \
> libc-utmp libc-utmpx libc-wordexp libc-posix-clang-wchar libc-posix-regexp
> libc-posix-regexp-glibc \
> libc-posix-wchar-io" i*n the same file*
>
> And finally:
>
> LIBC_DEPENDENCIES = "libsegfault \
>     glibc \
>     glibc-dbg \
>     glibc-dev \
>     glibc-utils \
>     glibc-thread-db \
>     ${@get_libc_locales_dependencies(d)}"
>
> LIBC_LOCALE_DEPENDENCIES = "\
> glibc-localedata-i18n \
> glibc-gconv-ibm850 \
> glibc-gconv-cp1252 \
> glibc-gconv-iso8859-1 \
> glibc-gconv-iso8859-15"
>
> def get_libc_locales_dependencies(d):
>     if 'libc-locales' in (d.getVar('DISTRO_FEATURES', True) or '').split()
> :
>         return d.getVar('LIBC_LOCALE_DEPENDENCIES', True) or ''
>     else:
>         return ''
>
>
> *in ../meta/conf/distro/include/tclibc-glibc.inc*
>
> This is how they are enabled. To make it work, I added in my local.conf:
> LIBC_DEPENDENCIES_remove += "glibc-gconv-cp1252 glibc-gconv-ibm850
> glibc-gconv-iso8859-1 glibc-gconv-iso8859-15 glibc-localedata-i18n"
>
> Now, I simply wonder why is there a "compatibility issue" having them in
> the DISTRO_FEATURES.
>
>
> On Sat, 22 Apr 2017 at 09:49 David Bensoussan <dbensoussan at synapticon.com>
> wrote:
>
>> It was a typo, sorry, I typed it without the "do_"
>>
>> On Fri, 21 Apr 2017 at 20:50 Trevor Woerner <twoerner at gmail.com> wrote:
>>
>>> On Fri 2017-04-21 @ 11:37:44 AM, David Bensoussan wrote:
>>> > I wanted to generate an sdk and met these errors while executing:
>>> > $ bitbake core-image-base -c do_populate_sdk
>>>
>>> Does adding the "do_" work? Is there any difference if you type:
>>>
>>>         $ bitbake core-image-base -c populate_sdk
>>>
>>> ?
>>>
>> --
>>
>> *David bensoussan*
>> Roboticist / Embedded Software Engineer
>> ------------------------------
>>
>> *Synapticon* | Robotic Control Systems
>> Mobile: 015779804515
>> Fax: +49 7031 / 30 478 -99 <+49%207031%203047899>
>>
>> *synapticon.com* <https://www.synapticon.com/> | Twitter
>> <https://twitter.com/#!/synapticon_co> | Facebook
>> <https://fb.com/Synapticon>
>>
>> Synapticon GmbH | Daimlerstraße 26 | 71101 Schönaich, Germany
>> Secretary +49 7031 / 30 478 -0 | Managing Director: Nikolai Ensslen
>> Amtsgericht Stuttgart HRB 756076 | USt-ID DE271647127
>>
>> This message and any files transmitted with it are confidential and
>> intended solely for the use of the individual or entity to whom they are
>> addressed. Please notify the sender immediately if you have received this
>> e-mail by mistake and delete it from your system.
>>
> --
>
> *David bensoussan*
> Roboticist / Embedded Software Engineer
> ------------------------------
>
> *Synapticon* | Robotic Control Systems
> Mobile: 015779804515
> Fax: +49 7031 / 30 478 -99 <+49%207031%203047899>
>
> *synapticon.com* <https://www.synapticon.com/> | Twitter
> <https://twitter.com/#!/synapticon_co> | Facebook
> <https://fb.com/Synapticon>
>
> Synapticon GmbH | Daimlerstraße 26 | 71101 Schönaich, Germany
> Secretary +49 7031 / 30 478 -0 | Managing Director: Nikolai Ensslen
> Amtsgericht Stuttgart HRB 756076 | USt-ID DE271647127
>
> This message and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they are
> addressed. Please notify the sender immediately if you have received this
> e-mail by mistake and delete it from your system.
>
-- 

*David bensoussan*
Roboticist / Embedded Software Engineer
------------------------------

*Synapticon* | Robotic Control Systems
Mobile: 015779804515
Fax: +49 7031 / 30 478 -99

*synapticon.com* <https://www.synapticon.com/> | Twitter
<https://twitter.com/#!/synapticon_co> | Facebook
<https://fb.com/Synapticon>

Synapticon GmbH | Daimlerstraße 26 | 71101 Schönaich, Germany
Secretary +49 7031 / 30 478 -0 | Managing Director: Nikolai Ensslen
Amtsgericht Stuttgart HRB 756076 | USt-ID DE271647127

This message and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed. Please notify the sender immediately if you have received this
e-mail by mistake and delete it from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170423/912fa5ea/attachment.html>


More information about the yocto mailing list