make install fails with:

  echo 'SYSTEM_HEADER_DIR="'"`echo /usr/include | sed -e :a -e
"s,[^/]*/\.\.\/,," -e ta`"'"' \
        >
/test/gcc412/test/gcc-4.1.2/usr/local/lib/gcc/sparc-sun-solaris2.10/4.1.2/install-tools/mkheaders.conf
/bin/sh: : cannot execute
/bin/sh: /]*/../,, -e ta: not found
sed: command garbled: s,[


The problem is in install-mkheaders target. Expansion of SYSTEM_HEADER_DIR
within double quotes results in mismatched quotes. Shell then tries to evaluate
the sed pattern.

Fix:
File:
  BUILD-ROOT/host-sparc-sun-solaris2.10/gcc/Makefile
  (This Makefile was generated. Not sure from where.)
Change:
SYSTEM_HEADER_DIR = `echo $(NATIVE_SYSTEM_HEADER_DIR) | sed -e :a -e
"s,[^/]*/\.\.\/,," -e ta`
to:
SYSTEM_HEADER_DIR = `echo $(NATIVE_SYSTEM_HEADER_DIR) | sed -e :a -e
's,[^/]*/\.\.\/,,' -e ta`

(double quotes to single quotes)


-- 
           Summary: make install fails on Solaris 10 SPARC
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: craig dot lawson at centrify dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31177

Reply via email to