[Slackbuilds-users] Surprising failure building GHC

Luveh Keraph 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
install it.
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>
> wrote:
>
> > In the process of building the Haskell compiler ghc I came across the
> following failure:
> >
> > echo 'ghcprog="ghc-stage2"' >> "inplace/bin/runghc"
> >
> > echo 'export
> LD_LIBRARY_PATH="/tmp/SBo/ghc-8.10.4/libraries/process/dist-install/build:/tmp/SBo/ghc-8.10.4/libraries/directory/dist-install/build:/tmp/SBo/ghc-8.10.4/libraries/unix/dist-install/build:/tmp/SBo/ghc-8.10.4/libraries/time/dist-install/build:/tmp/SBo/ghc-8.10.4/libraries/filepath/dist-install/build:/tmp/SBo/ghc-8.10.4/libraries/bytestring/dist-install/build:/tmp/SBo/ghc-8.10.4/libraries/deepseq/dist-install/build:/tmp/SBo/ghc-8.10.4/libraries/array/dist-install/build:/tmp/SBo/ghc-8.10.4/libraries/base/dist-install/build:/tmp/SBo/ghc-8.10.4/libraries/integer-gmp/dist-install/build:/tmp/SBo/ghc-8.10.4/libraries/ghc-prim/dist-install/build:/tmp/SBo/ghc-8.10.4/rts/dist/build${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"'
> >> 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
> docs/users_guide/build-html/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[1]: *** [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.
>
> Erich
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20220317/197ab52e/attachment.htm>


More information about the SlackBuilds-users mailing list