Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Phil Blundell <pb@pbcl.net>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: gcc-cross-kernel problems
Date: Mon, 27 Jun 2011 10:42:54 +0100	[thread overview]
Message-ID: <1309167774.21613.264.camel@phil-desktop> (raw)
In-Reply-To: <48356C52-61A1-42BE-92AA-704FB136D8A3@dominion.thruhere.net>

On Mon, 2011-06-27 at 11:32 +0200, Koen Kooi wrote:
> Op 26 jun 2011, om 17:05 heeft Khem Raj het volgende geschreven:
> 
> > On 06/25/2011 07:30 PM, Khem Raj wrote:
> >> so in you kernel recipe somewhere patch the below code
> >> 
> >> PATH_prepend = "${STAGING_BINDIR_TOOLCHAIN}.gcc-cross-kernel:"
> > 
> > I guess it has 4.2.1 in the path for you as I see so you might need
> > 
> > PATH_prepend = "${STAGING_BINDIR_TOOLCHAIN}.gcc-cross-kernel-4.2.1:"
> 
> I did it a bit differently and symlinked it into the regular toolchain bin and I not get an 'as' error about '-EL' not being a valid option.It looks like gcc is calling an unprefixed 'as'. Is this due to gcc-cross-kernel being bitrotted, the recipe missing patches or something else?

That usually means that the cross as hasn't been installed/symlinked
into the place where gcc expects to find it.  The way the gcc driver
locates the assembler is by searching for "as" in various different
directories.  In particular, despite what you might expect it doesn't
ever look for $TARGET_SYS-as in $bindir or anywhere else.

Usually it will expect to find as in
$libexecdir/gcc/$TARGET_SYS/4.2.1/as or some such path.  The symlinks in
that directory are created as part of the gcc installation process.  You
can strace gcc to find out where it's actually looking.

p.





  reply	other threads:[~2011-06-27  9:46 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
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 [this message]
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=1309167774.21613.264.camel@phil-desktop \
    --to=pb@pbcl.net \
    --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