This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Problems compiling egcs with gcc...
- To: egcs at cygnus dot com
- Subject: Problems compiling egcs with gcc...
- From: Christopher Fury <cfury at bev dot net>
- Date: Thu, 18 Jun 1998 09:34:12 -0500
I'm having compiling egcs on my Debian Linux 1.3 machine.
I have gcc 2.7.2.1 as my native compiler. Below is the output
I get by typing 'make bootstrap' (note this isn't a clean
make, I've already made the parts that compile, to shorten the
output).
I see something in the Makefile in my obj-dir/gcc directory (where
the compile barfs) that says:
# Compiler to use for compiling libgcc1.a.
# OLDCC should not be the GNU C compiler,
# since that would compile typical libgcc1.a functions such as mulsi3
# into infinite recursions.
OLDCC = cc
Help?! My usr/bin/cc *is* gcc. I want to have both compilers on my
machine.
I looked around http://egcs.cygnus.com but couldn't find any answers...
I configured egcs with:
$ cd egcs-objs
$ ../egcs-1.0.3a/configure --prefix=/usr/local/egcs
$ make bootstrap
make[1]: Entering directory `/home/cfury/egcs-objs/libiberty'
make[2]: Entering directory `/home/cfury/egcs-objs/libiberty'
make[2]: Leaving directory `/home/cfury/egcs-objs/libiberty'
make[1]: Leaving directory `/home/cfury/egcs-objs/libiberty'
make[1]: Entering directory `/home/cfury/egcs-objs/texinfo'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/cfury/egcs-objs/texinfo'
Bootstrapping the compiler
make[1]: Entering directory `/home/cfury/egcs-objs/gcc'
make CC="gcc" libdir=/usr/local/egcs/lib LANGUAGES="c "
make[2]: Entering directory `/home/cfury/egcs-objs/gcc'
rm -f tmplibgcc1.a
for name in _mulsi3 _udivsi3 _divsi3 _umodsi3 _modsi3 _lshrsi3 _ashrsi3
_ashlsi3 _divdf3 _muldf3 _negdf2 _adddf3 _subdf3 _fixdfsi _fixsfsi
_floatsidf _floatsisf _truncdfsf2 _extendsfdf2 _addsf3 _negsf2 _subsf3
_mulsf3 _divsf3 _eqdf2 _nedf2 _gtdf2 _gedf2 _ltdf2 _ledf2 _eqsf2 _nesf2
_gtsf2 _gesf2 _ltsf2 _lesf2; \
do \
echo ${name}; \
rm -f ${name}.o; \
cc -DIN_LIBGCC1 -O -I. -I../../egcs-1.0.3a/gcc
-I../../egcs-1.0.3a/gcc/config -c -DL${name}
../../egcs-1.0.3a/gcc/libgcc1.c; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
mv libgcc1.o ${name}.o; \
ar qc tmplibgcc1.a ${name}.o; \
rm -f ${name}.o; \
done
_mulsi3
cpp: Usage: /usr/lib/gcc-lib/i486-linux/2.7.2.1/cpp [switches] input
output
make[2]: *** [libgcc1.a] Error 1
make[2]: Leaving directory `/home/cfury/egcs-objs/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/home/cfury/egcs-objs/gcc'
make: *** [bootstrap] Error 2