Cross compiling gcc from i386-linux to alpha-dec-osf4

Gerrit Bruchhäuser gbruchhaeuser@orga-systems.com
Mon Sep 1 11:08:00 GMT 2003


Hello,

I am trying to compile gcc as cross-compiler which should run on a
i386-linux box and compile/link objects for alpha-dec-osf4.

/usr/alpha-dec-osf4/
    include/
    lib/

These directories contain all native include files as well as all
the libraries from the OSF system.


/usr/src/packages/SOURCE/gcc-3.3.1/
    Contains the gcc sources


I did the follwowing steps then:
    cd /usr/src/packages/SOURCE/
    mkdir objdir
    cd objdir
    ../gcc-3.3.1/configure --prefix=/usr/local/gcc/alpha-dec-osf4 
--program-suffix=-alpha-dec-osf4 --srcdir=../gcc-3.3.1
    make


But 'gcc' was not been created.
I tried 'make gcc' then and got the following errors:

---
gbruchha:/usr/src/packages/SOURCES/objdir/gcc # make gcc
gcc -g    ../../gcc-3.3.1/gcc/gcc.c   -o gcc
../../gcc-3.3.1/gcc/gcc.c:73: config.h: Datei oder Verzeichnis nicht 
gefunden
In file included from ../../gcc-3.3.1/gcc/gcc.c:74:
../../gcc-3.3.1/gcc/system.h:105: safe-ctype.h: Datei oder Verzeichnis 
nicht gefunden
In file included from ../../gcc-3.3.1/gcc/gcc.c:74:
../../gcc-3.3.1/gcc/system.h:491: libiberty.h: Datei oder Verzeichnis 
nicht gefunden
../../gcc-3.3.1/gcc/gcc.c:144: configargs.h: Datei oder Verzeichnis 
nicht gefunden
../../gcc-3.3.1/gcc/gcc.c:740: multilib.h: Datei oder Verzeichnis nicht 
gefunden
../../gcc-3.3.1/gcc/gcc.c:866: specs.h: Datei oder Verzeichnis nicht 
gefunden
make: *** [gcc] Fehler 1
---


What did I do wrong way?
Many thanks in advance!

Gerrit



More information about the Gcc-help mailing list