This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cross-compiling


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]