gcc cross-compiler: creating AIX/PowerPC executables

gcc cross-compiler: creating AIX/PowerPC executables

Post by Peter Prin » Tue, 07 Mar 2000 04:00:00



Hi there !

I want to produce AIX (Power PC) executable C-code on my
Linux (Red Hat 6.1) Machine. As far as I know the gcc in this
distribution is not able to produce  AIX (Power PC) code!

Is there any binary version of gcc (for Linux/i386) which is
able to produce AIX (Power PC) executables?
Any RPMs ?
Any upgrades for RedHat 6.1 ?

Greetings

  Peter

--
____

Peter Prinz

Siemens AG Austria

 
 
 

gcc cross-compiler: creating AIX/PowerPC executables

Post by nightstalke » Tue, 07 Mar 2000 04:00:00



> Hi there !

> I want to produce AIX (Power PC) executable C-code on my
> Linux (Red Hat 6.1) Machine. As far as I know the gcc in this
> distribution is not able to produce  AIX (Power PC) code!

> Is there any binary version of gcc (for Linux/i386) which is
> able to produce AIX (Power PC) executables?
> Any RPMs ?
> Any upgrades for RedHat 6.1 ?

> Greetings

>   Peter

> --
> ____

> Peter Prinz

> Siemens AG Austria


you will have a hard time finding a linux compiler that also builds
AIX binaries.

why not edit the files on your linux station, but compiling them on
the AIX ?

 
 
 

gcc cross-compiler: creating AIX/PowerPC executables

Post by Markus Pietre » Wed, 08 Mar 2000 04:00:00



> you will have a hard time finding a linux compiler that also builds
> AIX binaries.

Of course you can build yourself a gcc cross-compiler/assembler/linker

The necessary steps are described in gcc-2.7.2.3/INSTALL

But this is difficult and you have to worry about a lot of things (
e.g. correct include file headers).

The best way is always to build it on target platform.

--
Markus Pietrek

Tel: +49-761-473099
Fax: +49-761-441063

Web: http://www.concept.de

Concept Engineering GmbH
Burkheimer Strasse 10
D-79111 Freiburg/Germany

 
 
 

1. how to build GCC 2.95.3 PowerPc cross compiler

    I am trying to build a GCC 2.95.3 cross compiler that runs on X86
and produces PowerPC output. I am building on an Intel Pentium II
running Red Hat 7.1 and have binutils 2.10.91.0.2 already compiled and
installed on a non standard path. I have a bldenv structure similar to
this:

/project/bldenv/x86/binutils/2.10/src
                                              /obj
                                              /install
/project/bldenv/ppc/bosdeps/suse/7.1/usr
                                                     /lib
                     /x86/bosdeps/redhat/7.1/usr
                                                        /lib
/project/bldenv/x86/gcc/2.95.3/x86/src
                                                   /obj
                                                   /install
                                            /ppc/src
                                                  /obj
                                                  /install
    I also have GCC 2.96.81 and binutils 2.10.91.02-3 (came with RedHat)
installed locally on the build machine.

    If someone has specific instructions that would be great, but I
would really like to understand the process of building a cross
compiler.

    The compiler seems to use a mixture of X86 bos headers and lib and
binutils first and then switches to using PowerPC bos headers and lib
and binutils. What controls where binutils and bos headers and libs come
from. I have tried many combinations of setting the PATH variables,
--with-headers , --with-libs, --with-as, and --with-ld config options. I
have also copied PowerPC headers and libs and binutils into
ggc_install_dir/powerpc-ibm-linux/bin or lib or include sub
directories.  All of this allows me to build only so far and then it
either finds the wrong tool or can't find some lib or header.

    Any help would be greatly appreciated.

Regards, Richard

2. Vestiges of Linux Past

3. Cross-compiler for powerpc-motorola-vxworks

4. Which of these Ethernet Cards?

5. GNU PowerPC Cross-Compiler on Linux

6. Problems on Installing tcp_wrappers on Solaris 7

7. gcc: 'c++ compiler can't create executables'

8. apache 1.3.4 / Solaris 2.5.1 Makefile problem

9. GCC on Solaris7: "C compiler cannot create executables"

10. gcc compiling problem: configure: error: installation or configuration problem: C compiler cannot create executables.

11. "invalid option" error while building gcc as a cross-compiler

12. need gcc --target type for multia/alpha cross-compiler

13. Gcc Cross-Compiler Compile Troubles ...