From: Andrew Haley <aph@redhat.com>
To: Burning Thumb <burningthumb@gmail.com>
Cc: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Subject: Re: Cross compile helloworld.c
Date: Wed, 26 Jun 2013 16:25:00 -0000 [thread overview]
Message-ID: <51CB127E.8060208@redhat.com> (raw)
In-Reply-To: <00D81422-8185-4281-AC4D-5ABF82A35526@gmail.com>
On 06/26/2013 04:57 PM, Burning Thumb wrote:
> You know I thought this would be so easy, and maybe it is...
>
> I'm running Ubuntu 13.04 on an intel machine and I want to cross compile helloworld.c so that the resulting binary will execute on Ubuntu on a powerpc machine.
>
> So something simple like:
> gcc helloworld.c --target powerpc-linux -o helloworldppc
>
> But the answer seems to always come back how to cross compile gcc itself...
>
> Anyone have a one liners on how to simply cross compile helloworld.c for ubuntu ppc?
Sure. Of course, you're going to need an Ubuntu x86 -> powerpc cross
compiler. Before we go through the steps of building one, please make
sure that you can't get a packaged cross-compiler from someone else.
Once you have done that, we can show you how to build a
cross-compiler. But be warned: it takes a fair bit of C and operating
system experience, and you'll need to allocate a fair bit of time.
Andrew.
next prev parent reply other threads:[~2013-06-26 16:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-26 16:10 Burning Thumb
2013-06-26 16:19 ` Jonathan Wakely
2013-06-26 17:10 ` burningthumb
2013-06-26 17:35 ` Jonathan Wakely
2013-06-26 16:25 ` Andrew Haley [this message]
2013-06-26 16:33 ` Marc Glisse
2013-06-27 23:19 ` Ángel González
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=51CB127E.8060208@redhat.com \
--to=aph@redhat.com \
--cc=burningthumb@gmail.com \
--cc=gcc-help@gcc.gnu.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).