------- Comment #7 from ebotcazou at gcc dot gnu dot org 2006-08-06 06:58 ------- Firstly, using /bin/sh to build the compiler is unsupported on Solaris. Please read http://gcc.gnu.org/install/specific.html#x-x-solaris2
Secondly, this works for everyone else so there's maybe something strange in your setup. Here's an excerpt of the configure log on a Solaris 2.5 box: Configuring in ./gcc configure: creating cache ./config.cache checking build system type... sparc-sun-solaris2.5.1 checking host system type... sparc-sun-solaris2.5.1 checking target system type... sparc-sun-solaris2.5.1 checking LIBRARY_PATH variable... ok checking GCC_EXEC_PREFIX variable... ok checking whether to place generated files in the source directory... no checking whether a default linker was specified... no checking whether a default assembler was specified... no checking for sparc-sun-solaris2.5.1-gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking whether gcc and cc understand -c and -o together... yes checking how to run the C preprocessor... gcc -E checking for inline... inline checking for egrep... egrep checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... no checking for stdint.h... no checking for unistd.h... yes checking for void *... yes checking size of void *... 4 checking for short... yes checking size of short... 2 checking for int... yes checking size of int... 4 checking for long... yes checking size of long... 4 checking for long long... yes checking for long long... (cached) yes checking size of long long... 8 checking for __int64... no checking whether gcc accepts -Wno-long-long... yes checking whether gcc accepts -Wno-variadic-macros... no checking whether gcc accepts -Wold-style-definition... yes checking whether gcc accepts -Wmissing-format-attribute... yes checking valgrind.h usability... no checking valgrind.h presence... no checking for valgrind.h... no checking whether make sets $(MAKE)... yes checking for gawk... no checking for mawk... no checking for nawk... nawk Later /bin/ksh /home/eric/svn/gcc-4_1-branch/gcc/mkconfig.sh tm.h nawk -f /home/eric/svn/gcc-4_1-branch/gcc/opt-gather.awk /home/eric/svn/gcc-4_1-branch/gcc/ada/lang.opt /home/eric/svn/gcc-4_1-branch/gcc/fortran/lang.opt /home/eric/svn/gcc-4_1-branch/gcc/c.opt /home/eric/svn/gcc-4_1-branch/gcc/common.opt/home/eric/svn/gcc-4_1-branch/gcc/config/sparc/sparc.opt > tmp-optionlist /bin/ksh /home/eric/svn/gcc-4_1-branch/gcc/../move-if-change tmp-optionlist optionlist echo timestamp > s-options nawk -f /home/eric/svn/gcc-4_1-branch/gcc/opt-functions.awk -f /home/eric/svn/gcc-4_1-branch/gcc/opth-gen.awk \ < optionlist > tmp-options.h /bin/ksh /home/eric/svn/gcc-4_1-branch/gcc/../move-if-change tmp-options.h options.h Could you please post the contents of your $PATH variable? -- ebotcazou at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot gnu dot | |org Status|UNCONFIRMED |WAITING Summary|can't bootstrap gcc / syntax|syntax error in gcc/opt- |error in gcc/opt-gather.awk |gather.awk http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28511