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]

Cross Compiler Host MinGW Target PowerPC


Hello I need Your HELP,

I try to compile a cross compiler.

Host System: PC MinGW
Compiler: gcc.exe (GCC) 3.4.2 (mingw-special)
Target System: powerpc-405-eabi

Configuration: "./configure --prefix=/home/seb/ppc
--target=powerpc-405-eabi"
The configuration works but I get a warning:
*** This configuration is not supported in the following subdirectories:
    target-libmudflap target-libffi target-boehm-gc target-zlib
target-libjava target-libada gnattools target-libgfortran
I think thats not important ??

Compilation: "make"
I got the following errors:
make[4]: Leaving directory `/home/seb/gcc-4.1.1/host-i686-pc-mingw32/gcc'
/home/seb/gcc-4.1.1/host-i686-pc-mingw32/gcc/xgcc
-B/home/seb/gcc-4.1.1/host-i686-pc-mingw32/gcc/
-B/home/seb/ppc/powerpc-405-eabi/bin/
-B/home/seb/ppc/powerpc-405-eabi/lib/ -isystem
/home/seb/ppc/powerpc-405-eabi/include -isystem
/home/seb/ppc/powerpc-405-eabi/sys-include -O2  -O2 -g -O2   -DIN_GCC
-DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include
-specs=ldblspecs -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
-Dinhibit_libc -I. -I -I../.././gcc -I../.././gcc/
-I../.././gcc/../include -I./../intl -I../.././gcc/../libcpp/include
-mrelocatable-lib -mno-eabi -mstrict-align -DL_muldi3 -c
../.././gcc/libgcc2.c -o libgcc/./_muldi3.o
In file included from ../.././gcc/libgcc2.c:35:
./tm.h:5:35: error: config/rs6000/rs6000.h: No such file or directory
./tm.h:6:28: error: config/dbxelf.h: No such file or directory
./tm.h:7:27: error: config/elfos.h: No such file or directory
./tm.h:8:26: error: config/svr4.h: No such file or directory
./tm.h:9:34: error: config/freebsd-spec.h: No such file or directory
./tm.h:10:34: error: config/rs6000/sysv4.h: No such file or directory
./tm.h:11:33: error: config/rs6000/eabi.h: No such file or directory
./tm.h:12:23: error: defaults.h: No such file or directory
In file included from ../.././gcc/libgcc2.c:43:
../.././gcc/libgcc2.h:214:3: error: #error "expand the table"
../.././gcc/libgcc2.c: In function '__mulhi3':
../.././gcc/libgcc2.c:514: error: 'BITS_PER_UNIT' undeclared (first use
in this function)
../.././gcc/libgcc2.c:514: error: (Each undeclared identifier is
reported only once
../.././gcc/libgcc2.c:514: error: for each function it appears in.)
make[3]: *** [libgcc/./_muldi3.o] Error 1
make[3]: Leaving directory `/home/seb/gcc-4.1.1/host-i686-pc-mingw32/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/home/seb/gcc-4.1.1/host-i686-pc-mingw32/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/seb/gcc-4.1.1'
make: *** [all] Error 2

The file: "./gcc/config/rs6000/rs6000.h" exits. But it seams to be in
the wrong directory.
I get the following errors if I copy
the folder "./gcc/config" to "./host-i686-pc-mingw32/gcc/"
and the file "./gcc/defaults.h" to "./host-i686-pc-mingw32/gcc/"
then run "make" again:
make[4]: Leaving directory `/home/seb/gcc-4.1.1/host-i686-pc-mingw32/gcc'
/home/seb/gcc-4.1.1/host-i686-pc-mingw32/gcc/xgcc
-B/home/seb/gcc-4.1.1/host-i686-pc-mingw32/gcc/
-B/home/seb/ppc/powerpc-405-eabi/bin/
-B/home/seb/ppc/powerpc-405-eabi/lib/ -isystem
/home/seb/ppc/powerpc-405-eabi/include -isystem
/home/seb/ppc/powerpc-405-eabi/sys-include -O2  -O2 -g -O2   -DIN_GCC
-DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include
-specs=ldblspecs -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
-Dinhibit_libc -I. -I -I../.././gcc -I../.././gcc/
-I../.././gcc/../include -I./../intl -I../.././gcc/../libcpp/include
-mrelocatable-lib -mno-eabi -mstrict-align -DL_muldi3 -c
../.././gcc/libgcc2.c -o libgcc/./_muldi3.o
xgcc.exe: _spawnvp: No such file or directory
make[3]: *** [libgcc/./_muldi3.o] Error 1
make[3]: Leaving directory `/home/seb/gcc-4.1.1/host-i686-pc-mingw32/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/home/seb/gcc-4.1.1/host-i686-pc-mingw32/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/seb/gcc-4.1.1'
make: *** [all] Error 2

Now I don't know what to do.
I have tried to compile other versions of gcc (3.3.2, 3.4.6) with no
success.

Please Help!

Sebastian


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