How to make a gcc for MPC860 ?
沈惠如
890436@itri.org.tw
Sat Sep 23 03:20:00 GMT 2000
Hi
I try to make a gcc comliler for a motorola MPC860 CPU in a Linux host.
I follow every step in http://sources.redhat.com/ecos/tools/linux-powerpc-eabi.html
First, I build the GNU Binary Utilities following the steps list in this web page
note: I have untar the binutils 2.10 to /src/binutils/binutils-2.10 exactly follow the instructions in the web page
mkdir -p /tmp/build/binutils
cd /tmp/build/binutils
/src/binutils/binutils-2.10/configure --target=powerpc-eabi \
--prefix=/tools \
--exec-prefix=/tools/H-i686-pc-linux-gnu \
-v 2>&1 | tee configure.out
and then
make -w all install 2>&1 | tee make.out
I think I make it, because there are files produced in
/tools/H-i686-pc-linux-gnu/
there are three sub directories
bin/ lib/ powerpc-eabi/
Now, I try to make a gcc fot 860
PATH=/tools/H-i686-pc-linux-gnu/bin:$PATH ; export PATH (for sh, ksh and bash users)
mkdir -p /tmp/build/gcc
cd /tmp/build/gcc
/src/gcc/gcc-2.95.2/configure --target=powerpc-eabi \
--prefix=/tools \
--exec-prefix=/tools/H-i686-pc-linux-gnu \
--with-gnu-as --with-gnu-ld --with-newlib \
-v 2>&1 | tee configure.out
>>>>> BUT, the configuration is not end up correctly !!!!!!!!
It end up with an error message:
configuration rs6000-ibm-eabi not supported
So I try to fix this problem by add the option --with-cpu=860
/src/gcc/gcc-2.95.2/configure --target=powerpc-eabi \
--prefix=/tools \
--exec-prefix=/tools/H-i686-pc-linux-gnu \
--with-gnu-as --with-gnu-ld --with-newlib \
--with-cpu=860 \ <-----------------------------add this
-v 2>&1 | tee configure.out
the error message " configuration rs6000-ibm-eabi not supported" is gone
But, I still fail
Part of the configure.out are list bellow
......................................................................................
checking for LC_MESSAGES... (cached) yes
checking whether NLS is requested... no
sed: can't read /src/gcc/gcc-2.95.2/gcc/intl/po2tbl.sed.in: No such file or dir
/src/gcc/gcc-2.95.2/gcc/configure: /src/gcc/gcc-2.95.2/gcc/po/POTFILES.in: No such file or directory <----- ERROR, I guess
checking assembler alignment features...
checking assembler subsection support...
checking assembler instructions...
Using the Haifa scheduler.
Links are now set up to build a cross-compiler for powerpc-unknown-eabi
from i686-pc-linux-gnu.
creating ./config.status
creating Makefile
creating intl/Makefile
sed: can't read /src/gcc/gcc-2.95.2/gcc/intl/Makefile.in: No such file or directory <----- ERROR, I guess
creating po/Makefile.in
sed: can't read /src/gcc/gcc-2.95.2/gcc/po/Makefile.in.in: No such file or diretory <----- ERROR, I guess
creating fixinc/Makefile
sed: can't read /src/gcc/gcc-2.95.2/gcc/fixinc/Makefile.in: No such file or dirtory <----- ERROR, I guess
creating cp/Makefile
creating auto-host.h
auto-host.h is unchanged
linking /src/gcc/gcc-2.95.2/gcc/intl/libgettext.h to intl/libintl.h
configure: error: /src/gcc/gcc-2.95.2/gcc/intl/libgettext.h: File not found
pwd
Configure in /tmp/build/gcc/gcc failed, exiting.
rm -f Makefile.tem /tmp/cONf486.com /tmp/cONf486.tgt /tmp/cONf486.hst /tmp/cONf
...........................................................................................................................................................................
please, someone can help me ???
Thanks a lot in advance !!!!
Ruby, e-mail :890436@ccl.itri.org.tw
More information about the crossgcc
mailing list