[Slackbuilds-users] Surprising failure building GHC
1.41421 at gmail.com
Thu Mar 17 23:38:36 UTC 2022
It's because of the following that the issue arises:
1. Sphinx is an optional requirement for ghc, which is why I did not
2. I had Sage already installed. The Sage installer adds
/opt/SageMath/local/bin to the root PATH environment variable.
3. Because of this, the ghc build code finds a Sphinx utility that it needs
in the wrong place.
On Thu, Mar 17, 2022 at 3:32 PM Erich Ritz via SlackBuilds-users <
slackbuilds-users at slackbuilds.org> wrote:
> ------- Original Message -------
> On Thursday, March 17th, 2022 at 2:52 PM, Luveh Keraph <1.41421 at gmail.com>
> > In the process of building the Haskell compiler ghc I came across the
> following failure:
> > echo 'ghcprog="ghc-stage2"' >> "inplace/bin/runghc"
> > echo 'export
> >> inplace/bin/runghc
> > cat utils/runghc/runghc.wrapper >> inplace/bin/runghc
> > chmod +x inplace/bin/runghc
> > /opt/SageMath/local/bin/sphinx-build -b html -d
> docs/users_guide/.doctrees-html -w docs/users_guide/.log -n -D
> latex_paper_size=letter docs/users_guide
> > Running Sphinx v4.0.1
> > Configuration error:
> > There is a syntax error in your configuration file: (unicode error)
> 'unicodeescape' codec can't decode bytes in position 1-2: truncated \uXXXX
> escape (conf.py, line 110)
> > make: *** [docs/users_guide/ghc.mk:16:
> docs/users_guide/build-html/users_guide/index.html] Error 2
> > make: *** [Makefile:128: all] Error 2
> > What has Sage got to do with ghc? It is most certainly not a
> prerequisite. Why is a Sage utility being invoked here at all, and
> resulting in an error to boot?
> From ghc's README:
> Optional dependency: Sphinx (for building the documentation).
> It's finding Sphinx in /opt/SageMath/local/bin - which means you aren't
> building in a clean environment. Also note Sphinx on SBo is 4.2.0, but
> yours is 4.0.1.
> Try cleansing your PATH environment variable at the very least and try
> building again.
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SlackBuilds-users