Error - Build Cross Compiler for powerpc
Mingyu Jun
mingyu@sei.co.kr
Fri Nov 27 02:29:00 GMT 1998
Hi,
I tried to build cross compiler for powerpc
But, It isn't successful
-----------------
Host environment
-----------------
CPU : i586
SYSTEM : IBM compatible
OS : Linux 2.0.35 ( Redhat 5.1 )
gcc : 2.7.2.3
ld : 2.9.1
as : 2.9.1
-----------------
Target
-----------------
CPU : 860 (Motorola)
SYSTEM : Motorola MBX board
------------------------------------------------
I tried following step to build Cross Compiler
------------------------------------------------
#
# Compile binutils.
# It is Successful.
#
1. Get binutil-2_9_1_tar.gz
2. gzip -d binutils-2_9_1_tar.gz
3. tar xvf binuitls-2_9_1_tar
4. cd binutils-2.9.1
5. ./configure --target=powerpc-eabi --with-gnu-ld \
--with-gnu-as --with-cpu=860
6. make
7. make install
#
# Compile egcs
# It isn't successful
#
8. Get egcs-1_1b_tar.gz
9. gzip -d egcs-1_1b_tar.gz
10. tar xvf egcs-1_1b_tar
11. ./configure --target=powerpc-eabi --with-gnu-ld \
--with-gnu-as --with-cpu=860
12. make
Error message
make[1]: Entering directory
`/home/USER/developer/CROSS_TOOL/egcs-1.1b/powerpc-eabi/libiberty'
rm -rf *.o pic core errs \#* *.E a.out
rm -f needed.awk needed2.awk errors dummy needed-list config.h stamp-*
rm -f stamp-picdir
rm -f *.a required-list tmpmulti.out
rm -f *~ Makefile config.status xhost-mkfrag TAGS multilib.out
make[1]: Leaving directory
`/home/USER/developer/CROSS_TOOL/egcs-1.1b/powerpc-eabi/libiberty'
loading cache ./config.cache
checking host system type... powerpc-unknown-eabi
checking build system type... i586-pc-linux-gnu
checking for powerpc-eabi-ar... powerpc-eabi-ar
checking for powerpc-eabi-ranlib... powerpc-eabi-ranlib
checking for gcc... /home/USER/developer/CROSS_TOOL/egcs-1.1b/gcc/xgcc
-B/home/USER/developer/CROSS_TOOL/egcs-1.1b/gcc/
checking whether we are using GNU C... yes
checking whether /home/USER/developer/CROSS_TOOL/egcs-1.1b/gcc/xgcc
-B/home/USER/developer/CROSS_TOOL/egcs-1.1b/gcc/ accepts -g... yes
checking for POSIXized ISC... no
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... /lib/cpp
checking for sys/file.h... yes
checking for sys/param.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for unistd.h... yes
checking whether the C compiler
(/home/USER/developer/CROSS_TOOL/egcs-1.1b/gcc/xgcc
-B/home/USER/developer/CROSS_TOOL/egcs-1.1b/gcc/ -g -O2 -I/usr/include )
works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.
make: *** [configure-target-libiberty] Error 1
More information about the Gcc-bugs
mailing list