This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Problem to construct a gcc cross-compiler for a powerpc target
- From: carole verdon <verdon at cict dot fr>
- To: gcc at gnu dot org
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 25 Oct 2004 14:57:37 +0200
- Subject: Problem to construct a gcc cross-compiler for a powerpc target
- Organization: CICT
- Reply-to: verdon at cict dot fr
Hi,
I try since several days to install a gcc cross compiler on solaris for
a PowerPc target but without success. I try to configure gcc with
different methods indicating linux headers then the newlib library
...... but nothing works.
Here what i do:
**** configuration, compilation and installation of binutils
v2.15.92.0.2 ****
$ ../../src/binutils-2.15.92.0.2/configure
--prefix=/users/sysadmin/verdon/cross-compiler/ppc --target=powerpc-linux
$ make
$ make install
**** configuration, compilation and installation of newlib v1.12.0 ****
$ cd /users/sysadmin/verdon/newlib
$ gzcat newlib-1.12.0.tar.gz | tar xvfo -
$ cd newlib-1.12.0
$ ./configure --prefix=/users/sysadmin/verdon/newlib
$ make
$ make install
**** configuration, compilation and installation of gcc v3.4.2 ****
$ cd /users/sysadmin/verdon/cross-compiler/src
$ gzcat gcc-3.4.2.tar.gz | tar xvfo -
$ cd ../obj
$ mkdir gcc
$ cd gcc
$ PATH=/users/sysadmin/verdon/cross-compiler/ppc/bin:$PATH
$ export PATH
N.B: installation of linux headers
(http://ep09.pld-linux.org/~mmazur/linux-libc-headers/linux-libc-headers-2.6.8.1.tar.bz2)
in /users/sysadmin/verdon/linux-libc-headers directory
$ CFLAGS="-O2 -Dinhibit_libc" ../../src/gcc-3.4.2/configure
--prefix=/users/sysadmin/verdon/cross-compiler/ppc
--target=powerpc-linux --enable-languages=c
--includedir=/users/sysadmin/verdon/linux-libc-headers/linux-libc-headers-2.6.8.1/include
--with-headers=/users/sysadmin/verdon/newlib/newlib-1.12.0/newlib/libc/include
--disable-shared --disable-multilib --enable-threads=single
creating cache ./config.cache
checking host system type... sparc-sun-solaris2.8
checking target system type... powerpc-unknown-linux-gnu
checking build system type... sparc-sun-solaris2.8
checking for a BSD compatible install... ../../src/gcc-3.4.2/install-sh -c
*** This configuration is not supported in the following subdirectories:
target-libstdc++-v3 target-libf2c target-libffi target-boehm-gc
target-zlib target-libjava zlib fastjar target-libobjc
(Any other directories should still work fine.)
checking for sparc-sun-solaris2.8-ar... no
checking for ar... ar
checking for sparc-sun-solaris2.8-as... no
checking for as... as
checking for sparc-sun-solaris2.8-dlltool... no
checking for dlltool... dlltool
checking for sparc-sun-solaris2.8-ld... /usr/ccs/bin/ld
checking for sparc-sun-solaris2.8-nm... no
checking for nm... nm
checking for sparc-sun-solaris2.8-ranlib... no
checking for ranlib... ranlib
checking for sparc-sun-solaris2.8-windres... no
checking for windres... windres
checking for sparc-sun-solaris2.8-objcopy... no
checking for objcopy... objcopy
checking for sparc-sun-solaris2.8-objdump... no
checking for objdump... objdump
checking for powerpc-linux-ar... powerpc-linux-ar
checking for powerpc-linux-as... powerpc-linux-as
checking for powerpc-linux-dlltool... no
checking for powerpc-linux-ld... powerpc-linux-ld
checking for powerpc-linux-nm... powerpc-linux-nm
checking for powerpc-linux-ranlib... powerpc-linux-ranlib
checking for powerpc-linux-windres... no
checking whether to enable maintainer-specific portions of Makefiles... no
updating cache ./config.cache
creating ./config.status
creating Makefile
$ make
In file included from ./tm.h:10,
from ../../../src/gcc-3.4.2/gcc/libgcc2.c:43:
../../../src/gcc-3.4.2/gcc/config/rs6000/linux.h:100:20: signal.h: No
such file or directory
In file included from ./tm.h:10,
from ../../../src/gcc-3.4.2/gcc/libgcc2.c:43:
../../../src/gcc-3.4.2/gcc/config/rs6000/linux.h:109: error: parse error
before "stack_t"
../../../src/gcc-3.4.2/gcc/config/rs6000/linux.h:109: warning: no
semicolon at end of struct or union
../../../src/gcc-3.4.2/gcc/config/rs6000/linux.h:111: error: parse error
before "uc_sigmask"
../../../src/gcc-3.4.2/gcc/config/rs6000/linux.h:111: warning: type
defaults to `int' in declaration of `uc_sigmask'
../../../src/gcc-3.4.2/gcc/config/rs6000/linux.h:111: warning: data
definition has no type or storage class
../../../src/gcc-3.4.2/gcc/config/rs6000/linux.h:110: error: storage
size of `uc_mcontext' isn't known
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory
`/users/sysadmin/verdon/cross-compiler/obj/gcc/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory
`/users/sysadmin/verdon/cross-compiler/obj/gcc/gcc'
make: *** [all-gcc] Error 2
What am i doing? What is the solution of this problem?
Can someone help me, please?
Carole.