During installation of gcc-4.1.2 ("gmake MAKE=gmake install") the following error occurred on our Solaris systems:
echo 'SYSTEM_HEADER_DIR="'"`echo /usr/include | sed -e :a -e "s,[^/]*/\.\.\/,," -e ta`"'"' \ > /slt/devel/toolsbase/gcc/4.1.2/sparc-sun-solaris2.10/lib/gcc/sparc-sun-solaris2.10/4.1.2/install-tools/mkheaders.conf sed: command garbled: s,[ /bin/sh: : cannot execute /bin/sh: /]*/../,, -e ta: not found gmake[2]: *** [install-mkheaders] Error 1 gmake[2]: Leaving directory `/var/tmp/gcc_powell_sparc-sun-solaris2.10_23537/objdir/gcc' gmake[1]: *** [install-gcc] Error 2 gmake[1]: Leaving directory `/var/tmp/gcc_powell_sparc-sun-solaris2.10_23537/objdir' gmake: *** [install] Error 2 I've checked the command: echo 'SYSTEM_HEADER_DIR="'"`echo /usr/include | sed -e :a -e "s,[^/]*/\.\.\/,," -e ta`"'"' It can be changed to: echo 'SYSTEM_HEADER_DIR="'`echo /usr/include | sed -e :a -e "s,[^/]*/\.\.\/,," -e ta`'"' I've just omitted the double quotes around the command substitution with backquotes. That way gcc 4.1.2 would install successfully on my machines. The command most probably originates from gcc/Makefile.in on line 3786 of 4616, but I haven't retried compilation with that change. -- Summary: make install fails due to erroneous nesting of echo commands Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: minor Priority: P3 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gabriel dot kaelin at visonys dot com GCC build triplet: i386-pc-solaris2.10, sparc-sun-solaris2.10 GCC host triplet: i386-pc-solaris2.10, sparc-sun-solaris2.10 GCC target triplet: i386-pc-solaris2.10, sparc-sun-solaris2.10 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30809