This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problems installing CygWin ARM


I have once successfully built my CygWin arm-elf cross compiler and thats what
I'm using now. Seems to work just fine, but I'd like to tweak some configure time
options.


When I tried to do it a second time, I ran into problems. It appears as if
CygWin is confused w.r.t. the .exe filename extension for binaries.


I have no clue why this problem did not appear the first time I managed to compile 
GCC.


This the setup.sh script that I used to compile the bootstrap cross
compiler which I'll subsequently use to compile newlib:

----
# Make directories where we do the build.
mkdir build-binutils
mkdir build-gcc-bare
mkdir build-gcc
mkdir build-newlib
mkdir build-gdb
mkdir install
export TARGET=arm-elf
export PREFIX=`pwd`/install
export PATH=$PATH:$PREFIX/bin
export NEWLIBPATH=`pwd`/../arm/newlib-1.9.0
# we need the object file format tools for arm-elf 
cd build-binutils
../../arm/binutils-2.13.1/configure --target=$TARGET --prefix=$PREFIX
make all 2>&1 | tee ../binutils-make.log
make install 2>&1 | tee ../binutils-install.log
cd ..
# for some reason we need to build and install the runtime
# libraries before we compile the real compiler
cd build-gcc-bare
../../gcc33/gcc/configure --target=$TARGET --prefix=$PREFIX --with-headers=$NEWLIBPATH/newlib/libc/include --with-gnu-as --with-gnu-ld --disable-shared --enable-languages=c
make all-gcc 2>&1 | tee ../gcc-bare-make.log
make install-gcc 2>&1 | tee ../gcc-bare-install.log
cd ..
# Since we are an embedded target, we need newlib instead of
# GCCs runtime libraries
cd build-newlib
$NEWLIBPATH/configure --target=$TARGET --prefix=$PREFIX 
make all 2>&1 | tee ../newlib-make.log
make install 2>&1 | tee ../newlib-install.log
cd ..
echo Done!

---

Below is the tail of the failed install of the bootstrap compiler



Any help would be Greatly Appreciated.

Oyvind Harboe

---- 




[most of the output deleted]
chmod: changing permissions of `/home/oharboe/armsize/install/lib/gcc-lib/arm-el
f/3.3/install-tools/_inst.2928_': No such file or directory
if [ xstmp-fixproto != x ] ; then \
  /bin/sh /home/oharboe/gcc33/gcc/install-sh -c  ../../../gcc33/gcc/gcc/mkinstal
ldirs \
        /home/oharboe/armsize/install/lib/gcc-lib/arm-elf/3.3/install-tools/mkin
stalldirs ; \
  /bin/sh /home/oharboe/gcc33/gcc/install-sh -c  ../../../gcc33/gcc/gcc/fixproto
 /home/oharboe/armsize/install/lib/gcc-lib/arm-elf/3.3/install-tools/fixproto ;
\
  /bin/sh /home/oharboe/gcc33/gcc/install-sh -c  fix-header.exe \
        /home/oharboe/armsize/install/lib/gcc-lib/arm-elf/3.3/install-tools/fix-
header.exe ; \
else :; fi
cp: cannot create regular file `/home/oharboe/armsize/install/lib/gcc-lib/arm-el
f/3.3/install-tools/_inst.2928_': No such file or directory
cp: cannot create regular file `/home/oharboe/armsize/install/lib/gcc-lib/arm-el
f/3.3/install-tools/_inst.2928_': No such file or directory
make[1]: *** [install-mkheaders] Error 1
make[1]: Leaving directory `/home/oharboe/armsize/build-gcc-bare/gcc'
make: *** [install-gcc] Error 2
oharboe@lair ~/armsize/build-gcc-bare
$ ls /home/oharboe/armsize/install/lib/gcc-lib/arm-elf/3.3/install-tools/
_inst.2928_.exe  fixinc.sh  fixproto  gsyslimits.h  include

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]