This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
2 980328 build problems and 1 fix (for rh5.0 alpha)
- To: egcs at cygnus dot com
- Subject: 2 980328 build problems and 1 fix (for rh5.0 alpha)
- From: Bill Broadley <bill at math dot ucdavis dot edu>
- Date: Wed, 1 Apr 1998 18:36:58 -0800 (PST)
I couldn't compile egcs-980328.
[root@freesurface egcs-980328]# cat /etc/redhat-release
release 5.0 (Hurricane)
[root@freesurface egcs-980328]# uname -a
Linux freesurface.math.ucdavis.edu 2.0.33 #7 Mon Mar 23 23:57:39 EST 1998 alpha unknown
[root@freesurface egcs-980328]# ./configure;gcc -v
Configuring for a alphaev56-unknown-linux-gnu host.
Created "Makefile" in /usr/local/src/egcs-980328 using "mt-frag"
Links are now set up to build a native compiler for alphaev56-unknown-linux-gnu
Reading specs from /usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/egcs-2.90.27/specs
gcc version egcs-2.90.27 980315 (egcs-1.0.2 release)
[root@freesurface egcs-980328]# make
...
gcc -DIN_GCC -g -O2 -DHAVE_CONFIG_H -DHAIFA -I. -I. -I./config -c insn-emit.c
insn-emit.c: In function `gen_split_275':
insn-emit.c:4651: parse error before `else'
insn-emit.c: At top level:
...
My fix:
[root@freesurface egcs-980328]# grep -n WHB gcc/config/alpha/alpha.md
4161: DONE /* WHB ; */
4232: DONE /* WHB ; */
4252: DONE /* WHB ; */
4290: DONE /* WHB ; */
4942: DONE /* WHB ; */
4956: DONE /* WHB ; */
Not sure if alpha.md is produced an an automated fashion somehow, looks like
someone did a search/replace generating the DONE macro.
I restart the make and:
echo "int xxy_us_dummy;" >tmp-dum.c
/usr/local/src/egcs-980328/gcc/xgcc -B/usr/local/src/egcs-980328/gcc/ -S tmp-dum.c
echo '/*WARNING: This file is automatically generated!*/' >tmp-under.c
if grep _xxy_us_dummy tmp-dum.s > /dev/null ; then \
echo "int prepends_underscore = 1;" >>tmp-under.c; \
else \
echo "int prepends_underscore = 0;" >>tmp-under.c; \
fi
./move-if-change tmp-under.c underscore.c
rm -f tmp-dum.c tmp-dum.s
touch stamp-under
gcc -c -DIN_GCC -g -O2 -DHAVE_CONFIG_H -DHAIFA -I. -I. -I./config underscore.c
rm -f collect2
gcc -DIN_GCC -g -O2 -DHAVE_CONFIG_H -DHAIFA -o collect2 collect2.o tlink.o hash.o \
cplus-dem.o underscore.o version.o choose-temp.o obstack.o
rm -f ld
ln collect2 ld
echo "" > emptyfile
echo "/* This file is automatically generated */" >objc/runtime-info.h
./cc1obj -print-objc-runtime-info emptyfile >>objc/runtime-info.h
/usr/local/src/egcs-980328/gcc/xgcc -B/usr/local/src/egcs-980328/gcc/ -DIN_GCC -g -O2 -I./include -I. -I. -I./config \
-c ./objc/hash.c -o objc/hash.o
/tmp/cca15253.s: Assembler messages:
/tmp/cca15253.s:4: Error: Unknown pseudo-op: `.arch'
make[1]: *** [objc/hash.o] Error 1
make[1]: Leaving directory `/usr/local/src/egcs-980328/gcc'
make: *** [all-gcc] Error 2
[root@freesurface egcs-980328]#
That looks a bit more serious...
--
Bill Broadley Bill@math.ucdavis.edu UCD Math Sys-Admin
Linux is great. http://math.ucdavis.edu/~bill PGP-ok