how to build gcc 2.95.3 cross compiler

how to build gcc 2.95.3 cross compiler

Post by Richard Zoll » Fri, 21 Jun 2002 02:50:16



    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

 
 
 

how to build gcc 2.95.3 cross compiler

Post by Wolfgang Den » Fri, 21 Jun 2002 09:00:43



>    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

You are wasting your time. Have a look at our ELDK; if you don;t want
to download working binary images, there is also a detailed
description how to rebuild from scratch. See http://www.denx.de/ELDK/

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88   Web: www.denx.de
All these theories, diverse as they are, have two things  in  common:
they explain the observed facts, and they are completeley and utterly
wrong.                       - Terry Pratchett, _The Light Fantastic_

 
 
 

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. WindowManagers in X

3. gcc error while building a linux-x-djgpp cross compiler

4. Compile of 2.0.34 /35

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

6. Dynamic DNS on a local subnet/subdomain - HOW?

7. gcc "make error" when building a linux-x-djgpp cross compiler

8. Need Jaz driver!!! Or the guest.exe for linux

9. building a gcc cross compiler

10. Anyone have experience building gcc as cross compiler?

11. GCC cross compiler build troubles ...

12. egcs Warning while building gcc-2.8.1 cross compiler

13. Anyone Built a GCC Cross-Compiler?