From: Chris Conroy <Chris.Conroy@hillcrestlabs.com>
To: Gary Thomas <gary@mlbassoc.com>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: Prebuilt toolchains
Date: Fri, 13 Nov 2009 13:41:36 -0500 [thread overview]
Message-ID: <1258137696.4913.55.camel@conroy-linux> (raw)
In-Reply-To: <4AFD968E.3050205@mlbassoc.com>
On Fri, 2009-11-13 at 10:25 -0700, Gary Thomas wrote:
> This helped me find the problem - libgcc was required by busybox and
> the default provider for libgcc included gcc-cross.
>
> I ended up with only these [few] changes to get my own toolchain to
> do the job:
>
> #
> # Use prebuilt compiler components
> #
> TOOLCHAIN = "external"
> HOST_SYS = "${TARGET_ARCH}-${TARGET_OS}"
> TARGET_SYS = "${TARGET_ARCH}-${TARGET_OS}"
> ASSUME_PROVIDED += " linux-libc-headers "
> ASSUME_PROVIDED += " virtual/${TARGET_PREFIX}gcc "
> ASSUME_PROVIDED += " virtual/${TARGET_PREFIX}gcc-cross "
> ASSUME_PROVIDED += " virtual/${TARGET_PREFIX}gcc-initial "
> ASSUME_PROVIDED += " virtual/${TARGET_PREFIX}gcc-intermediate "
> ASSUME_PROVIDED += " virtual/${TARGET_PREFIX}binutils "
> ASSUME_PROVIDED += " virtual/${TARGET_PREFIX}libc-for-gcc "
> ASSUME_PROVIDED += " libgcc "
> ASSUME_PROVIDED += " virtual/libc "
> ASSUME_PROVIDED += " virtual/libintl "
> ASSUME_PROVIDED += " virtual/libiconv "
> export TARGET_LDFLAGS = "-L${STAGING_DIR_TARGET}${layout_libdir} \
> -Wl,-rpath-link,${STAGING_DIR_TARGET}${layout_libdir} \
> -Wl,-O1"
>
> The HOST_SYS and TARGET_SYS changes were necessary because my toolchain
> is called 'powerpc-linux-XXX', not 'powerpc-oe-linux-XXX'.
>
> I chose these changes (instead of just your advice) because I was already
> down this path. Sadly, this incantation *did* complete the build, but the
> resulting file system did not import any of the "provided" libraries from
> my external toolchain. Did I miss something that would let the build
> import these libraries?
Yeah, this is the problem with ASSUME_PROVIDED as I see it. It removes
the build system knowledge of these things and basically gives the
responsibility for managing them back to you. Not good.
>
> Finally, in an effort to explore and understand more, I tried your method:
> #
> # Use prebuilt compiler components
> #
> TOOLCHAIN = "external"
> HOST_SYS = "${TARGET_ARCH}-${TARGET_OS}"
> TARGET_SYS = "${TARGET_ARCH}-${TARGET_OS}"
> export TARGET_LDFLAGS = "-L${STAGING_DIR_TARGET}${layout_libdir} \
> -Wl,-rpath-link,${STAGING_DIR_TARGET}${layout_libdir} \
> -Wl,-O1"
> PREFERRED_PROVIDER_linux-libc-headers = "external-toolchain"
> PREFERRED_PROVIDER_glibc-thread-db = "external-toolchain"
> PREFERRED_PROVIDER_libstdc++-dev = "external-toolchain"
> PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc = "external-toolchain"
> PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}g++ = "external-toolchain"
> PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-initial = "external-toolchain"
> PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-intermediate = "external-toolchain"
> PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils = "external-toolchain"
> PREFERRED_PROVIDER_virtual/binutils = "external-toolchain"
> PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-for-gcc = "external-toolchain"
> PREFERRED_PROVIDER_virtual/libc = "external-toolchain"
> PREFERRED_PROVIDER_virtual/libintl = "external-toolchain"
> PREFERRED_PROVIDER_virtual/libiconv = "external-toolchain"
>
> Which led to these errors right away:
> ERROR: Conflicting PREFERRED_PROVIDER entries were found which resulted in an attempt to select multiple providers
> (['/local/Angstrom_BeagleBoard /openembedded/recipes/glibc/glibc_2.6.1.bb',
> '/local/Angstrom_BeagleBoard/openembedded/recipes/meta/external-toolchain.bb']) for runtime dependecy libsegfault
> The entries resulting in this conflict were: ['PREFERRED_PROVIDER_virtual/libc = glibc', 'PREFERRED_PROVIDER_virtual/libintl = external-toolchain']
> ERROR: Conflicting PREFERRED_PROVIDER entries were found which resulted in an attempt to select multiple providers
> (['/local/Angstrom_BeagleBoard/openembedded/recipes/gcc/gcc-cross_4.4.2.bb',
> '/local/Angstrom_BeagleBoard/openembedded/recipes/meta/external-toolchain.bb']) for runtime dependecy libgcc
> The entries resulting in this conflict were: ['PREFERRED_PROVIDER_virtual/powerpc-linux-gcc = gcc-cross', 'PREFERRED_PROVIDER_virtual/libintl = external-toolchain']
>
You may need to edit the RPROVIDES of your toolchain. Here's what mine
looks like:
RPROVIDES = " glibc-dbg glibc catchsegv sln nscd ldd localedef
glibc-utils glibc-dev glibc-locale libsegfault glibc-extra-nss
glibc-thread-db glibc-pcprofile \
libgcc libgcc-dev libstdc++-dev libstdc++"
PACKAGES_DYNAMIC = "glibc-gconv-*"
INHIBIT_DEFAULT_DEPS = "1"
next prev parent reply other threads:[~2009-11-13 18:43 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-11 17:00 Prebuilt toolchains Gary Thomas
2009-11-11 20:39 ` Chris Conroy
2009-11-11 21:07 ` Gary Thomas
2009-11-11 21:29 ` Chris Conroy
2009-11-13 14:06 ` Gary Thomas
2009-11-13 15:57 ` Chris Conroy
2009-11-13 17:25 ` Gary Thomas
2009-11-13 18:41 ` Chris Conroy [this message]
2009-11-13 23:00 ` Gary Thomas
2009-11-16 22:40 ` Gary Thomas
2009-11-17 3:12 ` Mike Turquette
2009-11-17 7:34 ` Koen Kooi
2009-11-18 13:40 ` Gary Thomas
2009-11-18 15:29 ` Gary Thomas
2009-11-18 23:24 ` Gary Thomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1258137696.4913.55.camel@conroy-linux \
--to=chris.conroy@hillcrestlabs.com \
--cc=gary@mlbassoc.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox