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 with installation of cygwin arm-elf gcc


I'm still struggling with "make install" of gcc.


Any help would be greatly appreciated! 


I thought I had it sorted(rebooted the machine and I could install), but that
was perhaps unrelated, because the problem is back again.


Output and scripts I run below.


- setup.sh - works fine
- compile.sh - "make all" works, "make install" fails with error messages below


Øyvind Harboe


[lots of output deleted]
  /bin/sh /home/oharboe/gcc33/gcc/install-sh -c  fixinc.sh /home/oharboe/armsize
/install/lib/gcc-lib/arm-elf/3.3/install-tools/fixinc.sh ; \
  /bin/sh /home/oharboe/gcc33/gcc/install-sh -c  fixinc/fixincl /home/oharboe/ar
msize/install/lib/gcc-lib/arm-elf/3.3/install-tools/fixincl ; \
  /bin/sh /home/oharboe/gcc33/gcc/install-sh -c -m 644 ../../../gcc33/gcc/gcc/gs
yslimits.h /home/oharboe/armsize/install/lib/gcc-lib/arm-elf/3.3/install-tools/g
syslimits.h ; \
else :; fi
chmod: changing permissions of `/home/oharboe/armsize/install/lib/gcc-lib/arm-el
f/3.3/install-tools/_inst.2076_': 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.2076_': 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.2076_': No such file or directory
make[1]: *** [install-mkheaders] Error 1
make[1]: Leaving directory `/home/oharboe/armsize/build-gcc/gcc'
make: *** [install-gcc] Error 2




setup.sh - run first
-------------------
# 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!
----------



compile.sh - run to compile GCC
--------------------
# Make directories where we do the build.
export TARGET=arm-elf
export PREFIX=`pwd`/install
export PATH=$PATH:$PREFIX/bin
export NEWLIBPATH=`pwd`/../arm/newlib-1.9.0
# Finally we compile our compiler 
cd build-gcc
#disable-nls
#disable-jvmpi
#disable-libffi
#disable-interpreter
#disable-getenv-properties
../../gcc33/gcc/configure --disable-nls --disable-jvmpi --disable-getenv-properties --disable-interpreter --without-x --disable-java-awt --target=$TARGET --prefix=$PREFIX --with-gnu-as --with-gnu-ld --with-newlib=yes --with-headers=$NEWLIBPATH/newlib/libc/include --enable-languages=c,c++,java
make all 2>&1 | tee ../gcc-make.log
make install 2>&1 | tee ../gcc-install.log
cd ..
echo Done!

------
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]