Hello, gmake install currently fails for me on mainline on solaris 10 if I use the default /bin/sh shell. The problem is with this line of gcc/Makefile.in: SYSTEM_HEADER_DIR = `echo @SYSTEM_HEADER_DIR@ | sed -e :a -e "s,[^/]*/\.\.\/,," -e ta` this variable is used inside double quotes, and solaris /bin/sh parses "`""`" as two strings containing a backquote (or something else, but not what you would expect anyway). I believe using single quotes in this line would help (I did not redo the whole configure+bootstrap, but I checked that solaris sh understood the modified line).
Actually, the problem seems to be caused by the '^' character, which is the equivalent of '|' for this shell. The solution is still the same, have single quotes (or protect the '^' with '\'). There seems to be two other occurences of an unprotected '^' line 3246 and 3856 in the same file, don't know if it may cause problems as well, but it would be safer to modify those too.
Solaris's /bin/sh is not a POSIX shell, please read http://gcc.gnu.org/install/ and try again.
Sure, it works with a posix shell. But it would not hurt to use single quotes around the constant string passed as an argument to sed, as is done in the rest of the file, if only for consistancy. It seems to be the only thing that fails now with this /bin/sh, and it used to work with it.
(In reply to comment #3) > Sure, it works with a posix shell. Except you did not read instructions so what is the difference?
(In reply to comment #4) > Except you did not read instructions so what is the difference? Ok say you forget I mentionned solaris /bin/sh. I just believe it would be more consistant to use single quotes instead of double quotes everywhere a constant string is passed to sed (now it is done everywhere except in 3 places) in this file. The fact that it makes solaris /bin/sh work is a mere coincidence. It is just code cleanup.
This is a duplicate of 27843 (Solaris and Tru64 /bin/sh share the same issue), which has been resolved as fixed. :-) Someone empowered enough please reflect this in the settings, thank you!
This happened me on solaris 10 (even with reading the manual!) make install had worked for me previously on solais without having to set CONFIG_SHELL so it is something that might trip people up. I agree that this is a duplicate of 27843.
The comments already say this bug is a duplicate (of a now fixed bug), I am just marking it for cleanup. Hope that is the right thing to do... *** This bug has been marked as a duplicate of 27843 ***