This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
crosscompiler with arm wince as a target
- From: lamikr <lamikr at cc dot jyu dot fi>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 10 Apr 2005 22:45:40 +0300
- Subject: crosscompiler with arm wince as a target
Hi
I am trying to build a crosscompiler which would allow me to build wince
apps under Linux.
I know that this is somehow possible as I found following web-page
http://win-ce.voxware.com:28575/Development%20Tools/
and by downloading wincegcc100403.tar.bz2
<http://win-ce.voxware.com:28575/Development%20Tools/wincegcc100403.tar.bz2>
from there allowed me to build helloworld.
I would however like to build my own crosscompiler toolchain.
Therefore I have downloaded the gcc4.0 snapshot, latest binutils from
redhat site as well than
the newlib from the redhat's site.
I believe that the target I need to use for wince ports is arm-wince-pe.
By running following tasks below I believe I have been able to build the
bootstrap gcc and binutils correctly
but when I try to build the gcc runtime library by using newlib problems
starts. It seems that
newlib will only build the docs, not anything really usefull.
I really do not know will this be possible by using newlib or glibc or
is there some other tools required for this...
Btw, I do this in order to get initial bootloader capable of loading
linux to h6340 to work...
Currently it needs Microsoft compiler.
GCC 4.0 Crosscompiler for H6340 & Wince
----------------------------------------------------------------------
export TARGET=arm-wince-pe
export PREFIX=/apps/familiar/wince
export PATH=$PREFIX/bin:$PATH
phase 1: binutils
-----------------
mkdir gcc40
cd gcc40
wget -c
http://www.kernel.org/pub/linux/devel/binutils/binutils-2.15.94.0.2.2.tar.bz2
tar -xvjf binutils-2.15.94.0.2.2.tar.bz2
cd binutils-2.15.94.0.2.2
./configure --target=$TARGET --prefix=$PREFIX
make all install
---> Wait for the binutils to build in PREFIX...
phase 2: BuildBootstrapGcc
--------------------------
#cd gcc40
#tar -xvjf gcc-4.0-20050402.tar.bz2
#mkdir build-bootstrap && cd build-bootstrap
#../gcc-4.0-20050402/configure --target=$TARGET --prefix=$PREFIX
--with-newlib --without-headers --with-gnu-as --with-gnu-ld
--with-local-prefix=${PREFIX}/${TARGET} --disable-shared
--enable-languages=c
#make all-gcc install-gcc
--> wait until arm-wince-pe-gcc, etc are built to PREFIX
phase 3: build newlib BuildRuntimeLibrary
-----------------------------------------
#export CC=arm-wince-pe-gcc (If I set this, I will get errors)
#cd gcc40
#mkdir build-newlib && cd build-newlib
#../newlib-1.13.0/configure --target=$TARGET --prefix=$PREFIX
#make all install
--> Why Only docs get build?
Mika