Error when building gcc w/ Go language on Solaris

Jonathan Wakely jwakely.gcc@gmail.com
Sat Apr 16 23:17:19 GMT 2022


On Sat, 16 Apr 2022, 20:47 Marc Glisse, <marc.glisse@inria.fr> wrote:

> 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...
>

Ouch.


More information about the Gcc-help mailing list