Hi Nix On your recomendation, I tried building GCC 3.4.2 with aobjdir at the same level as srcdir(gcc-3.4.2) ../gcc-3.4.2/configure --prefix=/user/sbhatnag/gccv3.4.2 --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --with-cpu=ultrasparc3 --enable-threads=posix --enable-languages=c,c++ creating cache ./config.cache checking host system type... sparc-sun-solaris2.8 checking target system type... sparc-sun-solaris2.8 checking build system type... sparc-sun-solaris2.8 checking for a BSD compatible install... ../gcc-3.4.2/install-sh -c *** This configuration is not supported in the following subdirectories: target-libf2c target-libffi target-boehm-gc target-zlib target-libjava zlib fastjar target-libobjc (Any other directories should still work fine.) checking for sparc-sun-solaris2.8-ar... no checking for ar... ar checking for sparc-sun-solaris2.8-as... no checking for as... as checking for sparc-sun-solaris2.8-dlltool... no checking for dlltool... dlltool checking for sparc-sun-solaris2.8-ld... /usr/ccs/bin/ld checking for sparc-sun-solaris2.8-nm... no checking for nm... nm checking for sparc-sun-solaris2.8-ranlib... no checking for ranlib... ranlib checking for sparc-sun-solaris2.8-windres... no checking for windres... windres checking for sparc-sun-solaris2.8-objcopy... no checking for objcopy... objcopy checking for sparc-sun-solaris2.8-objdump... no checking for objdump... objdump checking for sparc-sun-solaris2.8-ar... no checking for ar... ar checking for sparc-sun-solaris2.8-as... no checking for as... as checking for sparc-sun-solaris2.8-dlltool... no checking for dlltool... dlltool checking for sparc-sun-solaris2.8-ld... no checking for ld... ld checking for sparc-sun-solaris2.8-nm... no checking for nm... nm checking for sparc-sun-solaris2.8-ranlib... no checking for ranlib... ranlib checking for sparc-sun-solaris2.8-windres... no checking for windres... windres checking whether to enable maintainer-specific portions of Makefiles... no updating cache ./config.cache creating ./config.status creating Makefile gmake bootstrap CFLAGS=" -D__sparc_v9__ " CXXFLAGS=" -D__sparc_v9__ " GOT THE SAME ERROR AS BELOW!!! I think this has got to do with configuration difference from the old machine to new. Both have SUN5.8. What do you say? warm regards Saurabh Saurabh Bhatnagar/BLR/HTL 05/06/2005 09:17 AM To Nix <nix@xxxxxxxxxxxxx> cc "gcc-help@xxxxxxxxxxx" <gcc-help@xxxxxxxxxxx> Subject Re: ./genmodes: syntax error at line 1: `(' unexpected => whilebuilding gcc3.4.2 Hi Nix I am able to build GCC 3.2.3 by creating an objdir in the GCC-3.2.3 dir. Running ../configure . I was able to build GCCv3.4.2 earlier on another sun machine with SUN5.8 but different hardware. Thanks for your suggestion, I will try it when I get my next break. warm regards Saurabh Nix <nix@xxxxxxxxxxxxx> 05/05/2005 06:21 PM To Saurabh.Bhatnagar@xxxxxxxxxxxxxxxx cc "gcc-help@xxxxxxxxxxx" <gcc-help@xxxxxxxxxxx> Subject Re: ./genmodes: syntax error at line 1: `(' unexpected => whilebuilding gcc3.4.2 On 5 May 2005, Saurabh Bhatnagar uttered the following: > ./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 Please read the installation guide. You cannot build GCC in an objdir that is a subdirectory of the GCC source tree: you must build it in a parallel directory (e.g. /user/sbhatnag/gcc-build, running configure via a relative path, as ../gcc-3.4.2/configure). This has been true pretty much forever (certainly since gcc-2.7.2). (I don't know if this is causing your problem, but I've seen *exactly* that error when generating with an objdir as a subdirectory of the GCC source tree before.) -- `End users are just test loads for verifying that the system works, kind of like resistors in an electrical circuit.' - Kaz Kylheku in c.o.l.d.s