help about cross-compiler
Liu Yong
yliu@newavetech.com
Mon Jul 23 03:30:00 GMT 2001
Hi.
Long time not ask questions .
Thanks for your help .
I have tried m68k-coff & m68k-elf . Both are failed .
I don't know why I cann't succeed .
This is all that I've done in m68k.
Used tools:
sparc-sun-solairs2.6 make 3.79 , binutils-2.11.2 , newlib-1.9.0 ,
gcc-2.95.3 .
modify the path, added path : /home/yliu/local/bin $path in .cshrc
(because
I use cshell)
build script:
cd ../bin-m68kcoff
../binutils-2.11.2/configure --target=m68k-coff --
prefix=/home/yliu/local;
make all install > ../make/m68kcoffbin.txt
cd ../gcc-core-m68kcoff
../gcc-2.95.3/configure --target=m68k-coff --prefix=/home/yliu/local --
enabl
e-language=c
--with-local-prefix=/home/yliu/local/m68k-coff --without-headers --
with-
newlib
--disable-shared --with-gnu-as --with-gnu-ld;
make all-gcc install-gcc > ../make/m68kcoffcore.txt ;
cd ../newlib-m68k-coff
../newlib-1.9.0/configure --target=m68k-coff --prefix=/home/yliu/local;
make all install > ../make/m68kcoffnewlib.txt;
cd ../gcc-cross-m68kcoff ;
../gcc-3.0/configure --target=m68k-coff --prefix=/home/yliu/local --
enable-l
anguage=c,c++
--with-local-prefix=/home/yliu/local/m68k-coff --with-gnu-as --with-
gnu-l
d;
make all install > ../make/m68kcoffcross.txt;
I have checked the output , it seemed I have succeed in
building bin,core,newlib. Because the three
files($prefix/bin/m68k-coff-ld,$prefix/bin/m68k-coff-gcc,$prefix/bin/
$target
/libgc.a) exist.
The error information in building cross-gcc:
cd ../libiberty ; make "SHELL=/bin/sh" "INSTALL=/bin/sh
/home/yliu/program/forchen/gcc-2.95.3/install-sh -c" "INSTALL_DATA=/bin/sh
/home/yliu/program/forchen/gcc-2.95.3/install-sh -c -m 644"
"INSTALL_PROGRAM=/bin/sh /home/yliu/program/forchen/gcc-2.95.3/install-
sh -c
" "prefix=/home/yliu/local/m68coff" "exec_prefix=/home/yliu/local/m68coff"
"tooldir=/home/yliu/local/m68coff/m68k-coff"
"gxx_include_dir=/home/yliu/local/m68coff/include/g++-3"
"libsubdir=/home/yliu/local/m68coff/lib/gcc-lib/m68k-coff/2.95.3"
"gcc_version=2.95.3"
"gcc_version_trigger=/home/yliu/program/forchen/gcc-2.95.3/gcc/version.c"
"AR=m68k-coff-ar" "AR_FLAGS=rc"
"CC=/home/yliu/program/forchen/gcc-cross-m68kcoff/gcc/xgcc -
B/home/yliu/prog
ram/forchen/gcc-cross-m68kcoff/gcc/ -B/home/yliu/local/m68coff/m68k-
coff/bin
/"
"CXX=/home/yliu/program/forchen/gcc-cross-m68kcoff/gcc/xgcc -
B/home/yliu/pro
gram/forchen/gcc-cross-m68kcoff/gcc/ -B/home/yliu/local/m68coff/m68k-
coff/bi
n/" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "NM=m68k-coff-nm"
"RANLIB=m68k-coff-ranlib" "LIBCFLAGS=-g -O2"
"LIBCXXFLAGS=-g -O2 -fno-implicit-templates" "LOADLIBES=" "LDFLAGS="
"MAKEINFO=/home/yliu/program/forchen/gcc-cross-
m68kcoff/texinfo/makeinfo/mak
einfo " "SHLIB=libstdc++.so.2.10.0" "SHCURSES=" "RUNTESTFLAGS="
make[2]: Entering directory
`/home/yliu/program/forchen/gcc-cross-m68kcoff/m68k-coff/libiberty'
make[2]: *** No targets specified and no makefile found. Stop.
make[2]: Leaving directory
`/home/yliu/program/forchen/gcc-cross-m68kcoff/m68k-coff/libiberty'
make[1]: *** [../libiberty/libiberty.a] Error 2
make[1]: Leaving directory
`/home/yliu/program/forchen/gcc-cross-m68kcoff/m68k-coff/libstdc++'
make: *** [all-target-libstdc++] Error 2
But in directory ../gcc-cross-m68kcoff/libiberty, the Makefile exists !!
So what's wrong with it? I really cann't find the reason.
I think I have done every thing that descripted in a script from
http://crossgcc.billgatliff.com .
Maybe my environment is wrong? Or some other things?
I have tried target mips because actually I will use mips.
Unfortunately failed again ( Why I am so unfortunate ? :-) ).
What I 've done is same as what I did in m68kcoff and I get the same error
information.
I hope someone can help me to find the reason.
Because I must make a platform for mips .
Anybody can help me or give me some advice in debugging mips under
sparc-sun-solaris2.6 as what you do
to help me build m68k?
Thanks again!
Best Regards
Yong Liu
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
More information about the crossgcc
mailing list