All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jack Mitchell <ml@communistcode.co.uk>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: ld problems with relocated toolchain
Date: Tue, 25 Sep 2012 14:58:43 +0100	[thread overview]
Message-ID: <5061B893.5030705@communistcode.co.uk> (raw)
In-Reply-To: <CAMKF1sqWTFmvWq8PbFohzWZ8-fPn1BMREdb7yryDJEsZf9U8SQ@mail.gmail.com>

On 25/09/12 14:41, Khem Raj wrote:
> On Tue, Sep 25, 2012 at 1:29 AM, Jack Mitchell <ml@communistcode.co.uk> wrote:
>> Ok, I passed the compiler and the linker the sysroot flag and it compiled
>> successfully. Thank you everyone for all your help and I'll brush up on my
>> compiling/linking knowledge!
> Hmm if you installed toolchain in different prefix then it was built
> on and then experience
>
> <cross>-gcc hello.c not building thats a problem we have to fix in
> relocatable SDK install or wherever
> wasnt that the case ?

I think the issue was that I am using Eclipse to manage my build and it 
was over writing the GCC parameters.

I believe it was calling arm-*-*-* directly and not using ${CC} if that 
makes sense? Therefore it didn't know where to find the libraries and 
includes. Passing the --sysroot option to the compiler and the linker 
now lets it build.

Eclipse is still having issues looking in the right directory for 
includes and I don't know what is causing that - but it compiles and 
links fine now.

If I can provide more information then I would be happy to. I think I 
agree and I'm still not fully convinced that it's completely fixed.

Cheers,

-- 

   Jack Mitchell (jack@embed.me.uk)
   Embedded Systems Engineer
   http://www.embed.me.uk

--




      reply	other threads:[~2012-09-25 14:09 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-21 14:04 ld problems with relocated toolchain Jack Mitchell
2012-09-21 14:08 ` Richard Purdie
2012-09-21 14:23   ` Jack Mitchell
2012-09-21 14:27     ` Zhang, Jessica
2012-09-21 14:35       ` Jack Mitchell
2012-09-21 14:52 ` Laurentiu Palcu
2012-09-21 15:17   ` Jack Mitchell
2012-09-24  2:17     ` Khem Raj
2012-09-24  8:37       ` Jack Mitchell
2012-09-24  8:44         ` Laurentiu Palcu
2012-09-24  8:54           ` Jack Mitchell
2012-09-24 15:28             ` Khem Raj
2012-09-25  8:29               ` Jack Mitchell
2012-09-25 13:41                 ` Khem Raj
2012-09-25 13:58                   ` Jack Mitchell [this message]

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=5061B893.5030705@communistcode.co.uk \
    --to=ml@communistcode.co.uk \
    --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 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.