public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrea 'Fyre Wyzard' Bocci <fwyzard@inwind.it>
To: "Tamas Nagy" <nagytam@web.de>,<gcc-help@gcc.gnu.org>
Subject: Re: Cross-compiling
Date: Fri, 16 Nov 2001 15:02:00 -0000	[thread overview]
Message-ID: <5.1.0.14.0.20011124174135.00a3b210@popmail.inwind.it> (raw)
In-Reply-To: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAWJVBon0D1RG D/gAQYJErt8KAAAAQAAAA1bv9CcLIbEetA/SPF24/aAEAAAAA@web.de>

At 17.18 24/11/01 (GMT +0100), Tamas Nagy wrote:

>I'd like to try the cross-compiling option in GCC, which sounds very
>impressive. The host platform would be x86, and the target platforms are
>IBM AIX, and Sun Solaris. The source code is a simple ANSI-C code,
>without any platform specific thing.
>
>Is there any documentation, how-to or even experience with such a
>scenario?

Two good places to look for imformation are:
GCC installation help: http://gcc.gnu.org/install/
CrossGCC FAQ: http://www.objsw.com/CrossGCC/

Actually, the FAQ is a bit old - the build process is still the same, 
though you should use the latest version available of the packages.
Here's what you'll need:
newlib-1.9.0
binutils-2.11.2
gcc-3.02
You can get these from http://www.gnu.org and http://sources.redhat.com.

I'd give a look to a recen post, also: 
http://gcc.gnu.org/ml/gcc-help/2001-11/msg00221.html.

Actually, compiling for those UNIX systems, I don't know wether or not you 
need newlib. I think you should be fine with the system's libc, but then I 
don't know about telling your cross-compiler about those systems library 
headers.
Somebody with more experience might give more help on this.

>Is any Linux distribution contains packages or precompiled
>binaries?

I don't know of any precompiled binaries for gcc cross-compiler.

HTH
fwyzard


       reply	other threads:[~2001-11-24 16:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAWJVBon0D1RG D/gAQYJErt8KAAAAQAAAA1bv9CcLIbEetA/SPF24/aAEAAAAA@web.de>
2001-11-16 15:02 ` Andrea 'Fyre Wyzard' Bocci [this message]
2004-04-27  9:30 Cross-Compiling Michael Becker
2004-04-27 13:32 ` Cross-Compiling Ian Lance Taylor
  -- strict thread matches above, loose matches on Subject: below --
2001-11-16 14:58 Cross-compiling Tamas Nagy
2000-03-14  6:31 cross-compiling Dragos Badea
2000-03-14 13:34 ` cross-compiling Martin v. Loewis
2000-04-01  0:00   ` cross-compiling Martin v. Loewis
2000-04-01  0:00 ` cross-compiling Dragos Badea

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=5.1.0.14.0.20011124174135.00a3b210@popmail.inwind.it \
    --to=fwyzard@inwind.it \
    --cc=gcc-help@gcc.gnu.org \
    --cc=nagytam@web.de \
    /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).