Dear all,
I encountered some problem when trying to build a powerpc-tuxbox-gnu-gcc cross compiler. Following is my steps:
1. download from http://tuxbox-cvs.sourceforge.net/pub/tuxbox/cdk/src/
-gcc-core-3.3.3.tar.bz2
-binutils-2.14.90.0.3.tar.bz2
-glibc-2.2.5.tar.bz2
-gcc-g++-3.3.3.tar.bz2
-linux-2.4.22.tar.bz2
and gcc-core.diff & glibc.diff from tuxbox cvs repository.
2. extract and build binutils
$tar jxvf binutils-2.14.90.0.3.tar.bz2
$./configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=powerpc-dbox2-linux-gnu --prefix=/home/duqiang/cdk
$make
$make install
3. extract and build gcc-core
$tar jxvf gcc-core-3.3.3.tar.bz2
$tar jxvf gcc-g++-3.3.3.tar.bz2
$patch -p1 <gcc-core.diff
$./configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=powerpc-dbox2-linux-gnu --prefix=/home/duqiang/ppc/cdk --enable-languages=c,c++
$make
Here I got the failure message:
/home/duqiang/tuxbox-cvs/gcc-3.3.3/gcc/xgcc -B/home/duqiang/tuxbox-cvs/gcc-3.3.3/gcc/ -B/home/duqiang/ppc/cdk/powerpc-dbox2-linux-gnu/bin/ -B/home/duqiang/ppc/cdk/powerpc-dbox2-linux-gnu/lib/ -isystem /home/duqiang/ppc/cdk/powerpc-dbox2-linux-gnu/include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I. -I./. -I./config -I./../include -fPIC -mstrict-align -fexceptions -c ./unwind-dw2.c -o libgcc/./unwind-dw2.o
In file included from unwind-dw2.c:26:
unwind-pe.h: In function `size_of_encoded_value':
unwind-pe.h:76: warning: implicit declaration of function `abort'
In file included from /home/duqiang/ppc/cdk/powerpc-dbox2-linux-gnu/include/pthread.h:24,
from gthr-posix.h:37,
from gthr-default.h:1,
from gthr.h:98,
from unwind-dw2.c:28:
/home/duqiang/ppc/cdk/powerpc-dbox2-linux-gnu/include/signal.h: At top level:
/home/duqiang/ppc/cdk/powerpc-dbox2-linux-gnu/include/signal.h:48: error: conflicting types for `sigset_t'
/home/duqiang/ppc/cdk/powerpc-dbox2-linux-gnu/include/asm/signal.h:22: error: previous declaration of `sigset_t'
unwind-dw2.c: In function `extract_cie_info':
unwind-dw2.c:247: warning: implicit declaration of function `strlen'
unwind-dw2.c: In function `uw_frame_state_for':
unwind-dw2.c:928: warning: implicit declaration of function `memset'
unwind-dw2.c:942: error: field `sigctx' has incomplete type
unwind-dw2.c:942: warning: assignment from incompatible pointer type
unwind-dw2.c:942: error: dereferencing pointer to incomplete type
unwind-dw2.c:942: error: dereferencing pointer to incomplete type
unwind-dw2.c:942: error: dereferencing pointer to incomplete type
unwind-dw2.c:942: error: dereferencing pointer to incomplete type
unwind-dw2.c: In function `uw_install_context_1':
unwind-dw2.c:1237: warning: implicit declaration of function `memcpy'
make[2]: *** [libgcc/./unwind-dw2.o] Error 1
make[2]: Leaving directory `/home/duqiang/tuxbox-cvs/gcc-3.3.3/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/home/duqiang/tuxbox-cvs/gcc-3.3.3/gcc'
make: *** [all-gcc] Error 2
Is there anything I can do to fix this problem? thanks a lot.
gcc 3.3.3 cross compiler build problem
-
- Neugieriger
- Beiträge: 4
- Registriert: Donnerstag 25. März 2004, 08:07