<div dir="ltr">After getting Sage out of the way, and installing Sphinx for good measure, ghc still refuses to build:<div><br></div><div>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<br>cat utils/runghc/runghc.wrapper >> inplace/bin/runghc<br>chmod +x inplace/bin/runghc<br>/usr/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<br>Running Sphinx v4.2.0<br><br>Configuration error:<br>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)<br><br>make[1]: *** [docs/users_guide/<a href="http://ghc.mk:16">ghc.mk:16</a>: docs/users_guide/build-html/users_guide/index.html] Error 2<br>make: *** [Makefile:128: all] Error 2<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 17, 2022 at 5:38 PM Luveh Keraph <<a href="mailto:1.41421@gmail.com">1.41421@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>It's because of the following that the issue arises:</div><div><br></div><div>1. Sphinx is an optional requirement for ghc, which is why I did not install it.<br></div><div>2. I had Sage already installed. The Sage installer adds /opt/SageMath/local/bin to the root PATH environment variable.</div><div>3. Because of this, the ghc build code finds a Sphinx utility that it needs in the wrong place.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 17, 2022 at 3:32 PM Erich Ritz via SlackBuilds-users <<a href="mailto:slackbuilds-users@slackbuilds.org" target="_blank">slackbuilds-users@slackbuilds.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">------- Original Message -------<br>
<br>
On Thursday, March 17th, 2022 at 2:52 PM, Luveh Keraph <<a href="mailto:1.41421@gmail.com" target="_blank">1.41421@gmail.com</a>> wrote:<br>
<br>
> In the process of building the Haskell compiler ghc I came across the following failure:<br>
><br>
> echo 'ghcprog="ghc-stage2"' >> "inplace/bin/runghc"<br>
><br>
> 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<br>
><br>
> cat utils/runghc/runghc.wrapper >> inplace/bin/runghc<br>
><br>
> chmod +x inplace/bin/runghc<br>
><br>
> /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<br>
><br>
> Running Sphinx v4.0.1<br>
><br>
> Configuration error:<br>
><br>
> 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)<br>
><br>
> make[1]: *** [docs/users_guide/<a href="http://ghc.mk:16" rel="noreferrer" target="_blank">ghc.mk:16</a>: docs/users_guide/build-html/users_guide/index.html] Error 2<br>
><br>
> make: *** [Makefile:128: all] Error 2<br>
><br>
> 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?<br>
<br>
>From ghc's README:<br>
<br>
Optional dependency: Sphinx (for building the documentation).<br>
<br>
<br>
<br>
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.<br>
<br>
Try cleansing your PATH environment variable at the very least and try building again.<br>
<br>
Erich<br>
_______________________________________________<br>
SlackBuilds-users mailing list<br>
<a href="mailto:SlackBuilds-users@slackbuilds.org" target="_blank">SlackBuilds-users@slackbuilds.org</a><br>
<a href="https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users" rel="noreferrer" target="_blank">https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users</a><br>
Archives - <a href="https://lists.slackbuilds.org/pipermail/slackbuilds-users/" rel="noreferrer" target="_blank">https://lists.slackbuilds.org/pipermail/slackbuilds-users/</a><br>
FAQ - <a href="https://slackbuilds.org/faq/" rel="noreferrer" target="_blank">https://slackbuilds.org/faq/</a><br>
<br>
</blockquote></div>
</blockquote></div>