./genmodes: syntax error at line 1: `(' unexpected => while building gcc3.4.2

Saurabh.Bhatnagar@blr.hexaware.com Saurabh.Bhatnagar@blr.hexaware.com
Thu May 5 06:20:00 GMT 2005


PLEASE HELP!!!




Saurabh Bhatnagar/BLR/HTL 
05/03/2005 03:19 PM

To
"gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
cc

Subject
./genmodes: syntax error at line 1: `(' unexpected => while building 
gcc3.4.2





Re-Building GCC 3.4.2 bootstraping on GCC 3.2.3, I got this error 

ar rc libiberty.a \
  regex.o cplus-dem.o cp-demangle.o cp-demint.o md5.o alloca.o argv.o 
choose-temp.o concat.o dyn-string.o fdmatch.o fibheap.o floatformat.o 
fnmatch.o getopt.o getopt1.o getpwd.o getruntime.o hashtab.o hex.o 
lbasename.o lrealpath.o make-relative-prefix.o make-temp-file.o objalloc.o 
obstack.o partition.o physmem.o pex-unix.o safe-ctype.o sort.o spaces.o 
splay-tree.o strerror.o strsignal.o ternary.o xatexit.o xexit.o xmalloc.o 
xmemdup.o xstrdup.o xstrerror.o  asprintf.o mempcpy.o mkstemps.o setenv.o 
sigsetmask.o stpcpy.o stpncpy.o vasprintf.o
/user/sbhatnag/binutilsv2.14/bin/ar: syntax error at line 1: `(' 
unexpected
gmake[1]: *** [libiberty.a] Error 2


Suspecting broken installation for binutils I checked :

$ which ar
/user/sbhatnag/binutilsv2.14/bin/ar
$ ar
ksh: ar: cannot execute

Now built binutils and started building GCC 3.4.2 again after distclean.

stage1/xgcc -Bstage1/ -B/user/sbhatnag/gccv3.4.2/sparc-sun-solaris2.8/bin/ 
  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition 
-DHAVE_CONFIG_H -DGENERATOR_FILE  -o genmodes \
 genmodes.o errors.o ../libiberty/libiberty.a
./genmodes -h > tmp-modes.h
./genmodes: syntax error at line 1: `(' unexpected
gmake[2]: *** [s-modes] Error 2
gmake[2]: Leaving directory `/user/sbhatnag/gcc-3.4.2/objdir/gcc'
gmake[1]: *** [stage2_build] Error 2
gmake[1]: Leaving directory `/user/sbhatnag/gcc-3.4.2/objdir/gcc'
gmake: *** [bootstrap] Error 2

$ pwd
/user/sbhatnag/gcc-3.4.2/objdir/gcc/stage1
$ ../genmodes
ksh: ../genmodes: cannot execute

This program is generated by xgcc compiler(which should be from the GCC 
3.2.3 compiler) and I have no clue how to generate this like ar via 
binutils.


Saurabh



More information about the Gcc-help mailing list