All of lore.kernel.org
 help / color / mirror / Atom feed
* TCLIBC with newlib
@ 2020-08-07  0:22 Jonathan Richardson
  2020-08-07  4:58 ` [poky] " Khem Raj
  0 siblings, 1 reply; 12+ messages in thread
From: Jonathan Richardson @ 2020-08-07  0:22 UTC (permalink / raw)
  To: poky

Hi,

I'm trying to create a toolchain using newlib as the libc. I set
TCLIBC="newlib". First error is:
ERROR: Nothing PROVIDES 'libgcc-dbg' (but
mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta-brcm/meta-stingray2/recipes-zephyr/brcm-zephyr/brcm-zephyr.bb
DEPENDS on or otherwise requires it). Close matches:
  libgcc
  libgcc RPROVIDES libgcc-dbg
ERROR: Required build target 'brcm-zephyr' has no buildable providers.
Missing or unbuildable dependency chain was: ['brcm-zephyr', 'libgcc-dbg']

This is caused by LIBC_DEPENDENCIES in
meta/conf/distro/include/tclibc-newlib.inc:
LIBC_DEPENDENCIES = "\
    newlib-dbg \
    newlib-dev \
    libgloss \
    libgloss-dev \
    libgloss-dbg \
    libgcc-dev \
    libgcc-dbg \
    libstdc++-dev \
    libstdc++-staticdev \
TOOLCHAIN_TARGET_TASK ?= "${LIBC_DEPENDENCIES}"

TOOLCHAIN_TARGET_TASK = "newlib libgloss" seems to fix it. Why are the
dev/dbg packages required as
dependencies and why does it think the recipes for libgloss, libgcc,
etc don't provide them?

Then libtool-cross fails when autoconf checks if the compiler works
because it can't find _exit().
So I added this to my local.conf:
EXTRA_OECONF_append_class_target = " LIBS=-lgloss-linux"
EXTRA_OECONF_append_class_cross = " LIBS=-lgloss-linux"

But it still fails:
configure:3833: arm-poky-eabi-gcc  -march=armv6s-m -mcpu=cortex-m0plus
-no-pie -fno-PIE
--sysroot=/home/jon/work/yocto/stingray2/poky/build/tmp-crmu/work/cortexm0-plus-poky-eabi/libtool-cross/2.4.6-r0/recipe-sysroot
 -O2 -pipe -g -feliminate-unused-debug-types
-fmacro-prefix-map=/home/jon/work/yocto/stingray2/poky/build/tmp-crmu/work/cortexm0-plus-poky-eabi/libtool-cross/2.4.6-r0=/usr/src/debug/libtool-cross/2.4.6-r0

-fdebug-prefix-map=/home/jon/work/yocto/stingray2/poky/build/tmp-crmu/work/cortexm0-plus-poky-eabi/libtool-cross/2.4.6-r0=/usr/src/debug/libtool-cross/2.4.6-r0

-fdebug-prefix-map=/home/jon/work/yocto/stingray2/poky/build/tmp-crmu/work/cortexm0-plus-poky-eabi/libtool-cross/2.4.6-r0/recipe-sysroot=

-fdebug-prefix-map=/home/jon/work/yocto/stingray2/poky/build/tmp-crmu/work/cortexm0-plus-poky-eabi/libtool-cross/2.4.6-r0/recipe-sysroot-native=
  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed  conftest.c
-Wl,-lgloss-linux >&5
/home/jon/work/yocto/stingray2/poky/build/tmp-crmu/work/cortexm0-plus-poky-eabi/libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/bin/arm-poky-eabi/../../libexec/arm-poky-eabi/gcc/arm-poky-eabi/10.1.0/ld:
/home/jon/work/yocto/stingray2/poky/build/tmp-crmu/work/cortexm0-plus-poky-eabi/libtool-cross/2.4.6-r0/recipe-sysroot/usr/lib/libg.a(lib_a-exit.o):
in function `exit':
/usr/src/debug/newlib/3.3.0-r0/newlib-3.3.0/newlib/libc/stdlib/exit.c:64:
undefined reference to `_exit'

Has newlib ever been used to create a toolchain? I'm not sure what the
best way to work around all these
build tool dependencies is. Should we come up with a bunch of settings
and add them to tclibc.conf? I'm
wondering to what extent this has been tested.

Thanks,
Jon

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [poky] TCLIBC with newlib
  2020-08-07  0:22 TCLIBC with newlib Jonathan Richardson
@ 2020-08-07  4:58 ` Khem Raj
  2020-08-07 23:26   ` Jonathan Richardson
  0 siblings, 1 reply; 12+ messages in thread
From: Khem Raj @ 2020-08-07  4:58 UTC (permalink / raw)
  To: Jonathan Richardson; +Cc: poky

On Thu, Aug 6, 2020 at 5:22 PM Jonathan Richardson via
lists.yoctoproject.org
<jonathan.richardson=broadcom.com@lists.yoctoproject.org> wrote:
>
> Hi,
>
> I'm trying to create a toolchain using newlib as the libc. I set
> TCLIBC="newlib". First error is:
> ERROR: Nothing PROVIDES 'libgcc-dbg' (but
> mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta-brcm/meta-stingray2/recipes-zephyr/brcm-zephyr/brcm-zephyr.bb
> DEPENDS on or otherwise requires it). Close matches:
>   libgcc
>   libgcc RPROVIDES libgcc-dbg
> ERROR: Required build target 'brcm-zephyr' has no buildable providers.
> Missing or unbuildable dependency chain was: ['brcm-zephyr', 'libgcc-dbg']
>
> This is caused by LIBC_DEPENDENCIES in
> meta/conf/distro/include/tclibc-newlib.inc:
> LIBC_DEPENDENCIES = "\
>     newlib-dbg \
>     newlib-dev \
>     libgloss \
>     libgloss-dev \
>     libgloss-dbg \
>     libgcc-dev \
>     libgcc-dbg \
>     libstdc++-dev \
>     libstdc++-staticdev \

Remove all -dbg packages from above list.

> TOOLCHAIN_TARGET_TASK ?= "${LIBC_DEPENDENCIES}"
>
> TOOLCHAIN_TARGET_TASK = "newlib libgloss" seems to fix it. Why are the
> dev/dbg packages required as
> dependencies and why does it think the recipes for libgloss, libgcc,
> etc don't provide them?
>
> Then libtool-cross fails when autoconf checks if the compiler works
> because it can't find _exit().
> So I added this to my local.conf:
> EXTRA_OECONF_append_class_target = " LIBS=-lgloss-linux"
> EXTRA_OECONF_append_class_cross = " LIBS=-lgloss-linux"

It should be EXTRA_OECONF_append_class-target and
EXTRA_OECONF_append_class-cross, there is a underscore there instead
of '-'
>
> But it still fails:
> configure:3833: arm-poky-eabi-gcc  -march=armv6s-m -mcpu=cortex-m0plus
> -no-pie -fno-PIE
> --sysroot=/home/jon/work/yocto/stingray2/poky/build/tmp-crmu/work/cortexm0-plus-poky-eabi/libtool-cross/2.4.6-r0/recipe-sysroot
>  -O2 -pipe -g -feliminate-unused-debug-types
> -fmacro-prefix-map=/home/jon/work/yocto/stingray2/poky/build/tmp-crmu/work/cortexm0-plus-poky-eabi/libtool-cross/2.4.6-r0=/usr/src/debug/libtool-cross/2.4.6-r0
>
> -fdebug-prefix-map=/home/jon/work/yocto/stingray2/poky/build/tmp-crmu/work/cortexm0-plus-poky-eabi/libtool-cross/2.4.6-r0=/usr/src/debug/libtool-cross/2.4.6-r0
>
> -fdebug-prefix-map=/home/jon/work/yocto/stingray2/poky/build/tmp-crmu/work/cortexm0-plus-poky-eabi/libtool-cross/2.4.6-r0/recipe-sysroot=
>
> -fdebug-prefix-map=/home/jon/work/yocto/stingray2/poky/build/tmp-crmu/work/cortexm0-plus-poky-eabi/libtool-cross/2.4.6-r0/recipe-sysroot-native=
>   -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed  conftest.c
> -Wl,-lgloss-linux >&5
> /home/jon/work/yocto/stingray2/poky/build/tmp-crmu/work/cortexm0-plus-poky-eabi/libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/bin/arm-poky-eabi/../../libexec/arm-poky-eabi/gcc/arm-poky-eabi/10.1.0/ld:
> /home/jon/work/yocto/stingray2/poky/build/tmp-crmu/work/cortexm0-plus-poky-eabi/libtool-cross/2.4.6-r0/recipe-sysroot/usr/lib/libg.a(lib_a-exit.o):
> in function `exit':
> /usr/src/debug/newlib/3.3.0-r0/newlib-3.3.0/newlib/libc/stdlib/exit.c:64:
> undefined reference to `_exit'
>
> Has newlib ever been used to create a toolchain? I'm not sure what the
> best way to work around all these
> build tool dependencies is. Should we come up with a bunch of settings
> and add them to tclibc.conf? I'm
> wondering to what extent this has been tested.
>
> Thanks,
> Jon
> 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [poky] TCLIBC with newlib
  2020-08-07  4:58 ` [poky] " Khem Raj
@ 2020-08-07 23:26   ` Jonathan Richardson
  2020-08-11  5:52     ` alhe
  0 siblings, 1 reply; 12+ messages in thread
From: Jonathan Richardson @ 2020-08-07 23:26 UTC (permalink / raw)
  To: Khem Raj; +Cc: poky

On Thu, Aug 6, 2020 at 9:58 PM Khem Raj <raj.khem@gmail.com> wrote:
>
> On Thu, Aug 6, 2020 at 5:22 PM Jonathan Richardson via
> lists.yoctoproject.org
> <jonathan.richardson=broadcom.com@lists.yoctoproject.org> wrote:
> >
> > Hi,
> >
> > I'm trying to create a toolchain using newlib as the libc. I set
> > TCLIBC="newlib". First error is:
> > ERROR: Nothing PROVIDES 'libgcc-dbg' (but
> > mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta-brcm/meta-stingray2/recipes-zephyr/brcm-zephyr/brcm-zephyr.bb
> > DEPENDS on or otherwise requires it). Close matches:
> >   libgcc
> >   libgcc RPROVIDES libgcc-dbg
> > ERROR: Required build target 'brcm-zephyr' has no buildable providers.
> > Missing or unbuildable dependency chain was: ['brcm-zephyr', 'libgcc-dbg']
> >
> > This is caused by LIBC_DEPENDENCIES in
> > meta/conf/distro/include/tclibc-newlib.inc:
> > LIBC_DEPENDENCIES = "\
> >     newlib-dbg \
> >     newlib-dev \
> >     libgloss \
> >     libgloss-dev \
> >     libgloss-dbg \
> >     libgcc-dev \
> >     libgcc-dbg \
> >     libstdc++-dev \
> >     libstdc++-staticdev \
>
> Remove all -dbg packages from above list.
>
> > TOOLCHAIN_TARGET_TASK ?= "${LIBC_DEPENDENCIES}"
> >
> > TOOLCHAIN_TARGET_TASK = "newlib libgloss" seems to fix it. Why are the
> > dev/dbg packages required as
> > dependencies and why does it think the recipes for libgloss, libgcc,
> > etc don't provide them?
> >
> > Then libtool-cross fails when autoconf checks if the compiler works
> > because it can't find _exit().
> > So I added this to my local.conf:
> > EXTRA_OECONF_append_class_target = " LIBS=-lgloss-linux"
> > EXTRA_OECONF_append_class_cross = " LIBS=-lgloss-linux"
>
> It should be EXTRA_OECONF_append_class-target and
> EXTRA_OECONF_append_class-cross, there is a underscore there instead
> of '-'

Thanks. More than this is required though. I added this so far:

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 6776242740..262db927cd 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -75,6 +75,7 @@ BASE_DEFAULT_DEPS = "virtual/${TARGET_PREFIX}gcc
virtual/${TARGET_PREFIX}compile

 BASEDEPENDS = ""
 BASEDEPENDS_class-target = "${@base_dep_prepend(d)}"
+BASEDEPENDS_class-cross = "${@base_dep_prepend(d)}"
 BASEDEPENDS_class-nativesdk = "${@base_dep_prepend(d)}"

 DEPENDS_prepend="${BASEDEPENDS} "
diff --git a/meta/conf/distro/include/tclibc-newlib.inc
b/meta/conf/distro/include/tclibc-newlib.inc
index bf89b11288..cb55f3a82c 100644
--- a/meta/conf/distro/include/tclibc-newlib.inc
+++ b/meta/conf/distro/include/tclibc-newlib.inc
@@ -18,13 +18,10 @@ DISTRO_FEATURES_BACKFILL_CONSIDERED += "ldconfig"
 IMAGE_LINGUAS = ""

 LIBC_DEPENDENCIES = "\
-    newlib-dbg \
     newlib-dev \
     libgloss \
     libgloss-dev \
-    libgloss-dbg \
     libgcc-dev \
-    libgcc-dbg \
     libstdc++-dev \
     libstdc++-staticdev \
     "
@@ -34,6 +31,7 @@ ASSUME_PROVIDED += "virtual/crypt"
 # Its useful to be able to extend newlib, but we dont provide a
native variant of libgloss
 NEWLIB_EXTENDED ?=  "libgloss libgcc"
 BASE_DEFAULT_DEPS_append_class-target = " ${NEWLIB_EXTENDED}"
+BASE_DEFAULT_DEPS_append_class-cross = " ${NEWLIB_EXTENDED}"

 TARGET_OS = "elf"
 TARGET_OS_arm = "eabi"
@@ -45,3 +43,9 @@ TOOLCHAIN_NEED_CONFIGSITE_CACHE_remove = "zlib ncurses"
 # disable pie security flags by default
 SECURITY_CFLAGS_libc-newlib = "${SECURITY_NOPIE_CFLAGS}"
 SECURITY_LDFLAGS_libc-newlib = ""
+
+EXTRA_OECONF_append_class-target = " LIBS=-lgloss-linux"
+EXTRA_OECONF_append_class-cross = " LIBS=-lgloss-linux"
+# binutils-cross.inc sets INHIBIT_DEFAULT_DEPS = "1" which will cause
BASEDEBPENDS to not
+# include libgloss which causes the autoconf compiler check to fail.
+DEPENDS_append_pn-binutils-cross-arm = " libgloss"

Adding the dependency to binutils-cross-arm causes circular
dependencies though. I don't know
what's going on here:

