Bug 223249 - lang/ghc fails to build
Summary: lang/ghc fails to build
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-haskell (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-26 03:48 UTC by bye
Modified: 2018-02-04 12:16 UTC (History)
4 users (show)

See Also:
tcberner: maintainer-feedback+


Attachments
sphinx-err-888V8h (2.48 KB, text/x-log)
2017-10-26 03:48 UTC, bye
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description bye 2017-10-26 03:48:14 UTC
Created attachment 187482 [details]
sphinx-err-888V8h

I've attached the log file, here's an output from the compilation process:
/usr/ports/lang/ghc/work/ghc-8.0.2/docs/users_guide/glasgow_exts.rst:13141: WARNING: Could not lex literal_block as "haskell". Highlighting skipped.
/usr/ports/lang/ghc/work/ghc-8.0.2/docs/users_guide/packages.rst:839: WARNING: Could not lex literal_block as "haskell". Highlighting skipped.    
writing output... [ 62%] profiling                                                                                                                
Exception occurred:
  File "/usr/local/lib/python2.7/site-packages/docutils/writers/_html_base.py", line 671, in depart_document
    assert not self.context, 'len(context) = %s' % len(self.context)
AssertionError: len(context) = 1
The full traceback has been saved in /usr/ports/lang/ghc/work/ghc-8.0.2/tmp/sphinx-err-888V8H.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
gmake[6]: *** [docs/users_guide/ghc.mk:18: docs/users_guide/build-html/users_guide/index.html] Error 1
gmake[6]: *** Deleting file 'docs/users_guide/build-html/users_guide/index.html'
gmake[5]: *** [Makefile:134: all] Error 2
gmake[5]: Leaving directory '/usr/ports/lang/ghc/work/ghc-8.0.2'
Comment 1 Tobias C. Berner freebsd_committer freebsd_triage 2017-10-26 04:57:32 UTC
Hi there

is your sphinx up to date? If I recall correctly, it needed to be patched for ghc-8.0.2.


mfg Tobias
Comment 2 bye 2017-10-26 08:07:42 UTC
(In reply to Tobias C. Berner from comment #1)

That was the issue, I needed to update py-sphinx, while I'm here, is it possible to set the Makefile option so that the sphinx version is >= required? 

lang/ghc takes a veeery long time to compile and for it to fail because of an issue like this is a bit troublesome.
Comment 3 Gabor Pali freebsd_committer freebsd_triage 2017-10-26 20:50:54 UTC
(In reply to bcomputerguy from comment #2)

There was only a backport of a py-sphinx fix (#3212) added to the respective port, without changing the actual version but the port revision -- so I did not really see a reason to set the version on the dependency.  Anyhow, it was committed to both head and the latest quarterly branch around the lang/ghc update (that introduced this dependency), so if you had an up-to-date ports tree, this should not have been an issue.
Comment 4 Walter Schwarzenfeld 2018-01-19 01:27:19 UTC
Did I understand right, this is solved and could be closed?
Comment 5 Gleb Popov freebsd_committer freebsd_triage 2018-02-04 10:56:47 UTC
lang/ghc builds fine for a pretty long time. I think this can be closed.