[Slackbuilds-users] Surprising failure building GHC

Erich Ritz erich.public at protonmail.com
Thu Mar 17 21:32:11 UTC 2022


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


More information about the SlackBuilds-users mailing list