Dependency loop #1 found:
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile
(dependent Tasks ['libgloss_3.3.0.bb:do_configure'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install
(dependent Tasks ['pseudo_git.bb:do_populate_sysroot',
'libgloss_3.3.0.bb:do_compile'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot
(dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',
'libgloss_3.3.0.bb:do_install'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot
(dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
'libgloss_3.3.0.bb:do_populate_sysroot',
'binutils-cross_2.34.bb:do_fetch',
'texinfo-dummy-native.bb:do_populate_sysroot',
'gnu-config_git.bb:do_populate_sysroot',
'bison_3.6.4.bb:do_populate_sysroot',
'autoconf_2.69.bb:do_populate_sysroot',
'zlib_1.2.11.bb:do_populate_sysroot'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure
(dependent Tasks
['binutils-cross_2.34.bb:do_deploy_source_date_epoch',
'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',
'binutils-cross_2.34.bb:do_patch'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile
(dependent Tasks ['binutils-cross_2.34.bb:do_configure'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install
(dependent Tasks ['binutils-cross_2.34.bb:do_compile'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot
(dependent Tasks ['binutils-cross_2.34.bb:do_install'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_prepare_recipe_sysroot
(dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
'gcc-cross_10.1.bb:do_fetch',
'libtool-native_2.4.6.bb:do_populate_sysroot',
'mpfr_4.1.0.bb:do_populate_sysroot',
'gmp_6.2.0.bb:do_populate_sysroot',
'libmpc_1.1.0.bb:do_populate_sysroot',
'texinfo-dummy-native.bb:do_populate_sysroot',
'gnu-config_git.bb:do_populate_sysroot',
'binutils-cross_2.34.bb:do_populate_sysroot',
'autoconf_2.69.bb:do_populate_sysroot',
'automake_1.16.2.bb:do_populate_sysroot',
'zlib_1.2.11.bb:do_populate_sysroot'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_configure
(dependent Tasks ['gcc-cross_10.1.bb:do_prepare_recipe_sysroot',
'gcc-cross_10.1.bb:do_deploy_source_date_epoch',
'gcc-source_10.1.bb:do_preconfigure'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_compile
(dependent Tasks ['gcc-cross_10.1.bb:do_configure'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_install
(dependent Tasks ['gcc-cross_10.1.bb:do_compile',
'gcc-cross_10.1.bb:do_gcc_stash_builddir'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_populate_sysroot
(dependent Tasks ['gcc-cross_10.1.bb:do_install'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot
(dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',
'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',
'gcc-cross_10.1.bb:do_populate_sysroot'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure
(dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',
'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',
'libgloss_3.3.0.bb:do_patch'])

Dependency loop #2 found:
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile
(dependent Tasks ['libgloss_3.3.0.bb:do_configure'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install
(dependent Tasks ['pseudo_git.bb:do_populate_sysroot',
'libgloss_3.3.0.bb:do_compile'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot
(dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',
'libgloss_3.3.0.bb:do_install'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot
(dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
'libgloss_3.3.0.bb:do_populate_sysroot',
'binutils-cross_2.34.bb:do_fetch',
'texinfo-dummy-native.bb:do_populate_sysroot',
'gnu-config_git.bb:do_populate_sysroot',
'bison_3.6.4.bb:do_populate_sysroot',
'autoconf_2.69.bb:do_populate_sysroot',
'zlib_1.2.11.bb:do_populate_sysroot'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure
(dependent Tasks
['binutils-cross_2.34.bb:do_deploy_source_date_epoch',
'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',
'binutils-cross_2.34.bb:do_patch'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile
(dependent Tasks ['binutils-cross_2.34.bb:do_configure'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install
(dependent Tasks ['binutils-cross_2.34.bb:do_compile'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot
(dependent Tasks ['binutils-cross_2.34.bb:do_install'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_prepare_recipe_sysroot
(dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
'gcc-cross_10.1.bb:do_fetch',
'libtool-native_2.4.6.bb:do_populate_sysroot',
'mpfr_4.1.0.bb:do_populate_sysroot',
'gmp_6.2.0.bb:do_populate_sysroot',
'libmpc_1.1.0.bb:do_populate_sysroot',
'texinfo-dummy-native.bb:do_populate_sysroot',
'gnu-config_git.bb:do_populate_sysroot',
'binutils-cross_2.34.bb:do_populate_sysroot',
'autoconf_2.69.bb:do_populate_sysroot',
'automake_1.16.2.bb:do_populate_sysroot',
'zlib_1.2.11.bb:do_populate_sysroot'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_configure
(dependent Tasks ['gcc-cross_10.1.bb:do_prepare_recipe_sysroot',
'gcc-cross_10.1.bb:do_deploy_source_date_epoch',
'gcc-source_10.1.bb:do_preconfigure'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_compile
(dependent Tasks ['gcc-cross_10.1.bb:do_configure'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_install
(dependent Tasks ['gcc-cross_10.1.bb:do_compile',
'gcc-cross_10.1.bb:do_gcc_stash_builddir'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_populate_sysroot
(dependent Tasks ['gcc-cross_10.1.bb:do_install'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_prepare_recipe_sysroot
(dependent Tasks ['gcc-cross_10.1.bb:do_populate_sysroot',
'pseudo_git.bb:do_populate_sysroot', 'newlib_3.3.0.bb:do_fetch'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_configure
(dependent Tasks ['newlib_3.3.0.bb:do_deploy_source_date_epoch',
'newlib_3.3.0.bb:do_prepare_recipe_sysroot',
'newlib_3.3.0.bb:do_patch'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_compile
(dependent Tasks ['newlib_3.3.0.bb:do_configure'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_install
(dependent Tasks ['newlib_3.3.0.bb:do_compile',
'pseudo_git.bb:do_populate_sysroot'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_populate_sysroot
(dependent Tasks ['newlib_3.3.0.bb:do_install',
'binutils-cross_2.34.bb:do_populate_sysroot'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot
(dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',
'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',
'gcc-cross_10.1.bb:do_populate_sysroot'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure
(dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',
'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',
'libgloss_3.3.0.bb:do_patch'])

Dependency loop #3 found:
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile
(dependent Tasks ['libgloss_3.3.0.bb:do_configure'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install
(dependent Tasks ['pseudo_git.bb:do_populate_sysroot',
'libgloss_3.3.0.bb:do_compile'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot
(dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',
'libgloss_3.3.0.bb:do_install'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot
(dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
'libgloss_3.3.0.bb:do_populate_sysroot',
'binutils-cross_2.34.bb:do_fetch',
'texinfo-dummy-native.bb:do_populate_sysroot',
'gnu-config_git.bb:do_populate_sysroot',
'bison_3.6.4.bb:do_populate_sysroot',
'autoconf_2.69.bb:do_populate_sysroot',
'zlib_1.2.11.bb:do_populate_sysroot'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure
(dependent Tasks
['binutils-cross_2.34.bb:do_deploy_source_date_epoch',
'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',
'binutils-cross_2.34.bb:do_patch'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile
(dependent Tasks ['binutils-cross_2.34.bb:do_configure'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install
(dependent Tasks ['binutils-cross_2.34.bb:do_compile'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot
(dependent Tasks ['binutils-cross_2.34.bb:do_install'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_prepare_recipe_sysroot
(dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
'gcc-cross_10.1.bb:do_fetch',
'libtool-native_2.4.6.bb:do_populate_sysroot',
'mpfr_4.1.0.bb:do_populate_sysroot',
'gmp_6.2.0.bb:do_populate_sysroot',
'libmpc_1.1.0.bb:do_populate_sysroot',
'texinfo-dummy-native.bb:do_populate_sysroot',
'gnu-config_git.bb:do_populate_sysroot',
'binutils-cross_2.34.bb:do_populate_sysroot',
'autoconf_2.69.bb:do_populate_sysroot',
'automake_1.16.2.bb:do_populate_sysroot',
'zlib_1.2.11.bb:do_populate_sysroot'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_configure
(dependent Tasks ['gcc-cross_10.1.bb:do_prepare_recipe_sysroot',
'gcc-cross_10.1.bb:do_deploy_source_date_epoch',
'gcc-source_10.1.bb:do_preconfigure'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_compile
(dependent Tasks ['gcc-cross_10.1.bb:do_configure'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_gcc_stash_builddir
(dependent Tasks ['gcc-cross_10.1.bb:do_compile'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_install
(dependent Tasks ['gcc-cross_10.1.bb:do_compile',
'gcc-cross_10.1.bb:do_gcc_stash_builddir'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_populate_sysroot
(dependent Tasks ['gcc-cross_10.1.bb:do_install'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot
(dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',
'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',
'gcc-cross_10.1.bb:do_populate_sysroot'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure
(dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',
'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',
'libgloss_3.3.0.bb:do_patch'])

Dependency loop #4 found:
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile
(dependent Tasks ['libgloss_3.3.0.bb:do_configure'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install
(dependent Tasks ['pseudo_git.bb:do_populate_sysroot',
'libgloss_3.3.0.bb:do_compile'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot
(dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',
'libgloss_3.3.0.bb:do_install'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot
(dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
'libgloss_3.3.0.bb:do_populate_sysroot',
'binutils-cross_2.34.bb:do_fetch',
'texinfo-dummy-native.bb:do_populate_sysroot',
'gnu-config_git.bb:do_populate_sysroot',
'bison_3.6.4.bb:do_populate_sysroot',
'autoconf_2.69.bb:do_populate_sysroot',
'zlib_1.2.11.bb:do_populate_sysroot'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure
(dependent Tasks
['binutils-cross_2.34.bb:do_deploy_source_date_epoch',
'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',
'binutils-cross_2.34.bb:do_patch'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile
(dependent Tasks ['binutils-cross_2.34.bb:do_configure'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install
(dependent Tasks ['binutils-cross_2.34.bb:do_compile'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot
(dependent Tasks ['binutils-cross_2.34.bb:do_install'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_prepare_recipe_sysroot
(dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
'gcc-cross_10.1.bb:do_fetch',
'libtool-native_2.4.6.bb:do_populate_sysroot',
'mpfr_4.1.0.bb:do_populate_sysroot',
'gmp_6.2.0.bb:do_populate_sysroot',
'libmpc_1.1.0.bb:do_populate_sysroot',
'texinfo-dummy-native.bb:do_populate_sysroot',
'gnu-config_git.bb:do_populate_sysroot',
'binutils-cross_2.34.bb:do_populate_sysroot',
'autoconf_2.69.bb:do_populate_sysroot',
'automake_1.16.2.bb:do_populate_sysroot',
'zlib_1.2.11.bb:do_populate_sysroot'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_configure
(dependent Tasks ['gcc-cross_10.1.bb:do_prepare_recipe_sysroot',
'gcc-cross_10.1.bb:do_deploy_source_date_epoch',
'gcc-source_10.1.bb:do_preconfigure'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_compile
(dependent Tasks ['gcc-cross_10.1.bb:do_configure'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_gcc_stash_builddir
(dependent Tasks ['gcc-cross_10.1.bb:do_compile'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_install
(dependent Tasks ['gcc-cross_10.1.bb:do_compile',
'gcc-cross_10.1.bb:do_gcc_stash_builddir'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_populate_sysroot
(dependent Tasks ['gcc-cross_10.1.bb:do_install'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_prepare_recipe_sysroot
(dependent Tasks ['gcc-cross_10.1.bb:do_populate_sysroot',
'pseudo_git.bb:do_populate_sysroot', 'newlib_3.3.0.bb:do_fetch'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_configure
(dependent Tasks ['newlib_3.3.0.bb:do_deploy_source_date_epoch',
'newlib_3.3.0.bb:do_prepare_recipe_sysroot',
'newlib_3.3.0.bb:do_patch'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_compile
(dependent Tasks ['newlib_3.3.0.bb:do_configure'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_install
(dependent Tasks ['newlib_3.3.0.bb:do_compile',
'pseudo_git.bb:do_populate_sysroot'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_populate_sysroot
(dependent Tasks ['newlib_3.3.0.bb:do_install',
'binutils-cross_2.34.bb:do_populate_sysroot'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot
(dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',
'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',
'gcc-cross_10.1.bb:do_populate_sysroot'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure
(dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',
'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',
'libgloss_3.3.0.bb:do_patch'])

Dependency loop #5 found:
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile
(dependent Tasks ['libgloss_3.3.0.bb:do_configure'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install
(dependent Tasks ['pseudo_git.bb:do_populate_sysroot',
'libgloss_3.3.0.bb:do_compile'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot
(dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',
'libgloss_3.3.0.bb:do_install'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot
(dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
'libgloss_3.3.0.bb:do_populate_sysroot',
'binutils-cross_2.34.bb:do_fetch',
'texinfo-dummy-native.bb:do_populate_sysroot',
'gnu-config_git.bb:do_populate_sysroot',
'bison_3.6.4.bb:do_populate_sysroot',
'autoconf_2.69.bb:do_populate_sysroot',
'zlib_1.2.11.bb:do_populate_sysroot'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure
(dependent Tasks
['binutils-cross_2.34.bb:do_deploy_source_date_epoch',
'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',
'binutils-cross_2.34.bb:do_patch'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile
(dependent Tasks ['binutils-cross_2.34.bb:do_configure'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install
(dependent Tasks ['binutils-cross_2.34.bb:do_compile'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot
(dependent Tasks ['binutils-cross_2.34.bb:do_install'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_populate_sysroot
(dependent Tasks ['newlib_3.3.0.bb:do_install',
'binutils-cross_2.34.bb:do_populate_sysroot'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot
(dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',
'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',
'gcc-cross_10.1.bb:do_populate_sysroot'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure
(dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',
'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',
'libgloss_3.3.0.bb:do_patch'])

Dependency loop #6 found:
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot
(dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',
'libgloss_3.3.0.bb:do_install'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot
(dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
'libgloss_3.3.0.bb:do_populate_sysroot',
'binutils-cross_2.34.bb:do_fetch',
'texinfo-dummy-native.bb:do_populate_sysroot',
'gnu-config_git.bb:do_populate_sysroot',
'bison_3.6.4.bb:do_populate_sysroot',
'autoconf_2.69.bb:do_populate_sysroot',
'zlib_1.2.11.bb:do_populate_sysroot'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure
(dependent Tasks
['binutils-cross_2.34.bb:do_deploy_source_date_epoch',
'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',
'binutils-cross_2.34.bb:do_patch'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile
(dependent Tasks ['binutils-cross_2.34.bb:do_configure'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install
(dependent Tasks ['binutils-cross_2.34.bb:do_compile'])
  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot
(dependent Tasks ['binutils-cross_2.34.bb:do_install'])

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [poky] TCLIBC with newlib
  2020-08-07 23:26   ` Jonathan Richardson
@ 2020-08-11  5:52     ` alhe
  2020-08-12 19:03       ` Jonathan Richardson
  0 siblings, 1 reply; 12+ messages in thread
From: alhe @ 2020-08-11  5:52 UTC (permalink / raw)
  To: jonathan.richardson, Khem Raj; +Cc: poky

[-- Attachment #1: Type: text/plain, Size: 29210 bytes --]

Hello,

I'm pretty sure, you are causing the dependency loop with the depends + 
cross class changes.

I think there is some wiring in libgcc that is not matching properly 
with something defined in your BSP layer, likely in your machine.conf, 
although like Khem said, removing the dbg packages from the dependencies 
would workaround this issue.

Yes, a newlib toolchain can be created, this works fine with the 
supported BSPs (and others from some vendors) AFAIC I dont think changes 
are required on tclibc-newlib at this point since it contains the 
basics, anything else would be added per architecture on their BSP layer.

Its hard to tell without knowing anything about the architecture you're 
using, but I think the error you are hitting its happening because your 
runtime isn't being built properly or is incompatible, it looks like at 
the very least you should have stubs for _exit() patched on 
libgloss/newlib for your architecture (or submit those to newlib 
upstream), if you're using something ARM based you may be able to build 
using semhosting with the rdimon specs or even nosys but it probably 
wouldn't work properly at runtime, if that allows you to build you can 
proceed to add you architecture specific functions to libgloss.


Cheers,

Alejandro

On 8/7/20 4:26 PM, Jonathan Richardson via lists.yoctoproject.org wrote:
> On Thu, Aug 6, 2020 at 9:58 PM Khem Raj <raj.khem@gmail.com> wrote:
>> On Thu, Aug 6, 2020 at 5:22 PM Jonathan Richardson via
>> lists.yoctoproject.org
>> <jonathan.richardson=broadcom.com@lists.yoctoproject.org> wrote:
>>> Hi,
>>>
>>> I'm trying to create a toolchain using newlib as the libc. I set
>>> TCLIBC="newlib". First error is:
>>> ERROR: Nothing PROVIDES 'libgcc-dbg' (but
>>> mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta-brcm/meta-stingray2/recipes-zephyr/brcm-zephyr/brcm-zephyr.bb
>>> DEPENDS on or otherwise requires it). Close matches:
>>>    libgcc
>>>    libgcc RPROVIDES libgcc-dbg
>>> ERROR: Required build target 'brcm-zephyr' has no buildable providers.
>>> Missing or unbuildable dependency chain was: ['brcm-zephyr', 'libgcc-dbg']
>>>
>>> This is caused by LIBC_DEPENDENCIES in
>>> meta/conf/distro/include/tclibc-newlib.inc:
>>> LIBC_DEPENDENCIES = "\
>>>      newlib-dbg \
>>>      newlib-dev \
>>>      libgloss \
>>>      libgloss-dev \
>>>      libgloss-dbg \
>>>      libgcc-dev \
>>>      libgcc-dbg \
>>>      libstdc++-dev \
>>>      libstdc++-staticdev \
>> Remove all -dbg packages from above list.
>>
>>> TOOLCHAIN_TARGET_TASK ?= "${LIBC_DEPENDENCIES}"
>>>
>>> TOOLCHAIN_TARGET_TASK = "newlib libgloss" seems to fix it. Why are the
>>> dev/dbg packages required as
>>> dependencies and why does it think the recipes for libgloss, libgcc,
>>> etc don't provide them?
>>>
>>> Then libtool-cross fails when autoconf checks if the compiler works
>>> because it can't find _exit().
>>> So I added this to my local.conf:
>>> EXTRA_OECONF_append_class_target = " LIBS=-lgloss-linux"
>>> EXTRA_OECONF_append_class_cross = " LIBS=-lgloss-linux"
>> It should be EXTRA_OECONF_append_class-target and
>> EXTRA_OECONF_append_class-cross, there is a underscore there instead
>> of '-'
> Thanks. More than this is required though. I added this so far:
>
> diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
> index 6776242740..262db927cd 100644
> --- a/meta/classes/base.bbclass
> +++ b/meta/classes/base.bbclass
> @@ -75,6 +75,7 @@ BASE_DEFAULT_DEPS = "virtual/${TARGET_PREFIX}gcc
> virtual/${TARGET_PREFIX}compile
>
>   BASEDEPENDS = ""
>   BASEDEPENDS_class-target = "${@base_dep_prepend(d)}"
> +BASEDEPENDS_class-cross = "${@base_dep_prepend(d)}"
>   BASEDEPENDS_class-nativesdk = "${@base_dep_prepend(d)}"
>
>   DEPENDS_prepend="${BASEDEPENDS} "
> diff --git a/meta/conf/distro/include/tclibc-newlib.inc
> b/meta/conf/distro/include/tclibc-newlib.inc
> index bf89b11288..cb55f3a82c 100644
> --- a/meta/conf/distro/include/tclibc-newlib.inc
> +++ b/meta/conf/distro/include/tclibc-newlib.inc
> @@ -18,13 +18,10 @@ DISTRO_FEATURES_BACKFILL_CONSIDERED += "ldconfig"
>   IMAGE_LINGUAS = ""
>
>   LIBC_DEPENDENCIES = "\
> -    newlib-dbg \
>       newlib-dev \
>       libgloss \
>       libgloss-dev \
> -    libgloss-dbg \
>       libgcc-dev \
> -    libgcc-dbg \
>       libstdc++-dev \
>       libstdc++-staticdev \
>       "
> @@ -34,6 +31,7 @@ ASSUME_PROVIDED += "virtual/crypt"
>   # Its useful to be able to extend newlib, but we dont provide a
> native variant of libgloss
>   NEWLIB_EXTENDED ?=  "libgloss libgcc"
>   BASE_DEFAULT_DEPS_append_class-target = " ${NEWLIB_EXTENDED}"
> +BASE_DEFAULT_DEPS_append_class-cross = " ${NEWLIB_EXTENDED}"
>
>   TARGET_OS = "elf"
>   TARGET_OS_arm = "eabi"
> @@ -45,3 +43,9 @@ TOOLCHAIN_NEED_CONFIGSITE_CACHE_remove = "zlib ncurses"
>   # disable pie security flags by default
>   SECURITY_CFLAGS_libc-newlib = "${SECURITY_NOPIE_CFLAGS}"
>   SECURITY_LDFLAGS_libc-newlib = ""
> +
> +EXTRA_OECONF_append_class-target = " LIBS=-lgloss-linux"
> +EXTRA_OECONF_append_class-cross = " LIBS=-lgloss-linux"
> +# binutils-cross.inc sets INHIBIT_DEFAULT_DEPS = "1" which will cause
> BASEDEBPENDS to not
> +# include libgloss which causes the autoconf compiler check to fail.
> +DEPENDS_append_pn-binutils-cross-arm = " libgloss"
>
> Adding the dependency to binutils-cross-arm causes circular
> dependencies though. I don't know
> what's going on here:
>
> Dependency loop #1 found:
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile
> (dependent Tasks ['libgloss_3.3.0.bb:do_configure'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install
> (dependent Tasks ['pseudo_git.bb:do_populate_sysroot',
> 'libgloss_3.3.0.bb:do_compile'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot
> (dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',
> 'libgloss_3.3.0.bb:do_install'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
> 'libgloss_3.3.0.bb:do_populate_sysroot',
> 'binutils-cross_2.34.bb:do_fetch',
> 'texinfo-dummy-native.bb:do_populate_sysroot',
> 'gnu-config_git.bb:do_populate_sysroot',
> 'bison_3.6.4.bb:do_populate_sysroot',
> 'autoconf_2.69.bb:do_populate_sysroot',
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure
> (dependent Tasks
> ['binutils-cross_2.34.bb:do_deploy_source_date_epoch',
> 'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',
> 'binutils-cross_2.34.bb:do_patch'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile
> (dependent Tasks ['binutils-cross_2.34.bb:do_configure'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install
> (dependent Tasks ['binutils-cross_2.34.bb:do_compile'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot
> (dependent Tasks ['binutils-cross_2.34.bb:do_install'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_prepare_recipe_sysroot
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
> 'gcc-cross_10.1.bb:do_fetch',
> 'libtool-native_2.4.6.bb:do_populate_sysroot',
> 'mpfr_4.1.0.bb:do_populate_sysroot',
> 'gmp_6.2.0.bb:do_populate_sysroot',
> 'libmpc_1.1.0.bb:do_populate_sysroot',
> 'texinfo-dummy-native.bb:do_populate_sysroot',
> 'gnu-config_git.bb:do_populate_sysroot',
> 'binutils-cross_2.34.bb:do_populate_sysroot',
> 'autoconf_2.69.bb:do_populate_sysroot',
> 'automake_1.16.2.bb:do_populate_sysroot',
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_configure
> (dependent Tasks ['gcc-cross_10.1.bb:do_prepare_recipe_sysroot',
> 'gcc-cross_10.1.bb:do_deploy_source_date_epoch',
> 'gcc-source_10.1.bb:do_preconfigure'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_compile
> (dependent Tasks ['gcc-cross_10.1.bb:do_configure'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_install
> (dependent Tasks ['gcc-cross_10.1.bb:do_compile',
> 'gcc-cross_10.1.bb:do_gcc_stash_builddir'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_populate_sysroot
> (dependent Tasks ['gcc-cross_10.1.bb:do_install'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot
> (dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',
> 'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',
> 'gcc-cross_10.1.bb:do_populate_sysroot'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure
> (dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',
> 'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',
> 'libgloss_3.3.0.bb:do_patch'])
>
> Dependency loop #2 found:
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile
> (dependent Tasks ['libgloss_3.3.0.bb:do_configure'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install
> (dependent Tasks ['pseudo_git.bb:do_populate_sysroot',
> 'libgloss_3.3.0.bb:do_compile'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot
> (dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',
> 'libgloss_3.3.0.bb:do_install'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
> 'libgloss_3.3.0.bb:do_populate_sysroot',
> 'binutils-cross_2.34.bb:do_fetch',
> 'texinfo-dummy-native.bb:do_populate_sysroot',
> 'gnu-config_git.bb:do_populate_sysroot',
> 'bison_3.6.4.bb:do_populate_sysroot',
> 'autoconf_2.69.bb:do_populate_sysroot',
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure
> (dependent Tasks
> ['binutils-cross_2.34.bb:do_deploy_source_date_epoch',
> 'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',
> 'binutils-cross_2.34.bb:do_patch'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile
> (dependent Tasks ['binutils-cross_2.34.bb:do_configure'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install
> (dependent Tasks ['binutils-cross_2.34.bb:do_compile'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot
> (dependent Tasks ['binutils-cross_2.34.bb:do_install'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_prepare_recipe_sysroot
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
> 'gcc-cross_10.1.bb:do_fetch',
> 'libtool-native_2.4.6.bb:do_populate_sysroot',
> 'mpfr_4.1.0.bb:do_populate_sysroot',
> 'gmp_6.2.0.bb:do_populate_sysroot',
> 'libmpc_1.1.0.bb:do_populate_sysroot',
> 'texinfo-dummy-native.bb:do_populate_sysroot',
> 'gnu-config_git.bb:do_populate_sysroot',
> 'binutils-cross_2.34.bb:do_populate_sysroot',
> 'autoconf_2.69.bb:do_populate_sysroot',
> 'automake_1.16.2.bb:do_populate_sysroot',
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_configure
> (dependent Tasks ['gcc-cross_10.1.bb:do_prepare_recipe_sysroot',
> 'gcc-cross_10.1.bb:do_deploy_source_date_epoch',
> 'gcc-source_10.1.bb:do_preconfigure'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_compile
> (dependent Tasks ['gcc-cross_10.1.bb:do_configure'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_install
> (dependent Tasks ['gcc-cross_10.1.bb:do_compile',
> 'gcc-cross_10.1.bb:do_gcc_stash_builddir'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_populate_sysroot
> (dependent Tasks ['gcc-cross_10.1.bb:do_install'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_prepare_recipe_sysroot
> (dependent Tasks ['gcc-cross_10.1.bb:do_populate_sysroot',
> 'pseudo_git.bb:do_populate_sysroot', 'newlib_3.3.0.bb:do_fetch'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_configure
> (dependent Tasks ['newlib_3.3.0.bb:do_deploy_source_date_epoch',
> 'newlib_3.3.0.bb:do_prepare_recipe_sysroot',
> 'newlib_3.3.0.bb:do_patch'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_compile
> (dependent Tasks ['newlib_3.3.0.bb:do_configure'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_install
> (dependent Tasks ['newlib_3.3.0.bb:do_compile',
> 'pseudo_git.bb:do_populate_sysroot'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_populate_sysroot
> (dependent Tasks ['newlib_3.3.0.bb:do_install',
> 'binutils-cross_2.34.bb:do_populate_sysroot'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot
> (dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',
> 'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',
> 'gcc-cross_10.1.bb:do_populate_sysroot'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure
> (dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',
> 'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',
> 'libgloss_3.3.0.bb:do_patch'])
>
> Dependency loop #3 found:
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile
> (dependent Tasks ['libgloss_3.3.0.bb:do_configure'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install
> (dependent Tasks ['pseudo_git.bb:do_populate_sysroot',
> 'libgloss_3.3.0.bb:do_compile'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot
> (dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',
> 'libgloss_3.3.0.bb:do_install'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
> 'libgloss_3.3.0.bb:do_populate_sysroot',
> 'binutils-cross_2.34.bb:do_fetch',
> 'texinfo-dummy-native.bb:do_populate_sysroot',
> 'gnu-config_git.bb:do_populate_sysroot',
> 'bison_3.6.4.bb:do_populate_sysroot',
> 'autoconf_2.69.bb:do_populate_sysroot',
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure
> (dependent Tasks
> ['binutils-cross_2.34.bb:do_deploy_source_date_epoch',
> 'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',
> 'binutils-cross_2.34.bb:do_patch'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile
> (dependent Tasks ['binutils-cross_2.34.bb:do_configure'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install
> (dependent Tasks ['binutils-cross_2.34.bb:do_compile'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot
> (dependent Tasks ['binutils-cross_2.34.bb:do_install'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_prepare_recipe_sysroot
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
> 'gcc-cross_10.1.bb:do_fetch',
> 'libtool-native_2.4.6.bb:do_populate_sysroot',
> 'mpfr_4.1.0.bb:do_populate_sysroot',
> 'gmp_6.2.0.bb:do_populate_sysroot',
> 'libmpc_1.1.0.bb:do_populate_sysroot',
> 'texinfo-dummy-native.bb:do_populate_sysroot',
> 'gnu-config_git.bb:do_populate_sysroot',
> 'binutils-cross_2.34.bb:do_populate_sysroot',
> 'autoconf_2.69.bb:do_populate_sysroot',
> 'automake_1.16.2.bb:do_populate_sysroot',
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_configure
> (dependent Tasks ['gcc-cross_10.1.bb:do_prepare_recipe_sysroot',
> 'gcc-cross_10.1.bb:do_deploy_source_date_epoch',
> 'gcc-source_10.1.bb:do_preconfigure'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_compile
> (dependent Tasks ['gcc-cross_10.1.bb:do_configure'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_gcc_stash_builddir
> (dependent Tasks ['gcc-cross_10.1.bb:do_compile'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_install
> (dependent Tasks ['gcc-cross_10.1.bb:do_compile',
> 'gcc-cross_10.1.bb:do_gcc_stash_builddir'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_populate_sysroot
> (dependent Tasks ['gcc-cross_10.1.bb:do_install'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot
> (dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',
> 'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',
> 'gcc-cross_10.1.bb:do_populate_sysroot'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure
> (dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',
> 'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',
> 'libgloss_3.3.0.bb:do_patch'])
>
> Dependency loop #4 found:
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile
> (dependent Tasks ['libgloss_3.3.0.bb:do_configure'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install
> (dependent Tasks ['pseudo_git.bb:do_populate_sysroot',
> 'libgloss_3.3.0.bb:do_compile'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot
> (dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',
> 'libgloss_3.3.0.bb:do_install'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
> 'libgloss_3.3.0.bb:do_populate_sysroot',
> 'binutils-cross_2.34.bb:do_fetch',
> 'texinfo-dummy-native.bb:do_populate_sysroot',
> 'gnu-config_git.bb:do_populate_sysroot',
> 'bison_3.6.4.bb:do_populate_sysroot',
> 'autoconf_2.69.bb:do_populate_sysroot',
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure
> (dependent Tasks
> ['binutils-cross_2.34.bb:do_deploy_source_date_epoch',
> 'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',
> 'binutils-cross_2.34.bb:do_patch'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile
> (dependent Tasks ['binutils-cross_2.34.bb:do_configure'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install
> (dependent Tasks ['binutils-cross_2.34.bb:do_compile'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot
> (dependent Tasks ['binutils-cross_2.34.bb:do_install'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_prepare_recipe_sysroot
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
> 'gcc-cross_10.1.bb:do_fetch',
> 'libtool-native_2.4.6.bb:do_populate_sysroot',
> 'mpfr_4.1.0.bb:do_populate_sysroot',
> 'gmp_6.2.0.bb:do_populate_sysroot',
> 'libmpc_1.1.0.bb:do_populate_sysroot',
> 'texinfo-dummy-native.bb:do_populate_sysroot',
> 'gnu-config_git.bb:do_populate_sysroot',
> 'binutils-cross_2.34.bb:do_populate_sysroot',
> 'autoconf_2.69.bb:do_populate_sysroot',
> 'automake_1.16.2.bb:do_populate_sysroot',
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_configure
> (dependent Tasks ['gcc-cross_10.1.bb:do_prepare_recipe_sysroot',
> 'gcc-cross_10.1.bb:do_deploy_source_date_epoch',
> 'gcc-source_10.1.bb:do_preconfigure'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_compile
> (dependent Tasks ['gcc-cross_10.1.bb:do_configure'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_gcc_stash_builddir
> (dependent Tasks ['gcc-cross_10.1.bb:do_compile'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_install
> (dependent Tasks ['gcc-cross_10.1.bb:do_compile',
> 'gcc-cross_10.1.bb:do_gcc_stash_builddir'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_populate_sysroot
> (dependent Tasks ['gcc-cross_10.1.bb:do_install'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_prepare_recipe_sysroot
> (dependent Tasks ['gcc-cross_10.1.bb:do_populate_sysroot',
> 'pseudo_git.bb:do_populate_sysroot', 'newlib_3.3.0.bb:do_fetch'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_configure
> (dependent Tasks ['newlib_3.3.0.bb:do_deploy_source_date_epoch',
> 'newlib_3.3.0.bb:do_prepare_recipe_sysroot',
> 'newlib_3.3.0.bb:do_patch'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_compile
> (dependent Tasks ['newlib_3.3.0.bb:do_configure'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_install
> (dependent Tasks ['newlib_3.3.0.bb:do_compile',
> 'pseudo_git.bb:do_populate_sysroot'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_populate_sysroot
> (dependent Tasks ['newlib_3.3.0.bb:do_install',
> 'binutils-cross_2.34.bb:do_populate_sysroot'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot
> (dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',
> 'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',
> 'gcc-cross_10.1.bb:do_populate_sysroot'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure
> (dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',
> 'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',
> 'libgloss_3.3.0.bb:do_patch'])
>
> Dependency loop #5 found:
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile
> (dependent Tasks ['libgloss_3.3.0.bb:do_configure'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install
> (dependent Tasks ['pseudo_git.bb:do_populate_sysroot',
> 'libgloss_3.3.0.bb:do_compile'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot
> (dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',
> 'libgloss_3.3.0.bb:do_install'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
> 'libgloss_3.3.0.bb:do_populate_sysroot',
> 'binutils-cross_2.34.bb:do_fetch',
> 'texinfo-dummy-native.bb:do_populate_sysroot',
> 'gnu-config_git.bb:do_populate_sysroot',
> 'bison_3.6.4.bb:do_populate_sysroot',
> 'autoconf_2.69.bb:do_populate_sysroot',
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure
> (dependent Tasks
> ['binutils-cross_2.34.bb:do_deploy_source_date_epoch',
> 'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',
> 'binutils-cross_2.34.bb:do_patch'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile
> (dependent Tasks ['binutils-cross_2.34.bb:do_configure'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install
> (dependent Tasks ['binutils-cross_2.34.bb:do_compile'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot
> (dependent Tasks ['binutils-cross_2.34.bb:do_install'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_populate_sysroot
> (dependent Tasks ['newlib_3.3.0.bb:do_install',
> 'binutils-cross_2.34.bb:do_populate_sysroot'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot
> (dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',
> 'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',
> 'gcc-cross_10.1.bb:do_populate_sysroot'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure
> (dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',
> 'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',
> 'libgloss_3.3.0.bb:do_patch'])
>
> Dependency loop #6 found:
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot
> (dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',
> 'libgloss_3.3.0.bb:do_install'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
> 'libgloss_3.3.0.bb:do_populate_sysroot',
> 'binutils-cross_2.34.bb:do_fetch',
> 'texinfo-dummy-native.bb:do_populate_sysroot',
> 'gnu-config_git.bb:do_populate_sysroot',
> 'bison_3.6.4.bb:do_populate_sysroot',
> 'autoconf_2.69.bb:do_populate_sysroot',
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure
> (dependent Tasks
> ['binutils-cross_2.34.bb:do_deploy_source_date_epoch',
> 'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',
> 'binutils-cross_2.34.bb:do_patch'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile
> (dependent Tasks ['binutils-cross_2.34.bb:do_configure'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install
> (dependent Tasks ['binutils-cross_2.34.bb:do_compile'])
>    Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot
> (dependent Tasks ['binutils-cross_2.34.bb:do_install'])
>
> 

[-- Attachment #2: Type: text/html, Size: 29460 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [poky] TCLIBC with newlib
  2020-08-11  5:52     ` alhe
@ 2020-08-12 19:03       ` Jonathan Richardson
  2020-08-12 20:47         ` Khem Raj
                           ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Jonathan Richardson @ 2020-08-12 19:03 UTC (permalink / raw)
  To: Alejandro Hernandez Samaniego, Khem Raj; +Cc: poky


[-- Attachment #1.1: Type: text/plain, Size: 30648 bytes --]

Hi Alejandro,



Thanks for your feedback. I narrowed it down. It builds when building
simple code that uses a makefile to compile some MCU code running on a
cortex-m0. Now we’re compiling zephyr OS for a cortex M0-plus. The
toolchain is a bit more complicated because of all the x86 native build
dependencies.



Ignoring that for now I created a simple helloworld recipe with an empty
main compiled with autotools (attached). The problems arise when autotools
pulls in libtool-cross. If you switch to a makefile instead of using
autotools then libtool-cross doesn’t get pulled in and it builds fine. I
think the toolchain should be buildable when using autotools class and
newlib.



Here is how to reproduce. You can use any machine tuning.



build/conf/local.conf:

MACHINE = "cortexm0"

TCLIBC = "newlib"



conf/machine/cortexm0.conf:

DEFAULTTUNE = "armv6t-novfp"

require conf/machine/include/arm/arch-armv8a.inc



Apply attached patch then bitbake helloworld.



Note that with this simple example I don’t have the issue having to
redefine LIBC_DEPENDENCIES. The zephyr recipe pulled in various native
python modules that likely caused some issue there. Also there are no
circular dependencies with this. Thanks.



*From:* Alejandro Hernandez Samaniego [mailto:alhe@linux.microsoft.com]
*Sent:* Monday, August 10, 2020 10:53 PM
*To:* jonathan.richardson@broadcom.com; Khem Raj
*Cc:* poky@lists.yoctoproject.org
*Subject:* Re: [poky] TCLIBC with newlib



Hello,

I'm pretty sure, you are causing the dependency loop with the depends +
cross class changes.

I think there is some wiring in libgcc that is not matching properly with
something defined in your BSP layer, likely in your machine.conf, although
like Khem said, removing the dbg packages from the dependencies would
workaround this issue.

Yes, a newlib toolchain can be created, this works fine with the supported
BSPs (and others from some vendors) AFAIC I dont think changes are required
on tclibc-newlib at this point since it contains the basics, anything else
would be added per architecture on their BSP layer.

Its hard to tell without knowing anything about the architecture you're
using, but I think the error you are hitting its happening because your
runtime isn't being built properly or is incompatible, it looks like at the
very least you should have stubs for _exit() patched on libgloss/newlib for
your architecture (or submit those to newlib upstream), if you're using
something ARM based you may be able to build using semhosting with the
rdimon specs or even nosys but it probably wouldn't work properly at
runtime, if that allows you to build you can proceed to add you
architecture specific functions to libgloss.



Cheers,

Alejandro

On 8/7/20 4:26 PM, Jonathan Richardson via lists.yoctoproject.org wrote:

On Thu, Aug 6, 2020 at 9:58 PM Khem Raj <raj.khem@gmail.com>
<raj.khem@gmail.com> wrote:



On Thu, Aug 6, 2020 at 5:22 PM Jonathan Richardson via

lists.yoctoproject.org

<jonathan.richardson=broadcom.com@lists.yoctoproject.org>
<jonathan.richardson=broadcom.com@lists.yoctoproject.org> wrote:



Hi,



I'm trying to create a toolchain using newlib as the libc. I set

TCLIBC="newlib". First error is:

ERROR: Nothing PROVIDES 'libgcc-dbg' (but

mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta-brcm/meta-stingray2/recipes-zephyr/brcm-zephyr/brcm-zephyr.bb

DEPENDS on or otherwise requires it). Close matches:

  libgcc

  libgcc RPROVIDES libgcc-dbg

ERROR: Required build target 'brcm-zephyr' has no buildable providers.

Missing or unbuildable dependency chain was: ['brcm-zephyr', 'libgcc-dbg']



This is caused by LIBC_DEPENDENCIES in

meta/conf/distro/include/tclibc-newlib.inc:

LIBC_DEPENDENCIES = "\

    newlib-dbg \

    newlib-dev \

    libgloss \

    libgloss-dev \

    libgloss-dbg \

    libgcc-dev \

    libgcc-dbg \

    libstdc++-dev \

    libstdc++-staticdev \



Remove all -dbg packages from above list.



TOOLCHAIN_TARGET_TASK ?= "${LIBC_DEPENDENCIES}"



TOOLCHAIN_TARGET_TASK = "newlib libgloss" seems to fix it. Why are the

dev/dbg packages required as

dependencies and why does it think the recipes for libgloss, libgcc,

etc don't provide them?



Then libtool-cross fails when autoconf checks if the compiler works

because it can't find _exit().

So I added this to my local.conf:

EXTRA_OECONF_append_class_target = " LIBS=-lgloss-linux"

EXTRA_OECONF_append_class_cross = " LIBS=-lgloss-linux"



It should be EXTRA_OECONF_append_class-target and

EXTRA_OECONF_append_class-cross, there is a underscore there instead

of '-'



Thanks. More than this is required though. I added this so far:



diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass

index 6776242740..262db927cd 100644

--- a/meta/classes/base.bbclass

+++ b/meta/classes/base.bbclass

@@ -75,6 +75,7 @@ BASE_DEFAULT_DEPS = "virtual/${TARGET_PREFIX}gcc

virtual/${TARGET_PREFIX}compile



 BASEDEPENDS = ""

 BASEDEPENDS_class-target = "${@base_dep_prepend(d)}"

+BASEDEPENDS_class-cross = "${@base_dep_prepend(d)}"

 BASEDEPENDS_class-nativesdk = "${@base_dep_prepend(d)}"



 DEPENDS_prepend="${BASEDEPENDS} "

diff --git a/meta/conf/distro/include/tclibc-newlib.inc

b/meta/conf/distro/include/tclibc-newlib.inc

index bf89b11288..cb55f3a82c 100644

--- a/meta/conf/distro/include/tclibc-newlib.inc

+++ b/meta/conf/distro/include/tclibc-newlib.inc

@@ -18,13 +18,10 @@ DISTRO_FEATURES_BACKFILL_CONSIDERED += "ldconfig"

 IMAGE_LINGUAS = ""



 LIBC_DEPENDENCIES = "\

-    newlib-dbg \

     newlib-dev \

     libgloss \

     libgloss-dev \

-    libgloss-dbg \

     libgcc-dev \

-    libgcc-dbg \

     libstdc++-dev \

     libstdc++-staticdev \

     "

@@ -34,6 +31,7 @@ ASSUME_PROVIDED += "virtual/crypt"

 # Its useful to be able to extend newlib, but we dont provide a

native variant of libgloss

 NEWLIB_EXTENDED ?=  "libgloss libgcc"

 BASE_DEFAULT_DEPS_append_class-target = " ${NEWLIB_EXTENDED}"

+BASE_DEFAULT_DEPS_append_class-cross = " ${NEWLIB_EXTENDED}"



 TARGET_OS = "elf"

 TARGET_OS_arm = "eabi"

@@ -45,3 +43,9 @@ TOOLCHAIN_NEED_CONFIGSITE_CACHE_remove = "zlib ncurses"

 # disable pie security flags by default

 SECURITY_CFLAGS_libc-newlib = "${SECURITY_NOPIE_CFLAGS}"

 SECURITY_LDFLAGS_libc-newlib = ""

+

+EXTRA_OECONF_append_class-target = " LIBS=-lgloss-linux"

+EXTRA_OECONF_append_class-cross = " LIBS=-lgloss-linux"

+# binutils-cross.inc sets INHIBIT_DEFAULT_DEPS = "1" which will cause

BASEDEBPENDS to not

+# include libgloss which causes the autoconf compiler check to fail.

+DEPENDS_append_pn-binutils-cross-arm = " libgloss"



Adding the dependency to binutils-cross-arm causes circular

dependencies though. I don't know

what's going on here:



Dependency loop #1 found:

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile

(dependent Tasks ['libgloss_3.3.0.bb:do_configure'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install

(dependent Tasks ['pseudo_git.bb:do_populate_sysroot',

'libgloss_3.3.0.bb:do_compile'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot

(dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',

'libgloss_3.3.0.bb:do_install'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot

(dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',

'libgloss_3.3.0.bb:do_populate_sysroot',

'binutils-cross_2.34.bb:do_fetch',

'texinfo-dummy-native.bb:do_populate_sysroot',

'gnu-config_git.bb:do_populate_sysroot',

'bison_3.6.4.bb:do_populate_sysroot',

'autoconf_2.69.bb:do_populate_sysroot',

'zlib_1.2.11.bb:do_populate_sysroot'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure

(dependent Tasks

['binutils-cross_2.34.bb:do_deploy_source_date_epoch',

'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',

'binutils-cross_2.34.bb:do_patch'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile

(dependent Tasks ['binutils-cross_2.34.bb:do_configure'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install

(dependent Tasks ['binutils-cross_2.34.bb:do_compile'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot

(dependent Tasks ['binutils-cross_2.34.bb:do_install'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_prepare_recipe_sysroot

(dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',

'gcc-cross_10.1.bb:do_fetch',

'libtool-native_2.4.6.bb:do_populate_sysroot',

'mpfr_4.1.0.bb:do_populate_sysroot',

'gmp_6.2.0.bb:do_populate_sysroot',

'libmpc_1.1.0.bb:do_populate_sysroot',

'texinfo-dummy-native.bb:do_populate_sysroot',

'gnu-config_git.bb:do_populate_sysroot',

'binutils-cross_2.34.bb:do_populate_sysroot',

'autoconf_2.69.bb:do_populate_sysroot',

'automake_1.16.2.bb:do_populate_sysroot',

'zlib_1.2.11.bb:do_populate_sysroot'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_configure

(dependent Tasks ['gcc-cross_10.1.bb:do_prepare_recipe_sysroot',

'gcc-cross_10.1.bb:do_deploy_source_date_epoch',

'gcc-source_10.1.bb:do_preconfigure'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_compile

(dependent Tasks ['gcc-cross_10.1.bb:do_configure'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_install

(dependent Tasks ['gcc-cross_10.1.bb:do_compile',

'gcc-cross_10.1.bb:do_gcc_stash_builddir'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_populate_sysroot

(dependent Tasks ['gcc-cross_10.1.bb:do_install'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot

(dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',

'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',

'gcc-cross_10.1.bb:do_populate_sysroot'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure

(dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',

'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',

'libgloss_3.3.0.bb:do_patch'])



Dependency loop #2 found:

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile

(dependent Tasks ['libgloss_3.3.0.bb:do_configure'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install

(dependent Tasks ['pseudo_git.bb:do_populate_sysroot',

'libgloss_3.3.0.bb:do_compile'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot

(dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',

'libgloss_3.3.0.bb:do_install'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot

(dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',

'libgloss_3.3.0.bb:do_populate_sysroot',

'binutils-cross_2.34.bb:do_fetch',

'texinfo-dummy-native.bb:do_populate_sysroot',

'gnu-config_git.bb:do_populate_sysroot',

'bison_3.6.4.bb:do_populate_sysroot',

'autoconf_2.69.bb:do_populate_sysroot',

'zlib_1.2.11.bb:do_populate_sysroot'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure

(dependent Tasks

['binutils-cross_2.34.bb:do_deploy_source_date_epoch',

'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',

'binutils-cross_2.34.bb:do_patch'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile

(dependent Tasks ['binutils-cross_2.34.bb:do_configure'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install

(dependent Tasks ['binutils-cross_2.34.bb:do_compile'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot

(dependent Tasks ['binutils-cross_2.34.bb:do_install'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_prepare_recipe_sysroot

(dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',

'gcc-cross_10.1.bb:do_fetch',

'libtool-native_2.4.6.bb:do_populate_sysroot',

'mpfr_4.1.0.bb:do_populate_sysroot',

'gmp_6.2.0.bb:do_populate_sysroot',

'libmpc_1.1.0.bb:do_populate_sysroot',

'texinfo-dummy-native.bb:do_populate_sysroot',

'gnu-config_git.bb:do_populate_sysroot',

'binutils-cross_2.34.bb:do_populate_sysroot',

'autoconf_2.69.bb:do_populate_sysroot',

'automake_1.16.2.bb:do_populate_sysroot',

'zlib_1.2.11.bb:do_populate_sysroot'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_configure

(dependent Tasks ['gcc-cross_10.1.bb:do_prepare_recipe_sysroot',

'gcc-cross_10.1.bb:do_deploy_source_date_epoch',

'gcc-source_10.1.bb:do_preconfigure'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_compile

(dependent Tasks ['gcc-cross_10.1.bb:do_configure'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_install

(dependent Tasks ['gcc-cross_10.1.bb:do_compile',

'gcc-cross_10.1.bb:do_gcc_stash_builddir'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_populate_sysroot

(dependent Tasks ['gcc-cross_10.1.bb:do_install'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_prepare_recipe_sysroot

(dependent Tasks ['gcc-cross_10.1.bb:do_populate_sysroot',

'pseudo_git.bb:do_populate_sysroot', 'newlib_3.3.0.bb:do_fetch'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_configure

(dependent Tasks ['newlib_3.3.0.bb:do_deploy_source_date_epoch',

'newlib_3.3.0.bb:do_prepare_recipe_sysroot',

'newlib_3.3.0.bb:do_patch'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_compile

(dependent Tasks ['newlib_3.3.0.bb:do_configure'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_install

(dependent Tasks ['newlib_3.3.0.bb:do_compile',

'pseudo_git.bb:do_populate_sysroot'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_populate_sysroot

(dependent Tasks ['newlib_3.3.0.bb:do_install',

'binutils-cross_2.34.bb:do_populate_sysroot'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot

(dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',

'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',

'gcc-cross_10.1.bb:do_populate_sysroot'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure

(dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',

'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',

'libgloss_3.3.0.bb:do_patch'])



Dependency loop #3 found:

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile

(dependent Tasks ['libgloss_3.3.0.bb:do_configure'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install

(dependent Tasks ['pseudo_git.bb:do_populate_sysroot',

'libgloss_3.3.0.bb:do_compile'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot

(dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',

'libgloss_3.3.0.bb:do_install'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot

(dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',

'libgloss_3.3.0.bb:do_populate_sysroot',

'binutils-cross_2.34.bb:do_fetch',

'texinfo-dummy-native.bb:do_populate_sysroot',

'gnu-config_git.bb:do_populate_sysroot',

'bison_3.6.4.bb:do_populate_sysroot',

'autoconf_2.69.bb:do_populate_sysroot',

'zlib_1.2.11.bb:do_populate_sysroot'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure

(dependent Tasks

['binutils-cross_2.34.bb:do_deploy_source_date_epoch',

'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',

'binutils-cross_2.34.bb:do_patch'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile

(dependent Tasks ['binutils-cross_2.34.bb:do_configure'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install

(dependent Tasks ['binutils-cross_2.34.bb:do_compile'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot

(dependent Tasks ['binutils-cross_2.34.bb:do_install'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_prepare_recipe_sysroot

(dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',

'gcc-cross_10.1.bb:do_fetch',

'libtool-native_2.4.6.bb:do_populate_sysroot',

'mpfr_4.1.0.bb:do_populate_sysroot',

'gmp_6.2.0.bb:do_populate_sysroot',

'libmpc_1.1.0.bb:do_populate_sysroot',

'texinfo-dummy-native.bb:do_populate_sysroot',

'gnu-config_git.bb:do_populate_sysroot',

'binutils-cross_2.34.bb:do_populate_sysroot',

'autoconf_2.69.bb:do_populate_sysroot',

'automake_1.16.2.bb:do_populate_sysroot',

'zlib_1.2.11.bb:do_populate_sysroot'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_configure

(dependent Tasks ['gcc-cross_10.1.bb:do_prepare_recipe_sysroot',

'gcc-cross_10.1.bb:do_deploy_source_date_epoch',

'gcc-source_10.1.bb:do_preconfigure'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_compile

(dependent Tasks ['gcc-cross_10.1.bb:do_configure'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_gcc_stash_builddir

(dependent Tasks ['gcc-cross_10.1.bb:do_compile'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_install

(dependent Tasks ['gcc-cross_10.1.bb:do_compile',

'gcc-cross_10.1.bb:do_gcc_stash_builddir'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_populate_sysroot

(dependent Tasks ['gcc-cross_10.1.bb:do_install'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot

(dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',

'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',

'gcc-cross_10.1.bb:do_populate_sysroot'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure

(dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',

'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',

'libgloss_3.3.0.bb:do_patch'])



Dependency loop #4 found:

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile

(dependent Tasks ['libgloss_3.3.0.bb:do_configure'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install

(dependent Tasks ['pseudo_git.bb:do_populate_sysroot',

'libgloss_3.3.0.bb:do_compile'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot

(dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',

'libgloss_3.3.0.bb:do_install'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot

(dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',

'libgloss_3.3.0.bb:do_populate_sysroot',

'binutils-cross_2.34.bb:do_fetch',

'texinfo-dummy-native.bb:do_populate_sysroot',

'gnu-config_git.bb:do_populate_sysroot',

'bison_3.6.4.bb:do_populate_sysroot',

'autoconf_2.69.bb:do_populate_sysroot',

'zlib_1.2.11.bb:do_populate_sysroot'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure

(dependent Tasks

['binutils-cross_2.34.bb:do_deploy_source_date_epoch',

'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',

'binutils-cross_2.34.bb:do_patch'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile

(dependent Tasks ['binutils-cross_2.34.bb:do_configure'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install

(dependent Tasks ['binutils-cross_2.34.bb:do_compile'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot

(dependent Tasks ['binutils-cross_2.34.bb:do_install'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_prepare_recipe_sysroot

(dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',

'gcc-cross_10.1.bb:do_fetch',

'libtool-native_2.4.6.bb:do_populate_sysroot',

'mpfr_4.1.0.bb:do_populate_sysroot',

'gmp_6.2.0.bb:do_populate_sysroot',

'libmpc_1.1.0.bb:do_populate_sysroot',

'texinfo-dummy-native.bb:do_populate_sysroot',

'gnu-config_git.bb:do_populate_sysroot',

'binutils-cross_2.34.bb:do_populate_sysroot',

'autoconf_2.69.bb:do_populate_sysroot',

'automake_1.16.2.bb:do_populate_sysroot',

'zlib_1.2.11.bb:do_populate_sysroot'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_configure

(dependent Tasks ['gcc-cross_10.1.bb:do_prepare_recipe_sysroot',

'gcc-cross_10.1.bb:do_deploy_source_date_epoch',

'gcc-source_10.1.bb:do_preconfigure'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_compile

(dependent Tasks ['gcc-cross_10.1.bb:do_configure'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_gcc_stash_builddir

(dependent Tasks ['gcc-cross_10.1.bb:do_compile'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_install

(dependent Tasks ['gcc-cross_10.1.bb:do_compile',

'gcc-cross_10.1.bb:do_gcc_stash_builddir'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_populate_sysroot

(dependent Tasks ['gcc-cross_10.1.bb:do_install'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_prepare_recipe_sysroot

(dependent Tasks ['gcc-cross_10.1.bb:do_populate_sysroot',

'pseudo_git.bb:do_populate_sysroot', 'newlib_3.3.0.bb:do_fetch'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_configure

(dependent Tasks ['newlib_3.3.0.bb:do_deploy_source_date_epoch',

'newlib_3.3.0.bb:do_prepare_recipe_sysroot',

'newlib_3.3.0.bb:do_patch'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_compile

(dependent Tasks ['newlib_3.3.0.bb:do_configure'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_install

(dependent Tasks ['newlib_3.3.0.bb:do_compile',

'pseudo_git.bb:do_populate_sysroot'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_populate_sysroot

(dependent Tasks ['newlib_3.3.0.bb:do_install',

'binutils-cross_2.34.bb:do_populate_sysroot'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot

(dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',

'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',

'gcc-cross_10.1.bb:do_populate_sysroot'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure

(dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',

'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',

'libgloss_3.3.0.bb:do_patch'])



Dependency loop #5 found:

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile

(dependent Tasks ['libgloss_3.3.0.bb:do_configure'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install

(dependent Tasks ['pseudo_git.bb:do_populate_sysroot',

'libgloss_3.3.0.bb:do_compile'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot

(dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',

'libgloss_3.3.0.bb:do_install'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot

(dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',

'libgloss_3.3.0.bb:do_populate_sysroot',

'binutils-cross_2.34.bb:do_fetch',

'texinfo-dummy-native.bb:do_populate_sysroot',

'gnu-config_git.bb:do_populate_sysroot',

'bison_3.6.4.bb:do_populate_sysroot',

'autoconf_2.69.bb:do_populate_sysroot',

'zlib_1.2.11.bb:do_populate_sysroot'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure

(dependent Tasks

['binutils-cross_2.34.bb:do_deploy_source_date_epoch',

'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',

'binutils-cross_2.34.bb:do_patch'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile

(dependent Tasks ['binutils-cross_2.34.bb:do_configure'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install

(dependent Tasks ['binutils-cross_2.34.bb:do_compile'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot

(dependent Tasks ['binutils-cross_2.34.bb:do_install'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_populate_sysroot

(dependent Tasks ['newlib_3.3.0.bb:do_install',

'binutils-cross_2.34.bb:do_populate_sysroot'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot

(dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',

'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',

'gcc-cross_10.1.bb:do_populate_sysroot'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure

(dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',

'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',

'libgloss_3.3.0.bb:do_patch'])



Dependency loop #6 found:

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot

(dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',

'libgloss_3.3.0.bb:do_install'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot

(dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',

'libgloss_3.3.0.bb:do_populate_sysroot',

'binutils-cross_2.34.bb:do_fetch',

'texinfo-dummy-native.bb:do_populate_sysroot',

'gnu-config_git.bb:do_populate_sysroot',

'bison_3.6.4.bb:do_populate_sysroot',

'autoconf_2.69.bb:do_populate_sysroot',

'zlib_1.2.11.bb:do_populate_sysroot'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure

(dependent Tasks

['binutils-cross_2.34.bb:do_deploy_source_date_epoch',

'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',

'binutils-cross_2.34.bb:do_patch'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile

(dependent Tasks ['binutils-cross_2.34.bb:do_configure'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install

(dependent Tasks ['binutils-cross_2.34.bb:do_compile'])

  Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot

(dependent Tasks ['binutils-cross_2.34.bb:do_install'])





[-- Attachment #1.2: Type: text/html, Size: 41699 bytes --]

[-- Attachment #2: 0001-Add-simple-recipe-using-autotools-to-compile-a-progr.patch --]
[-- Type: application/octet-stream, Size: 2771 bytes --]

From 7c1c6f3ce454d26e86ae7c438c7024b1ed726012 Mon Sep 17 00:00:00 2001
From: Jonathan Richardson <jonathan.richardson@broadcom.com>
Date: Tue, 11 Aug 2020 16:10:25 -0700
Subject: [PATCH 1/1] Add simple recipe using autotools to compile a program
 with main that does nothing.

Change-Id: I78ce85b956fbb08a2d89f8e2c6d90934dab391e7
---
 .../helloworld/files/Makefile.am              |  2 ++
 .../helloworld/files/configure.ac             | 21 +++++++++++++++++++
 meta/recipes-support/helloworld/files/main.c  | 11 ++++++++++
 meta/recipes-support/helloworld/helloworld.bb |  8 +++++++
 4 files changed, 42 insertions(+)
 create mode 100755 meta/recipes-support/helloworld/files/Makefile.am
 create mode 100755 meta/recipes-support/helloworld/files/configure.ac
 create mode 100755 meta/recipes-support/helloworld/files/main.c
 create mode 100755 meta/recipes-support/helloworld/helloworld.bb

diff --git a/meta/recipes-support/helloworld/files/Makefile.am b/meta/recipes-support/helloworld/files/Makefile.am
new file mode 100755
index 0000000000..1ed3891911
--- /dev/null
+++ b/meta/recipes-support/helloworld/files/Makefile.am
@@ -0,0 +1,2 @@
+bin_PROGRAMS = helloworld
+helloworld_SOURCES = main.c
diff --git a/meta/recipes-support/helloworld/files/configure.ac b/meta/recipes-support/helloworld/files/configure.ac
new file mode 100755
index 0000000000..3bd53e2690
--- /dev/null
+++ b/meta/recipes-support/helloworld/files/configure.ac
@@ -0,0 +1,21 @@
+#                                               -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_INIT([helloworld], [1.0])
+AM_INIT_AUTOMAKE([foreign])
+AC_CONFIG_SRCDIR([main.c])
+
+# Checks for programs.
+AC_PROG_CC
+AC_PROG_INSTALL
+
+# Checks for header files.
+AC_CHECK_HEADERS([stdint.h stdlib.h string.h unistd.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_TYPE_UINT16_T
+AC_TYPE_UINT32_T
+AC_TYPE_UINT8_T
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
diff --git a/meta/recipes-support/helloworld/files/main.c b/meta/recipes-support/helloworld/files/main.c
new file mode 100755
index 0000000000..c196eda874
--- /dev/null
+++ b/meta/recipes-support/helloworld/files/main.c
@@ -0,0 +1,11 @@
+#include <stdio.h>
+//#include <stdlib.h>
+//#include <stdint.h>
+//#include <string.h>
+//#include <unistd.h>
+
+int main( int argc, char *argv[] )
+{
+
+   return 0;
+}
diff --git a/meta/recipes-support/helloworld/helloworld.bb b/meta/recipes-support/helloworld/helloworld.bb
new file mode 100755
index 0000000000..7f3be38042
--- /dev/null
+++ b/meta/recipes-support/helloworld/helloworld.bb
@@ -0,0 +1,8 @@
+LICENSE = "CLOSED"
+
+inherit autotools
+
+SRC_URI = "file://main.c file://Makefile.am file://configure.ac"
+
+S = "${WORKDIR}"
+
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [poky] TCLIBC with newlib
  2020-08-12 19:03       ` Jonathan Richardson
@ 2020-08-12 20:47         ` Khem Raj
  2020-08-13  0:57           ` Jonathan Richardson
  2020-08-12 20:53         ` Richard Purdie
  2020-08-12 21:00         ` Tim Orling
  2 siblings, 1 reply; 12+ messages in thread
From: Khem Raj @ 2020-08-12 20:47 UTC (permalink / raw)
  To: Jonathan Richardson; +Cc: Alejandro Hernandez Samaniego, poky

On Wed, Aug 12, 2020 at 12:03 PM Jonathan Richardson
<jonathan.richardson@broadcom.com> wrote:
>
> Hi Alejandro,
>
>
>
> Thanks for your feedback. I narrowed it down. It builds when building simple code that uses a makefile to compile some MCU code running on a cortex-m0. Now we’re compiling zephyr OS for a cortex M0-plus. The toolchain is a bit more complicated because of all the x86 native build dependencies.
>
>
>
> Ignoring that for now I created a simple helloworld recipe with an empty main compiled with autotools (attached). The problems arise when autotools pulls in libtool-cross. If you switch to a makefile instead of using autotools then libtool-cross doesn’t get pulled in and it builds fine. I think the toolchain should be buildable when using autotools class and newlib.
>
>

I think its a usecase which perhaps is not yet supported. I would
suggest to open a tracker ticket in yocto bugzilla for this, since it
won't be a one liner to fix it

>
> Here is how to reproduce. You can use any machine tuning.
>
>
>
> build/conf/local.conf:
>
> MACHINE = "cortexm0"
>
> TCLIBC = "newlib"
>
>
>
> conf/machine/cortexm0.conf:
>
> DEFAULTTUNE = "armv6t-novfp"
>
> require conf/machine/include/arm/arch-armv8a.inc
>
>
>
> Apply attached patch then bitbake helloworld.
>
>
>
> Note that with this simple example I don’t have the issue having to redefine LIBC_DEPENDENCIES. The zephyr recipe pulled in various native python modules that likely caused some issue there. Also there are no circular dependencies with this. Thanks.
>
>
>
> From: Alejandro Hernandez Samaniego [mailto:alhe@linux.microsoft.com]
> Sent: Monday, August 10, 2020 10:53 PM
> To: jonathan.richardson@broadcom.com; Khem Raj
> Cc: poky@lists.yoctoproject.org
> Subject: Re: [poky] TCLIBC with newlib
>
>
>
> Hello,
>
> I'm pretty sure, you are causing the dependency loop with the depends + cross class changes.
>
> I think there is some wiring in libgcc that is not matching properly with something defined in your BSP layer, likely in your machine.conf, although like Khem said, removing the dbg packages from the dependencies would workaround this issue.
>
> Yes, a newlib toolchain can be created, this works fine with the supported BSPs (and others from some vendors) AFAIC I dont think changes are required on tclibc-newlib at this point since it contains the basics, anything else would be added per architecture on their BSP layer.
>
> Its hard to tell without knowing anything about the architecture you're using, but I think the error you are hitting its happening because your runtime isn't being built properly or is incompatible, it looks like at the very least you should have stubs for _exit() patched on libgloss/newlib for your architecture (or submit those to newlib upstream), if you're using something ARM based you may be able to build using semhosting with the rdimon specs or even nosys but it probably wouldn't work properly at runtime, if that allows you to build you can proceed to add you architecture specific functions to libgloss.
>
>
>
> Cheers,
>
> Alejandro
>
> On 8/7/20 4:26 PM, Jonathan Richardson via lists.yoctoproject.org wrote:
>
> On Thu, Aug 6, 2020 at 9:58 PM Khem Raj <raj.khem@gmail.com> wrote:
>
>
>
> On Thu, Aug 6, 2020 at 5:22 PM Jonathan Richardson via
>
> lists.yoctoproject.org
>
> <jonathan.richardson=broadcom.com@lists.yoctoproject.org> wrote:
>
>
>
> Hi,
>
>
>
> I'm trying to create a toolchain using newlib as the libc. I set
>
> TCLIBC="newlib". First error is:
>
> ERROR: Nothing PROVIDES 'libgcc-dbg' (but
>
> mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta-brcm/meta-stingray2/recipes-zephyr/brcm-zephyr/brcm-zephyr.bb
>
> DEPENDS on or otherwise requires it). Close matches:
>
>   libgcc
>
>   libgcc RPROVIDES libgcc-dbg
>
> ERROR: Required build target 'brcm-zephyr' has no buildable providers.
>
> Missing or unbuildable dependency chain was: ['brcm-zephyr', 'libgcc-dbg']
>
>
>
> This is caused by LIBC_DEPENDENCIES in
>
> meta/conf/distro/include/tclibc-newlib.inc:
>
> LIBC_DEPENDENCIES = "\
>
>     newlib-dbg \
>
>     newlib-dev \
>
>     libgloss \
>
>     libgloss-dev \
>
>     libgloss-dbg \
>
>     libgcc-dev \
>
>     libgcc-dbg \
>
>     libstdc++-dev \
>
>     libstdc++-staticdev \
>
>
>
> Remove all -dbg packages from above list.
>
>
>
> TOOLCHAIN_TARGET_TASK ?= "${LIBC_DEPENDENCIES}"
>
>
>
> TOOLCHAIN_TARGET_TASK = "newlib libgloss" seems to fix it. Why are the
>
> dev/dbg packages required as
>
> dependencies and why does it think the recipes for libgloss, libgcc,
>
> etc don't provide them?
>
>
>
> Then libtool-cross fails when autoconf checks if the compiler works
>
> because it can't find _exit().
>
> So I added this to my local.conf:
>
> EXTRA_OECONF_append_class_target = " LIBS=-lgloss-linux"
>
> EXTRA_OECONF_append_class_cross = " LIBS=-lgloss-linux"
>
>
>
> It should be EXTRA_OECONF_append_class-target and
>
> EXTRA_OECONF_append_class-cross, there is a underscore there instead
>
> of '-'
>
>
>
> Thanks. More than this is required though. I added this so far:
>
>
>
> diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
>
> index 6776242740..262db927cd 100644
>
> --- a/meta/classes/base.bbclass
>
> +++ b/meta/classes/base.bbclass
>
> @@ -75,6 +75,7 @@ BASE_DEFAULT_DEPS = "virtual/${TARGET_PREFIX}gcc
>
> virtual/${TARGET_PREFIX}compile
>
>
>
>  BASEDEPENDS = ""
>
>  BASEDEPENDS_class-target = "${@base_dep_prepend(d)}"
>
> +BASEDEPENDS_class-cross = "${@base_dep_prepend(d)}"
>
>  BASEDEPENDS_class-nativesdk = "${@base_dep_prepend(d)}"
>
>
>
>  DEPENDS_prepend="${BASEDEPENDS} "
>
> diff --git a/meta/conf/distro/include/tclibc-newlib.inc
>
> b/meta/conf/distro/include/tclibc-newlib.inc
>
> index bf89b11288..cb55f3a82c 100644
>
> --- a/meta/conf/distro/include/tclibc-newlib.inc
>
> +++ b/meta/conf/distro/include/tclibc-newlib.inc
>
> @@ -18,13 +18,10 @@ DISTRO_FEATURES_BACKFILL_CONSIDERED += "ldconfig"
>
>  IMAGE_LINGUAS = ""
>
>
>
>  LIBC_DEPENDENCIES = "\
>
> -    newlib-dbg \
>
>      newlib-dev \
>
>      libgloss \
>
>      libgloss-dev \
>
> -    libgloss-dbg \
>
>      libgcc-dev \
>
> -    libgcc-dbg \
>
>      libstdc++-dev \
>
>      libstdc++-staticdev \
>
>      "
>
> @@ -34,6 +31,7 @@ ASSUME_PROVIDED += "virtual/crypt"
>
>  # Its useful to be able to extend newlib, but we dont provide a
>
> native variant of libgloss
>
>  NEWLIB_EXTENDED ?=  "libgloss libgcc"
>
>  BASE_DEFAULT_DEPS_append_class-target = " ${NEWLIB_EXTENDED}"
>
> +BASE_DEFAULT_DEPS_append_class-cross = " ${NEWLIB_EXTENDED}"
>
>
>
>  TARGET_OS = "elf"
>
>  TARGET_OS_arm = "eabi"
>
> @@ -45,3 +43,9 @@ TOOLCHAIN_NEED_CONFIGSITE_CACHE_remove = "zlib ncurses"
>
>  # disable pie security flags by default
>
>  SECURITY_CFLAGS_libc-newlib = "${SECURITY_NOPIE_CFLAGS}"
>
>  SECURITY_LDFLAGS_libc-newlib = ""
>
> +
>
> +EXTRA_OECONF_append_class-target = " LIBS=-lgloss-linux"
>
> +EXTRA_OECONF_append_class-cross = " LIBS=-lgloss-linux"
>
> +# binutils-cross.inc sets INHIBIT_DEFAULT_DEPS = "1" which will cause
>
> BASEDEBPENDS to not
>
> +# include libgloss which causes the autoconf compiler check to fail.
>
> +DEPENDS_append_pn-binutils-cross-arm = " libgloss"
>
>
>
> Adding the dependency to binutils-cross-arm causes circular
>
> dependencies though. I don't know
>
> what's going on here:
>
>
>
> Dependency loop #1 found:
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile
>
> (dependent Tasks ['libgloss_3.3.0.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install
>
> (dependent Tasks ['pseudo_git.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_populate_sysroot',
>
> 'binutils-cross_2.34.bb:do_fetch',
>
> 'texinfo-dummy-native.bb:do_populate_sysroot',
>
> 'gnu-config_git.bb:do_populate_sysroot',
>
> 'bison_3.6.4.bb:do_populate_sysroot',
>
> 'autoconf_2.69.bb:do_populate_sysroot',
>
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure
>
> (dependent Tasks
>
> ['binutils-cross_2.34.bb:do_deploy_source_date_epoch',
>
> 'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',
>
> 'binutils-cross_2.34.bb:do_patch'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
>
> 'gcc-cross_10.1.bb:do_fetch',
>
> 'libtool-native_2.4.6.bb:do_populate_sysroot',
>
> 'mpfr_4.1.0.bb:do_populate_sysroot',
>
> 'gmp_6.2.0.bb:do_populate_sysroot',
>
> 'libmpc_1.1.0.bb:do_populate_sysroot',
>
> 'texinfo-dummy-native.bb:do_populate_sysroot',
>
> 'gnu-config_git.bb:do_populate_sysroot',
>
> 'binutils-cross_2.34.bb:do_populate_sysroot',
>
> 'autoconf_2.69.bb:do_populate_sysroot',
>
> 'automake_1.16.2.bb:do_populate_sysroot',
>
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_configure
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_prepare_recipe_sysroot',
>
> 'gcc-cross_10.1.bb:do_deploy_source_date_epoch',
>
> 'gcc-source_10.1.bb:do_preconfigure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_compile
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_install
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_compile',
>
> 'gcc-cross_10.1.bb:do_gcc_stash_builddir'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_populate_sysroot
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',
>
> 'gcc-cross_10.1.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure
>
> (dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',
>
> 'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',
>
> 'libgloss_3.3.0.bb:do_patch'])
>
>
>
> Dependency loop #2 found:
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile
>
> (dependent Tasks ['libgloss_3.3.0.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install
>
> (dependent Tasks ['pseudo_git.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_populate_sysroot',
>
> 'binutils-cross_2.34.bb:do_fetch',
>
> 'texinfo-dummy-native.bb:do_populate_sysroot',
>
> 'gnu-config_git.bb:do_populate_sysroot',
>
> 'bison_3.6.4.bb:do_populate_sysroot',
>
> 'autoconf_2.69.bb:do_populate_sysroot',
>
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure
>
> (dependent Tasks
>
> ['binutils-cross_2.34.bb:do_deploy_source_date_epoch',
>
> 'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',
>
> 'binutils-cross_2.34.bb:do_patch'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
>
> 'gcc-cross_10.1.bb:do_fetch',
>
> 'libtool-native_2.4.6.bb:do_populate_sysroot',
>
> 'mpfr_4.1.0.bb:do_populate_sysroot',
>
> 'gmp_6.2.0.bb:do_populate_sysroot',
>
> 'libmpc_1.1.0.bb:do_populate_sysroot',
>
> 'texinfo-dummy-native.bb:do_populate_sysroot',
>
> 'gnu-config_git.bb:do_populate_sysroot',
>
> 'binutils-cross_2.34.bb:do_populate_sysroot',
>
> 'autoconf_2.69.bb:do_populate_sysroot',
>
> 'automake_1.16.2.bb:do_populate_sysroot',
>
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_configure
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_prepare_recipe_sysroot',
>
> 'gcc-cross_10.1.bb:do_deploy_source_date_epoch',
>
> 'gcc-source_10.1.bb:do_preconfigure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_compile
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_install
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_compile',
>
> 'gcc-cross_10.1.bb:do_gcc_stash_builddir'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_populate_sysroot
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_populate_sysroot',
>
> 'pseudo_git.bb:do_populate_sysroot', 'newlib_3.3.0.bb:do_fetch'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_configure
>
> (dependent Tasks ['newlib_3.3.0.bb:do_deploy_source_date_epoch',
>
> 'newlib_3.3.0.bb:do_prepare_recipe_sysroot',
>
> 'newlib_3.3.0.bb:do_patch'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_compile
>
> (dependent Tasks ['newlib_3.3.0.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_install
>
> (dependent Tasks ['newlib_3.3.0.bb:do_compile',
>
> 'pseudo_git.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_populate_sysroot
>
> (dependent Tasks ['newlib_3.3.0.bb:do_install',
>
> 'binutils-cross_2.34.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',
>
> 'gcc-cross_10.1.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure
>
> (dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',
>
> 'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',
>
> 'libgloss_3.3.0.bb:do_patch'])
>
>
>
> Dependency loop #3 found:
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile
>
> (dependent Tasks ['libgloss_3.3.0.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install
>
> (dependent Tasks ['pseudo_git.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_populate_sysroot',
>
> 'binutils-cross_2.34.bb:do_fetch',
>
> 'texinfo-dummy-native.bb:do_populate_sysroot',
>
> 'gnu-config_git.bb:do_populate_sysroot',
>
> 'bison_3.6.4.bb:do_populate_sysroot',
>
> 'autoconf_2.69.bb:do_populate_sysroot',
>
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure
>
> (dependent Tasks
>
> ['binutils-cross_2.34.bb:do_deploy_source_date_epoch',
>
> 'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',
>
> 'binutils-cross_2.34.bb:do_patch'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
>
> 'gcc-cross_10.1.bb:do_fetch',
>
> 'libtool-native_2.4.6.bb:do_populate_sysroot',
>
> 'mpfr_4.1.0.bb:do_populate_sysroot',
>
> 'gmp_6.2.0.bb:do_populate_sysroot',
>
> 'libmpc_1.1.0.bb:do_populate_sysroot',
>
> 'texinfo-dummy-native.bb:do_populate_sysroot',
>
> 'gnu-config_git.bb:do_populate_sysroot',
>
> 'binutils-cross_2.34.bb:do_populate_sysroot',
>
> 'autoconf_2.69.bb:do_populate_sysroot',
>
> 'automake_1.16.2.bb:do_populate_sysroot',
>
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_configure
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_prepare_recipe_sysroot',
>
> 'gcc-cross_10.1.bb:do_deploy_source_date_epoch',
>
> 'gcc-source_10.1.bb:do_preconfigure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_compile
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_gcc_stash_builddir
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_install
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_compile',
>
> 'gcc-cross_10.1.bb:do_gcc_stash_builddir'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_populate_sysroot
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',
>
> 'gcc-cross_10.1.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure
>
> (dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',
>
> 'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',
>
> 'libgloss_3.3.0.bb:do_patch'])
>
>
>
> Dependency loop #4 found:
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile
>
> (dependent Tasks ['libgloss_3.3.0.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install
>
> (dependent Tasks ['pseudo_git.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_populate_sysroot',
>
> 'binutils-cross_2.34.bb:do_fetch',
>
> 'texinfo-dummy-native.bb:do_populate_sysroot',
>
> 'gnu-config_git.bb:do_populate_sysroot',
>
> 'bison_3.6.4.bb:do_populate_sysroot',
>
> 'autoconf_2.69.bb:do_populate_sysroot',
>
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure
>
> (dependent Tasks
>
> ['binutils-cross_2.34.bb:do_deploy_source_date_epoch',
>
> 'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',
>
> 'binutils-cross_2.34.bb:do_patch'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
>
> 'gcc-cross_10.1.bb:do_fetch',
>
> 'libtool-native_2.4.6.bb:do_populate_sysroot',
>
> 'mpfr_4.1.0.bb:do_populate_sysroot',
>
> 'gmp_6.2.0.bb:do_populate_sysroot',
>
> 'libmpc_1.1.0.bb:do_populate_sysroot',
>
> 'texinfo-dummy-native.bb:do_populate_sysroot',
>
> 'gnu-config_git.bb:do_populate_sysroot',
>
> 'binutils-cross_2.34.bb:do_populate_sysroot',
>
> 'autoconf_2.69.bb:do_populate_sysroot',
>
> 'automake_1.16.2.bb:do_populate_sysroot',
>
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_configure
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_prepare_recipe_sysroot',
>
> 'gcc-cross_10.1.bb:do_deploy_source_date_epoch',
>
> 'gcc-source_10.1.bb:do_preconfigure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_compile
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_gcc_stash_builddir
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_install
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_compile',
>
> 'gcc-cross_10.1.bb:do_gcc_stash_builddir'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_populate_sysroot
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_populate_sysroot',
>
> 'pseudo_git.bb:do_populate_sysroot', 'newlib_3.3.0.bb:do_fetch'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_configure
>
> (dependent Tasks ['newlib_3.3.0.bb:do_deploy_source_date_epoch',
>
> 'newlib_3.3.0.bb:do_prepare_recipe_sysroot',
>
> 'newlib_3.3.0.bb:do_patch'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_compile
>
> (dependent Tasks ['newlib_3.3.0.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_install
>
> (dependent Tasks ['newlib_3.3.0.bb:do_compile',
>
> 'pseudo_git.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_populate_sysroot
>
> (dependent Tasks ['newlib_3.3.0.bb:do_install',
>
> 'binutils-cross_2.34.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',
>
> 'gcc-cross_10.1.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure
>
> (dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',
>
> 'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',
>
> 'libgloss_3.3.0.bb:do_patch'])
>
>
>
> Dependency loop #5 found:
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile
>
> (dependent Tasks ['libgloss_3.3.0.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install
>
> (dependent Tasks ['pseudo_git.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_populate_sysroot',
>
> 'binutils-cross_2.34.bb:do_fetch',
>
> 'texinfo-dummy-native.bb:do_populate_sysroot',
>
> 'gnu-config_git.bb:do_populate_sysroot',
>
> 'bison_3.6.4.bb:do_populate_sysroot',
>
> 'autoconf_2.69.bb:do_populate_sysroot',
>
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure
>
> (dependent Tasks
>
> ['binutils-cross_2.34.bb:do_deploy_source_date_epoch',
>
> 'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',
>
> 'binutils-cross_2.34.bb:do_patch'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_populate_sysroot
>
> (dependent Tasks ['newlib_3.3.0.bb:do_install',
>
> 'binutils-cross_2.34.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',
>
> 'gcc-cross_10.1.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure
>
> (dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',
>
> 'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',
>
> 'libgloss_3.3.0.bb:do_patch'])
>
>
>
> Dependency loop #6 found:
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_populate_sysroot',
>
> 'binutils-cross_2.34.bb:do_fetch',
>
> 'texinfo-dummy-native.bb:do_populate_sysroot',
>
> 'gnu-config_git.bb:do_populate_sysroot',
>
> 'bison_3.6.4.bb:do_populate_sysroot',
>
> 'autoconf_2.69.bb:do_populate_sysroot',
>
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure
>
> (dependent Tasks
>
> ['binutils-cross_2.34.bb:do_deploy_source_date_epoch',
>
> 'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',
>
> 'binutils-cross_2.34.bb:do_patch'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_install'])
>
>
>
> 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [poky] TCLIBC with newlib
  2020-08-12 19:03       ` Jonathan Richardson
  2020-08-12 20:47         ` Khem Raj
@ 2020-08-12 20:53         ` Richard Purdie
  2020-08-12 21:00         ` Tim Orling
  2 siblings, 0 replies; 12+ messages in thread
From: Richard Purdie @ 2020-08-12 20:53 UTC (permalink / raw)
  To: jonathan.richardson, Alejandro Hernandez Samaniego, Khem Raj; +Cc: poky

On Wed, 2020-08-12 at 12:03 -0700, Jonathan Richardson via
lists.yoctoproject.org wrote:
> Hi Alejandro,
>  
> Thanks for your feedback. I narrowed it down. It builds when building
> simple code that uses a makefile to compile some MCU code running on
> a cortex-m0. Now we’re compiling zephyr OS for a cortex M0-plus. The
> toolchain is a bit more complicated because of all the x86 native
> build dependencies.
>  
> Ignoring that for now I created a simple helloworld recipe with an
> empty main compiled with autotools (attached). The problems arise
> when autotools pulls in libtool-cross. If you switch to a makefile
> instead of using autotools then libtool-cross doesn’t get pulled in
> and it builds fine. I think the toolchain should be buildable when
> using autotools class and newlib.
>  
> Here is how to reproduce. You can use any machine tuning.
>  
> build/conf/local.conf:
> MACHINE = "cortexm0"
> TCLIBC = "newlib"
>  
> conf/machine/cortexm0.conf:
> DEFAULTTUNE = "armv6t-novfp"
> require conf/machine/include/arm/arch-armv8a.inc
>  
> Apply attached patch then bitbake helloworld.
>  
> Note that with this simple example I don’t have the issue having to
> redefine LIBC_DEPENDENCIES. The zephyr recipe pulled in various
> native python modules that likely caused some issue there. Also there
> are no circular dependencies with this. Thanks.

I'm not sure you actually need/want libtool-cross? Have you tried
setting INHIBIT_AUTOTOOLS_DEPS = "1" ? That would let you set your
dependencies manually and only pull in the bits you really need/want
which might get you further. You may then need to add autoconf-native
and or automake-native to DEPENDS manually for your recipe.

Cheers,

Richard


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [poky] TCLIBC with newlib
  2020-08-12 19:03       ` Jonathan Richardson
  2020-08-12 20:47         ` Khem Raj
  2020-08-12 20:53         ` Richard Purdie
@ 2020-08-12 21:00         ` Tim Orling
  2020-08-13  0:46           ` Jonathan Richardson
  2 siblings, 1 reply; 12+ messages in thread
From: Tim Orling @ 2020-08-12 21:00 UTC (permalink / raw)
  To: jonathan.richardson; +Cc: Alejandro Hernandez Samaniego, Khem Raj, poky

[-- Attachment #1: Type: text/plain, Size: 32394 bytes --]

Did you look at meta-zephyr?
http://git.yoctoproject.org/cgit/cgit.cgi/meta-zephyr/


On Wed, Aug 12, 2020 at 12:04 PM Jonathan Richardson via
lists.yoctoproject.org <jonathan.richardson=
broadcom.com@lists.yoctoproject.org> wrote:

> Hi Alejandro,
>
>
>
> Thanks for your feedback. I narrowed it down. It builds when building
> simple code that uses a makefile to compile some MCU code running on a
> cortex-m0. Now we’re compiling zephyr OS for a cortex M0-plus. The
> toolchain is a bit more complicated because of all the x86 native build
> dependencies.
>
>
>
> Ignoring that for now I created a simple helloworld recipe with an empty
> main compiled with autotools (attached). The problems arise when autotools
> pulls in libtool-cross. If you switch to a makefile instead of using
> autotools then libtool-cross doesn’t get pulled in and it builds fine. I
> think the toolchain should be buildable when using autotools class and
> newlib.
>
>
>
> Here is how to reproduce. You can use any machine tuning.
>
>
>
> build/conf/local.conf:
>
> MACHINE = "cortexm0"
>
> TCLIBC = "newlib"
>
>
>
> conf/machine/cortexm0.conf:
>
> DEFAULTTUNE = "armv6t-novfp"
>
> require conf/machine/include/arm/arch-armv8a.inc
>
>
>
> Apply attached patch then bitbake helloworld.
>
>
>
> Note that with this simple example I don’t have the issue having to
> redefine LIBC_DEPENDENCIES. The zephyr recipe pulled in various native
> python modules that likely caused some issue there. Also there are no
> circular dependencies with this. Thanks.
>
>
>
> *From:* Alejandro Hernandez Samaniego [mailto:alhe@linux.microsoft.com]
> *Sent:* Monday, August 10, 2020 10:53 PM
> *To:* jonathan.richardson@broadcom.com; Khem Raj
> *Cc:* poky@lists.yoctoproject.org
> *Subject:* Re: [poky] TCLIBC with newlib
>
>
>
> Hello,
>
> I'm pretty sure, you are causing the dependency loop with the depends +
> cross class changes.
>
> I think there is some wiring in libgcc that is not matching properly with
> something defined in your BSP layer, likely in your machine.conf, although
> like Khem said, removing the dbg packages from the dependencies would
> workaround this issue.
>
> Yes, a newlib toolchain can be created, this works fine with the supported
> BSPs (and others from some vendors) AFAIC I dont think changes are required
> on tclibc-newlib at this point since it contains the basics, anything else
> would be added per architecture on their BSP layer.
>
> Its hard to tell without knowing anything about the architecture you're
> using, but I think the error you are hitting its happening because your
> runtime isn't being built properly or is incompatible, it looks like at the
> very least you should have stubs for _exit() patched on libgloss/newlib for
> your architecture (or submit those to newlib upstream), if you're using
> something ARM based you may be able to build using semhosting with the
> rdimon specs or even nosys but it probably wouldn't work properly at
> runtime, if that allows you to build you can proceed to add you
> architecture specific functions to libgloss.
>
>
>
> Cheers,
>
> Alejandro
>
> On 8/7/20 4:26 PM, Jonathan Richardson via lists.yoctoproject.org wrote:
>
> On Thu, Aug 6, 2020 at 9:58 PM Khem Raj <raj.khem@gmail.com> <raj.khem@gmail.com> wrote:
>
>
>
> On Thu, Aug 6, 2020 at 5:22 PM Jonathan Richardson via
>
> lists.yoctoproject.org
>
> <jonathan.richardson=broadcom.com@lists.yoctoproject.org> <jonathan.richardson=broadcom.com@lists.yoctoproject.org> wrote:
>
>
>
> Hi,
>
>
>
> I'm trying to create a toolchain using newlib as the libc. I set
>
> TCLIBC="newlib". First error is:
>
> ERROR: Nothing PROVIDES 'libgcc-dbg' (but
>
> mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta-brcm/meta-stingray2/recipes-zephyr/brcm-zephyr/brcm-zephyr.bb
>
> DEPENDS on or otherwise requires it). Close matches:
>
>   libgcc
>
>   libgcc RPROVIDES libgcc-dbg
>
> ERROR: Required build target 'brcm-zephyr' has no buildable providers.
>
> Missing or unbuildable dependency chain was: ['brcm-zephyr', 'libgcc-dbg']
>
>
>
> This is caused by LIBC_DEPENDENCIES in
>
> meta/conf/distro/include/tclibc-newlib.inc:
>
> LIBC_DEPENDENCIES = "\
>
>     newlib-dbg \
>
>     newlib-dev \
>
>     libgloss \
>
>     libgloss-dev \
>
>     libgloss-dbg \
>
>     libgcc-dev \
>
>     libgcc-dbg \
>
>     libstdc++-dev \
>
>     libstdc++-staticdev \
>
>
>
> Remove all -dbg packages from above list.
>
>
>
> TOOLCHAIN_TARGET_TASK ?= "${LIBC_DEPENDENCIES}"
>
>
>
> TOOLCHAIN_TARGET_TASK = "newlib libgloss" seems to fix it. Why are the
>
> dev/dbg packages required as
>
> dependencies and why does it think the recipes for libgloss, libgcc,
>
> etc don't provide them?
>
>
>
> Then libtool-cross fails when autoconf checks if the compiler works
>
> because it can't find _exit().
>
> So I added this to my local.conf:
>
> EXTRA_OECONF_append_class_target = " LIBS=-lgloss-linux"
>
> EXTRA_OECONF_append_class_cross = " LIBS=-lgloss-linux"
>
>
>
> It should be EXTRA_OECONF_append_class-target and
>
> EXTRA_OECONF_append_class-cross, there is a underscore there instead
>
> of '-'
>
>
>
> Thanks. More than this is required though. I added this so far:
>
>
>
> diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
>
> index 6776242740..262db927cd 100644
>
> --- a/meta/classes/base.bbclass
>
> +++ b/meta/classes/base.bbclass
>
> @@ -75,6 +75,7 @@ BASE_DEFAULT_DEPS = "virtual/${TARGET_PREFIX}gcc
>
> virtual/${TARGET_PREFIX}compile
>
>
>
>  BASEDEPENDS = ""
>
>  BASEDEPENDS_class-target = "${@base_dep_prepend(d)}"
>
> +BASEDEPENDS_class-cross = "${@base_dep_prepend(d)}"
>
>  BASEDEPENDS_class-nativesdk = "${@base_dep_prepend(d)}"
>
>
>
>  DEPENDS_prepend="${BASEDEPENDS} "
>
> diff --git a/meta/conf/distro/include/tclibc-newlib.inc
>
> b/meta/conf/distro/include/tclibc-newlib.inc
>
> index bf89b11288..cb55f3a82c 100644
>
> --- a/meta/conf/distro/include/tclibc-newlib.inc
>
> +++ b/meta/conf/distro/include/tclibc-newlib.inc
>
> @@ -18,13 +18,10 @@ DISTRO_FEATURES_BACKFILL_CONSIDERED += "ldconfig"
>
>  IMAGE_LINGUAS = ""
>
>
>
>  LIBC_DEPENDENCIES = "\
>
> -    newlib-dbg \
>
>      newlib-dev \
>
>      libgloss \
>
>      libgloss-dev \
>
> -    libgloss-dbg \
>
>      libgcc-dev \
>
> -    libgcc-dbg \
>
>      libstdc++-dev \
>
>      libstdc++-staticdev \
>
>      "
>
> @@ -34,6 +31,7 @@ ASSUME_PROVIDED += "virtual/crypt"
>
>  # Its useful to be able to extend newlib, but we dont provide a
>
> native variant of libgloss
>
>  NEWLIB_EXTENDED ?=  "libgloss libgcc"
>
>  BASE_DEFAULT_DEPS_append_class-target = " ${NEWLIB_EXTENDED}"
>
> +BASE_DEFAULT_DEPS_append_class-cross = " ${NEWLIB_EXTENDED}"
>
>
>
>  TARGET_OS = "elf"
>
>  TARGET_OS_arm = "eabi"
>
> @@ -45,3 +43,9 @@ TOOLCHAIN_NEED_CONFIGSITE_CACHE_remove = "zlib ncurses"
>
>  # disable pie security flags by default
>
>  SECURITY_CFLAGS_libc-newlib = "${SECURITY_NOPIE_CFLAGS}"
>
>  SECURITY_LDFLAGS_libc-newlib = ""
>
> +
>
> +EXTRA_OECONF_append_class-target = " LIBS=-lgloss-linux"
>
> +EXTRA_OECONF_append_class-cross = " LIBS=-lgloss-linux"
>
> +# binutils-cross.inc sets INHIBIT_DEFAULT_DEPS = "1" which will cause
>
> BASEDEBPENDS to not
>
> +# include libgloss which causes the autoconf compiler check to fail.
>
> +DEPENDS_append_pn-binutils-cross-arm = " libgloss"
>
>
>
> Adding the dependency to binutils-cross-arm causes circular
>
> dependencies though. I don't know
>
> what's going on here:
>
>
>
> Dependency loop #1 found:
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile
>
> (dependent Tasks ['libgloss_3.3.0.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install
>
> (dependent Tasks ['pseudo_git.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_populate_sysroot',
>
> 'binutils-cross_2.34.bb:do_fetch',
>
> 'texinfo-dummy-native.bb:do_populate_sysroot',
>
> 'gnu-config_git.bb:do_populate_sysroot',
>
> 'bison_3.6.4.bb:do_populate_sysroot',
>
> 'autoconf_2.69.bb:do_populate_sysroot',
>
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure
>
> (dependent Tasks
>
> ['binutils-cross_2.34.bb:do_deploy_source_date_epoch',
>
> 'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',
>
> 'binutils-cross_2.34.bb:do_patch'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
>
> 'gcc-cross_10.1.bb:do_fetch',
>
> 'libtool-native_2.4.6.bb:do_populate_sysroot',
>
> 'mpfr_4.1.0.bb:do_populate_sysroot',
>
> 'gmp_6.2.0.bb:do_populate_sysroot',
>
> 'libmpc_1.1.0.bb:do_populate_sysroot',
>
> 'texinfo-dummy-native.bb:do_populate_sysroot',
>
> 'gnu-config_git.bb:do_populate_sysroot',
>
> 'binutils-cross_2.34.bb:do_populate_sysroot',
>
> 'autoconf_2.69.bb:do_populate_sysroot',
>
> 'automake_1.16.2.bb:do_populate_sysroot',
>
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_configure
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_prepare_recipe_sysroot',
>
> 'gcc-cross_10.1.bb:do_deploy_source_date_epoch',
>
> 'gcc-source_10.1.bb:do_preconfigure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_compile
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_install
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_compile',
>
> 'gcc-cross_10.1.bb:do_gcc_stash_builddir'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_populate_sysroot
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',
>
> 'gcc-cross_10.1.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure
>
> (dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',
>
> 'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',
>
> 'libgloss_3.3.0.bb:do_patch'])
>
>
>
> Dependency loop #2 found:
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile
>
> (dependent Tasks ['libgloss_3.3.0.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install
>
> (dependent Tasks ['pseudo_git.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_populate_sysroot',
>
> 'binutils-cross_2.34.bb:do_fetch',
>
> 'texinfo-dummy-native.bb:do_populate_sysroot',
>
> 'gnu-config_git.bb:do_populate_sysroot',
>
> 'bison_3.6.4.bb:do_populate_sysroot',
>
> 'autoconf_2.69.bb:do_populate_sysroot',
>
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure
>
> (dependent Tasks
>
> ['binutils-cross_2.34.bb:do_deploy_source_date_epoch',
>
> 'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',
>
> 'binutils-cross_2.34.bb:do_patch'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
>
> 'gcc-cross_10.1.bb:do_fetch',
>
> 'libtool-native_2.4.6.bb:do_populate_sysroot',
>
> 'mpfr_4.1.0.bb:do_populate_sysroot',
>
> 'gmp_6.2.0.bb:do_populate_sysroot',
>
> 'libmpc_1.1.0.bb:do_populate_sysroot',
>
> 'texinfo-dummy-native.bb:do_populate_sysroot',
>
> 'gnu-config_git.bb:do_populate_sysroot',
>
> 'binutils-cross_2.34.bb:do_populate_sysroot',
>
> 'autoconf_2.69.bb:do_populate_sysroot',
>
> 'automake_1.16.2.bb:do_populate_sysroot',
>
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_configure
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_prepare_recipe_sysroot',
>
> 'gcc-cross_10.1.bb:do_deploy_source_date_epoch',
>
> 'gcc-source_10.1.bb:do_preconfigure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_compile
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_install
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_compile',
>
> 'gcc-cross_10.1.bb:do_gcc_stash_builddir'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_populate_sysroot
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_populate_sysroot',
>
> 'pseudo_git.bb:do_populate_sysroot', 'newlib_3.3.0.bb:do_fetch'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_configure
>
> (dependent Tasks ['newlib_3.3.0.bb:do_deploy_source_date_epoch',
>
> 'newlib_3.3.0.bb:do_prepare_recipe_sysroot',
>
> 'newlib_3.3.0.bb:do_patch'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_compile
>
> (dependent Tasks ['newlib_3.3.0.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_install
>
> (dependent Tasks ['newlib_3.3.0.bb:do_compile',
>
> 'pseudo_git.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_populate_sysroot
>
> (dependent Tasks ['newlib_3.3.0.bb:do_install',
>
> 'binutils-cross_2.34.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',
>
> 'gcc-cross_10.1.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure
>
> (dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',
>
> 'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',
>
> 'libgloss_3.3.0.bb:do_patch'])
>
>
>
> Dependency loop #3 found:
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile
>
> (dependent Tasks ['libgloss_3.3.0.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install
>
> (dependent Tasks ['pseudo_git.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_populate_sysroot',
>
> 'binutils-cross_2.34.bb:do_fetch',
>
> 'texinfo-dummy-native.bb:do_populate_sysroot',
>
> 'gnu-config_git.bb:do_populate_sysroot',
>
> 'bison_3.6.4.bb:do_populate_sysroot',
>
> 'autoconf_2.69.bb:do_populate_sysroot',
>
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure
>
> (dependent Tasks
>
> ['binutils-cross_2.34.bb:do_deploy_source_date_epoch',
>
> 'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',
>
> 'binutils-cross_2.34.bb:do_patch'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
>
> 'gcc-cross_10.1.bb:do_fetch',
>
> 'libtool-native_2.4.6.bb:do_populate_sysroot',
>
> 'mpfr_4.1.0.bb:do_populate_sysroot',
>
> 'gmp_6.2.0.bb:do_populate_sysroot',
>
> 'libmpc_1.1.0.bb:do_populate_sysroot',
>
> 'texinfo-dummy-native.bb:do_populate_sysroot',
>
> 'gnu-config_git.bb:do_populate_sysroot',
>
> 'binutils-cross_2.34.bb:do_populate_sysroot',
>
> 'autoconf_2.69.bb:do_populate_sysroot',
>
> 'automake_1.16.2.bb:do_populate_sysroot',
>
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_configure
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_prepare_recipe_sysroot',
>
> 'gcc-cross_10.1.bb:do_deploy_source_date_epoch',
>
> 'gcc-source_10.1.bb:do_preconfigure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_compile
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_gcc_stash_builddir
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_install
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_compile',
>
> 'gcc-cross_10.1.bb:do_gcc_stash_builddir'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_populate_sysroot
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',
>
> 'gcc-cross_10.1.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure
>
> (dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',
>
> 'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',
>
> 'libgloss_3.3.0.bb:do_patch'])
>
>
>
> Dependency loop #4 found:
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile
>
> (dependent Tasks ['libgloss_3.3.0.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install
>
> (dependent Tasks ['pseudo_git.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_populate_sysroot',
>
> 'binutils-cross_2.34.bb:do_fetch',
>
> 'texinfo-dummy-native.bb:do_populate_sysroot',
>
> 'gnu-config_git.bb:do_populate_sysroot',
>
> 'bison_3.6.4.bb:do_populate_sysroot',
>
> 'autoconf_2.69.bb:do_populate_sysroot',
>
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure
>
> (dependent Tasks
>
> ['binutils-cross_2.34.bb:do_deploy_source_date_epoch',
>
> 'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',
>
> 'binutils-cross_2.34.bb:do_patch'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
>
> 'gcc-cross_10.1.bb:do_fetch',
>
> 'libtool-native_2.4.6.bb:do_populate_sysroot',
>
> 'mpfr_4.1.0.bb:do_populate_sysroot',
>
> 'gmp_6.2.0.bb:do_populate_sysroot',
>
> 'libmpc_1.1.0.bb:do_populate_sysroot',
>
> 'texinfo-dummy-native.bb:do_populate_sysroot',
>
> 'gnu-config_git.bb:do_populate_sysroot',
>
> 'binutils-cross_2.34.bb:do_populate_sysroot',
>
> 'autoconf_2.69.bb:do_populate_sysroot',
>
> 'automake_1.16.2.bb:do_populate_sysroot',
>
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_configure
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_prepare_recipe_sysroot',
>
> 'gcc-cross_10.1.bb:do_deploy_source_date_epoch',
>
> 'gcc-source_10.1.bb:do_preconfigure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_compile
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_gcc_stash_builddir
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_install
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_compile',
>
> 'gcc-cross_10.1.bb:do_gcc_stash_builddir'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/gcc/gcc-cross_10.1.bb:do_populate_sysroot
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['gcc-cross_10.1.bb:do_populate_sysroot',
>
> 'pseudo_git.bb:do_populate_sysroot', 'newlib_3.3.0.bb:do_fetch'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_configure
>
> (dependent Tasks ['newlib_3.3.0.bb:do_deploy_source_date_epoch',
>
> 'newlib_3.3.0.bb:do_prepare_recipe_sysroot',
>
> 'newlib_3.3.0.bb:do_patch'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_compile
>
> (dependent Tasks ['newlib_3.3.0.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_install
>
> (dependent Tasks ['newlib_3.3.0.bb:do_compile',
>
> 'pseudo_git.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_populate_sysroot
>
> (dependent Tasks ['newlib_3.3.0.bb:do_install',
>
> 'binutils-cross_2.34.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',
>
> 'gcc-cross_10.1.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure
>
> (dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',
>
> 'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',
>
> 'libgloss_3.3.0.bb:do_patch'])
>
>
>
> Dependency loop #5 found:
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_compile
>
> (dependent Tasks ['libgloss_3.3.0.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_install
>
> (dependent Tasks ['pseudo_git.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_populate_sysroot',
>
> 'binutils-cross_2.34.bb:do_fetch',
>
> 'texinfo-dummy-native.bb:do_populate_sysroot',
>
> 'gnu-config_git.bb:do_populate_sysroot',
>
> 'bison_3.6.4.bb:do_populate_sysroot',
>
> 'autoconf_2.69.bb:do_populate_sysroot',
>
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure
>
> (dependent Tasks
>
> ['binutils-cross_2.34.bb:do_deploy_source_date_epoch',
>
> 'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',
>
> 'binutils-cross_2.34.bb:do_patch'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/newlib_3.3.0.bb:do_populate_sysroot
>
> (dependent Tasks ['newlib_3.3.0.bb:do_install',
>
> 'binutils-cross_2.34.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['newlib_3.3.0.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_fetch', 'pseudo_git.bb:do_populate_sysroot',
>
> 'gcc-cross_10.1.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_configure
>
> (dependent Tasks ['libgloss_3.3.0.bb:do_deploy_source_date_epoch',
>
> 'libgloss_3.3.0.bb:do_prepare_recipe_sysroot',
>
> 'libgloss_3.3.0.bb:do_patch'])
>
>
>
> Dependency loop #6 found:
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-core/newlib/libgloss_3.3.0.bb:do_populate_sysroot
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_install'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_prepare_recipe_sysroot
>
> (dependent Tasks ['flex_2.6.4.bb:do_populate_sysroot',
>
> 'libgloss_3.3.0.bb:do_populate_sysroot',
>
> 'binutils-cross_2.34.bb:do_fetch',
>
> 'texinfo-dummy-native.bb:do_populate_sysroot',
>
> 'gnu-config_git.bb:do_populate_sysroot',
>
> 'bison_3.6.4.bb:do_populate_sysroot',
>
> 'autoconf_2.69.bb:do_populate_sysroot',
>
> 'zlib_1.2.11.bb:do_populate_sysroot'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_configure
>
> (dependent Tasks
>
> ['binutils-cross_2.34.bb:do_deploy_source_date_epoch',
>
> 'binutils-cross_2.34.bb:do_prepare_recipe_sysroot',
>
> 'binutils-cross_2.34.bb:do_patch'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_compile
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_configure'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_install
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_compile'])
>
>   Task mc:crmu:/home/jon/work/yocto/stingray2/poky/build/../meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot
>
> (dependent Tasks ['binutils-cross_2.34.bb:do_install'])
>
>
>
>
>
> 
>
>

[-- Attachment #2: Type: text/html, Size: 41147 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [poky] TCLIBC with newlib
  2020-08-12 21:00         ` Tim Orling
@ 2020-08-13  0:46           ` Jonathan Richardson
  2020-08-13  0:48             ` Tim Orling
  0 siblings, 1 reply; 12+ messages in thread
From: Jonathan Richardson @ 2020-08-13  0:46 UTC (permalink / raw)
  To: Tim Orling; +Cc: Alejandro Hernandez Samaniego, Khem Raj, poky

On Wed, Aug 12, 2020 at 2:00 PM Tim Orling <ticotimo@gmail.com> wrote:
>
> Did you look at meta-zephyr?
> http://git.yoctoproject.org/cgit/cgit.cgi/meta-zephyr/
>

Hi Tim. Yes I did. We're using the zephyr classes but we're on a later
version that requires use of a bunch of python tools. Adding the
additional dependencies exposed the problem.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [poky] TCLIBC with newlib
  2020-08-13  0:46           ` Jonathan Richardson
@ 2020-08-13  0:48             ` Tim Orling
  2020-08-13  1:16               ` Jonathan Richardson
  0 siblings, 1 reply; 12+ messages in thread
From: Tim Orling @ 2020-08-13  0:48 UTC (permalink / raw)
  To: Jonathan Richardson; +Cc: Alejandro Hernandez Samaniego, Khem Raj, poky

[-- Attachment #1: Type: text/plain, Size: 598 bytes --]

Can we see if we can bring your changes to the meta-zephyr layer for the
benefit of everyone?

On Wed, Aug 12, 2020 at 5:46 PM Jonathan Richardson <
jonathan.richardson@broadcom.com> wrote:

> On Wed, Aug 12, 2020 at 2:00 PM Tim Orling <ticotimo@gmail.com> wrote:
>
> >
>
> > Did you look at meta-zephyr?
>
> > http://git.yoctoproject.org/cgit/cgit.cgi/meta-zephyr/
>
> >
>
>
>
> Hi Tim. Yes I did. We're using the zephyr classes but we're on a later
>
> version that requires use of a bunch of python tools. Adding the
>
> additional dependencies exposed the problem.
>
>

[-- Attachment #2: Type: text/html, Size: 1078 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [poky] TCLIBC with newlib
  2020-08-12 20:47         ` Khem Raj
@ 2020-08-13  0:57           ` Jonathan Richardson
  0 siblings, 0 replies; 12+ messages in thread
From: Jonathan Richardson @ 2020-08-13  0:57 UTC (permalink / raw)
  To: Khem Raj; +Cc: Alejandro Hernandez Samaniego, poky

On Wed, Aug 12, 2020 at 1:48 PM Khem Raj <raj.khem@gmail.com> wrote:
>
> On Wed, Aug 12, 2020 at 12:03 PM Jonathan Richardson
> <jonathan.richardson@broadcom.com> wrote:
> >
> > Hi Alejandro,
> >
> >
> >
> > Thanks for your feedback. I narrowed it down. It builds when building simple code that uses a makefile to compile some MCU code running on a cortex-m0. Now we’re compiling zephyr OS for a cortex M0-plus. The toolchain is a bit more complicated because of all the x86 native build dependencies.
> >
> >
> >
> > Ignoring that for now I created a simple helloworld recipe with an empty main compiled with autotools (attached). The problems arise when autotools pulls in libtool-cross. If you switch to a makefile instead of using autotools then libtool-cross doesn’t get pulled in and it builds fine. I think the toolchain should be buildable when using autotools class and newlib.
> >
> >
>
> I think its a usecase which perhaps is not yet supported. I would
> suggest to open a tracker ticket in yocto bugzilla for this, since it
> won't be a one liner to fix it

Ok thanks Richard. I'll do that. In my example I didn't use libtool
but most autoconf configs would and therefore it would need
libtool-cross. Since my attempts to add the proper flags to the tools
caused circular dependencies it's not a proper solution. I'll look
into it a bit more and see if I can come up with something. Having
this support would be useful.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [poky] TCLIBC with newlib
  2020-08-13  0:48             ` Tim Orling
@ 2020-08-13  1:16               ` Jonathan Richardson
  0 siblings, 0 replies; 12+ messages in thread
From: Jonathan Richardson @ 2020-08-13  1:16 UTC (permalink / raw)
  To: Tim Orling; +Cc: Alejandro Hernandez Samaniego, Khem Raj, poky

On Wed, Aug 12, 2020 at 5:48 PM Tim Orling <ticotimo@gmail.com> wrote:
>
> Can we see if we can bring your changes to the meta-zephyr layer for the benefit of everyone?
>

Sure, I'll upstream it once these toolchain problems are worked out
and it's cleaned up more.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-08-13  1:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-07  0:22 TCLIBC with newlib Jonathan Richardson
2020-08-07  4:58 ` [poky] " Khem Raj
2020-08-07 23:26   ` Jonathan Richardson
2020-08-11  5:52     ` alhe
2020-08-12 19:03       ` Jonathan Richardson
2020-08-12 20:47         ` Khem Raj
2020-08-13  0:57           ` Jonathan Richardson
2020-08-12 20:53         ` Richard Purdie
2020-08-12 21:00         ` Tim Orling
2020-08-13  0:46           ` Jonathan Richardson
2020-08-13  0:48             ` Tim Orling
2020-08-13  1:16               ` Jonathan Richardson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.