On Sat, 16 Apr 2022, Jonathan Wakely via Gcc-help wrote:
Just a guess, but maybe the Go build uses sed or another command like
that, and relies on the POSIX-conforming version in /usr/xpg4/bin
rather than the /usr/bin one. Try putting /usr/xpg4/bin in your path,
just after /opt/mrwgcc/bin
Aha! What a great guess -- that fixed it! Thank you so much!
Great! We should document this, if we don't already. And even better would
be if the build failed with a clear error mentioning the need for POSIX sed
(or whichever command it was).
https://gcc.gnu.org/install/specific.html#x-x-solaris2 says
"The build process works more smoothly with the legacy Solaris tools so,
if you have /usr/xpg4/bin in your PATH, we recommend that you place
/usr/bin before /usr/xpg4/bin for the duration of the build."
So we actually document the opposite...
--
Marc Glisse