From: burningthumb <burningthumb@gmail.com>
To: Jonathan Wakely <jwakely.gcc@gmail.com>
Cc: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Subject: Re: Cross compile helloworld.c
Date: Wed, 26 Jun 2013 17:10:00 -0000 [thread overview]
Message-ID: <C148B2FF-A95F-4DCB-B96E-4772E5919377@gmail.com> (raw)
In-Reply-To: <CAH6eHdQXAQ-8FRJJNOB_igbLDWA+E8F8h6GOBB5Jt2syvwnNvw@mail.gmail.com>
I though Ubuntu 13 came with the cross compiler already and I did not need to go through the "joy" of building it. Perhaps I was mistaken.
On Jun 26, 2013, at 9:03 AM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> On 26 June 2013 16:57, 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?
>
> You need a cross compiler. The target is fixed when GCC is built, so
> you cannot use a GCC built for the intel target to build binaries for
> the powerpc target.
next prev parent reply other threads:[~2013-06-26 16:25 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 [this message]
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
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=C148B2FF-A95F-4DCB-B96E-4772E5919377@gmail.com \
--to=burningthumb@gmail.com \
--cc=gcc-help@gcc.gnu.org \
--cc=jwakely.gcc@gmail.com \
/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).