Building a Cross Compiler
Nikolaos Kefalas
nkef at otenet.gr
Sat May 26 14:27:01 EEST 2001
Prospa8o na kano compile thn Gcc oste na einai cross-compiler gia ton sh
epexergasth sto linux.
Exo dei ta antistoixa faq http://www.objsw.com/CrossGCC/FAQ.html , kai
to antostoixo sxetika me tis
ry8miseis gia thn gcc
http://www.gnu.org/software/gcc/install/index.html .
exo katebasei ta bin-utils-2.9.1 , gcc-2.95.3 ,newlib-1.8.2 .
Prospa8hsa na akolou8hso tis odhgies pou leei sto faq
http://www.objsw.com/CrossGCC/FAQ-4.html
aposimpiesa ta paketa sto /temp/cross , eftaixa tous katalogous
/temp/cross/sh-bin , /temp/cross/sh-gcc klp ,
auta 8elo na ta egkatasthso sto /usr/loca/sh
orisa to target=sh-linux-elf , prefix=/usr/loca/sh .
phga sto sh-bin kai etrexa to configure gia ta binutils
../binutils-2.9.1/configure --target=$target --prefix=$prefix -v
egine ,meta etrexa make install to opoio oloklhro8hke xoris kapoio error
kai egkatasta8hke .
meta phga sto sh-gcc kai etrexa to configure gia thn gcc os exhs .
../gcc-2.95.3/configure --target=$target --prefix=$prefix -v
--with-headers=../newlib-1.8.2/newlib/libc
Sto http://www.gnu.org/software/gcc/install/configure.html leei oti
prepei na oristei to --with-headers=
kai ebala ta include ths newlib pou 8elo na balo na xrhsimopoihtai gia
auton ton compiler . An den thn oriso
to compile apotygxanei kai leei oti den briskei ta headers ,den eimai
kai poly sigouros an prepei na balo auta
ta header :-( .
Omos pros to telos tou compile tou gcc (ystera apo ora...) .
checking whether the C compiler (/cdrom/cross/gcc/xgcc
-B/cdrom/cross/gcc/ -B/usr/local/sh/sh-linux-elf/bin/ -g -O2 ) works...
no
configure: error: installation or configuration problem: C compiler
cannot create executables.
Dysthxos den xero ti prepei na kano , se opoion exei asxolh8ei kai
mporei na me boh8hsei kai na mou exhghsei
penta pragmata giati eimai asxetos me to 8ema 8a tou eimai ypoxreos.
More information about the Linux-greek-users
mailing list