public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Ángel González" <keisial@gmail.com>
To: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Cc: Marc Glisse <marc.glisse@inria.fr>,
	 Burning Thumb <burningthumb@gmail.com>
Subject: Re: Cross compile helloworld.c
Date: Thu, 27 Jun 2013 23:19:00 -0000	[thread overview]
Message-ID: <51CB4740.7040701@gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.10.1306261818210.4104@laptop-mg.saclay.inria.fr>

On 26/06/13 18:19, Marc Glisse wrote:
> On Wed, 26 Jun 2013, 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.
>
> Doesn't Ubuntu have a crossbuild-essential-powerpc package?

It has:  http://packages.ubuntu.com/raring/crossbuild-essential-powerpc

Burning Thumb, install that package. Then you will be able to compile your
hello world with:
  powerpc-linux-gnu-gcc helloworld.c -o helloworldppc

(ie. replace "gcc" with "powerpc-linux-gnu-gcc" in normal instructions
for compiling a program)

      reply	other threads:[~2013-06-26 19:52 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
2013-06-26 16:33 ` Marc Glisse
2013-06-27 23:19   ` Ángel González [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=51CB4740.7040701@gmail.com \
    --to=keisial@gmail.com \
    --cc=burningthumb@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=marc.glisse@inria.fr \
    /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).