Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: gcc-cross-kernel problems
Date: Sat, 25 Jun 2011 19:30:41 -0700	[thread overview]
Message-ID: <4E0699D1.9090308@gmail.com> (raw)
In-Reply-To: <CFB391EB-D84F-4616-887D-DAFAB036EA42@dominion.thruhere.net>

On 6/25/2011 1:38 PM, Koen Kooi wrote:
> Hi,
>
> I was spending some spare cycles on
> https://github.com/koenkooi/meta-archos and wanted to build the 2.6.22
> vendor kernel first before trying to the 3.0rc working and I need to use
> csl 2007q3 as gcc-cross-kernel due to bugs in the kernel.
>
> I imported the 2008q1 recipes from OE-core, then changed the SRC_URI to
> have the patches from the 2007q3 recipe in OE classic. It uses the .inc
> files from OE-core. It builds and gives me:
>
> koen@dominion:/OE/tentacle/build/tmp-angstrom_2010_x-eglibc/work/armv7a-angstrom-linux-gnueabi/gcc-cross-kernel-4.2.1-4.2.1+csl-arm-2007q3-53-r0/image$
> find . | grep bin
> ./OE/tentacle/build/tmp-angstrom_2010_x-eglibc/sysroots/x86_64-linux/usr/bin
>
> ./OE/tentacle/build/tmp-angstrom_2010_x-eglibc/sysroots/x86_64-linux/usr/bin/armv7a-angstrom-linux-gnueabi.gcc-cross-kernel-4.2.1
>
> ./OE/tentacle/build/tmp-angstrom_2010_x-eglibc/sysroots/x86_64-linux/usr/bin/armv7a-angstrom-linux-gnueabi.gcc-cross-kernel-4.2.1/arm-angstrom-linux-gnueabi-gcov
>
> ./OE/tentacle/build/tmp-angstrom_2010_x-eglibc/sysroots/x86_64-linux/usr/bin/armv7a-angstrom-linux-gnueabi.gcc-cross-kernel-4.2.1/arm-angstrom-linux-gnueabi-gccbug
>
> ./OE/tentacle/build/tmp-angstrom_2010_x-eglibc/sysroots/x86_64-linux/usr/bin/arm-angstrom-linux-gnueabi-gcc-4.2.1+csl-arm-2007q3-53
>
>
> But when I do 'MACHINE=archos5 bitbake virtual/kernel -c compile' I get:
>
> | + make -j4 zImage 'CC=ccache
> arm-angstrom-linux-gnueabi-gcc-4.2.1+csl-arm-2007q3-53
> -mno-thumb-interwork -mno-thumb
> --sysroot=/OE/tentacle/build/tmp-angstrom_2010_x-eglibc/sysroots/archos5' 'LD=arm-angstrom-linux-gnueabi-ld
> --sysroot=/OE/tentacle/build/tmp-angstrom_2010_x-eglibc/sysroots/archos5
> --sysroot=/OE/tentacle/build/tmp-angstrom_2010_x-eglibc/sysroots/archos5'
> | arm-angstrom-linux-gnueabi-gcc-4.2.1+csl-arm-2007q3-53: No such file
> or directory
>
> And I can't find arm-angstrom-linux-gnueabi-gcc-4.2.1+csl-arm-2007q3-53
> in sysroots. When looking at WORKDIR for the gcc:
>
> koen@dominion:/OE/tentacle/build/tmp-angstrom_2010_x-eglibc/work/armv7a-angstrom-linux-gnueabi/gcc-cross-kernel-4.2.1-4.2.1+csl-arm-2007q3-53-r0$
> find sysroot-destdir/ | grep bin
> sysroot-destdir/OE/tentacle/build/tmp-angstrom_2010_x-eglibc/sysroots/x86_64-linux/usr/bin
>
> sysroot-destdir/OE/tentacle/build/tmp-angstrom_2010_x-eglibc/sysroots/x86_64-linux/usr/bin/armv7a-angstrom-linux-gnueabi.gcc-cross-kernel-4.2.1
>
> sysroot-destdir/OE/tentacle/build/tmp-angstrom_2010_x-eglibc/sysroots/x86_64-linux/usr/bin/armv7a-angstrom-linux-gnueabi.gcc-cross-kernel-4.2.1/arm-angstrom-linux-gnueabi-gcov
>
> sysroot-destdir/OE/tentacle/build/tmp-angstrom_2010_x-eglibc/sysroots/x86_64-linux/usr/bin/armv7a-angstrom-linux-gnueabi.gcc-cross-kernel-4.2.1/arm-angstrom-linux-gnueabi-gccbug
>
>
> So that's missing the
> arm-angstrom-linux-gnueabi-gcc-4.2.1+csl-arm-2007q3-53 that's actually
> needed.

in oe-core we munge CROSS_TARGET_SYS_DIR and append PN to it, this 
should be considered in gcc-cross-kernel.inc

you need couple of changes

change the install command like below in gcc-cross-kernel.inc

install -m 0755 xgcc 
${D}${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_PREFIX}gcc-${PV}

secondly you need to inform kernel recipe of this new location of toolchain

so in you kernel recipe somewhere patch the below code

PATH_prepend = "${STAGING_BINDIR_TOOLCHAIN}.gcc-cross-kernel:"

Thanks

-Khem



  reply	other threads:[~2011-06-26  2:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-25 20:38 gcc-cross-kernel problems Koen Kooi
2011-06-26  2:30 ` Khem Raj [this message]
2011-06-26  9:18   ` Khem Raj
2011-06-26 10:16     ` Koen Kooi
2011-06-26 15:05   ` Khem Raj
2011-06-27  9:32     ` Koen Kooi
2011-06-27  9:42       ` Phil Blundell
2011-06-27 10:07         ` Koen Kooi
2011-06-27 10:20           ` Phil Blundell
2011-06-27 15:35             ` Koen Kooi
2011-06-27 20:15             ` Khem Raj
2011-06-27 20:41               ` Phil Blundell
2011-06-27 21:09                 ` Khem Raj

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=4E0699D1.9090308@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=openembedded-core@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