This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Help:Egcs cross-compiler
- To: egcs at cygnus dot com
- Subject: Help:Egcs cross-compiler
- From: gyoung yun cho <gycho at dolphin dot pknu dot ac dot kr>
- Date: Mon, 24 Nov 1997 18:59:46 +0900
- Organization: Pukyong University Korea
I tested egcs snapshots on LINUX slackware 3.3 to make cross compiler.
Egcs-971122 makes following error.
Help me to fix this error.
----------------------------------------------------------------------------
............................
loading site script /dev/null
creating cache ./config.cache
checking for gcc... /usr/src/egcs/build/gcc/xgcc -B/usr/src/egcs/build/gcc/
checking whether the C compiler (/usr/src/egcs/build/gcc/xgcc -B/usr/src/egcs/
build/gcc/ -O2) works... no
configure:error: installation or configuration problem: C compiler cannot
create executables.
make[1]: *** [stmp-f2c.h] Error 1
make[1]: Leaving directory '/usr/src/egcs/build/gcc'
make: *** [all-gcc] Error 2
---------------------------------------------------------------------------
My tool chain is :
============================================================================
/usr/src/egcs/binutils-2.8.1.0.15
/usr/src/egcs/egcs-971122
/usr/src/egcs/build
============================================================================
My script file at /usr/src/egcs/egcs.sh is
=============================================================================
prefix=/usr/local
host=i386-*-linux
target=$1
gver=egcs-971122
cd build
../binutils-2.8.1.0.15/configure --host=$host --target=$target \
--prefix=$prefix -v
make all
make install
rm -rf *
# Make cross tool include dir
mkdir $prefix/$target/include
cp -r ../$gver/newlib/libc/include/* $prefix/$target/include
../$gver/configure --host=$host --target=$target --prefix=$prefix \
--with-gnu-as --with-gnu-ld -v
make all
make install
rn -rf *
=============================================================================