Created attachment 848297 [details] Make file In order to compile ghc-9.0.2 I used my raspberry pi 4 containing 4 GB of ram. I used the following command under gentoo: # emerge -tav dev-lang/ghc All in all it took my raspberry pi 4 roughly 24 hours to compile ghc successfully. However, during the last part, after about 22 hours, the emerge of ghc failed due to the following reason having to do with a python configuration in the ghc package: Exception occurred: File "/usr/lib/python310/site-packages/sphinx/ext/extlinks.py", line 101, in role title = caption % part ~~~~~~~~^~~~~~ TypeError: not all arguments converted during string formatting I fixed this bug, by applying the necessary changes mentioned on the haskell gitlab page having the following commit id: 00dc51060881df81258ba3b3bdf447294618a4de I edited the file docs/users_guide/ghc_config.py.in: "extlinks = { - 'ghc-ticket': ('...%s', '#'), - 'ghc-wiki': ('...%s', '#'), + 'ghc-ticket': ('...%s', '%s'), + 'ghc-wiki': ('...', '#%s'), } libs_base_uri = '../libraries'" Unfortunately, I've already deleted the build.log. So, I can't upload this file. But my setting was as follows: gcc: 12.2.1_p20221126 selected python: python3.10 sphinx: 6.0.0
Do not CC arches on bug reports.
*** Bug 890648 has been marked as a duplicate of this bug. ***
Created attachment 848639 [details] build.log Just ran into this today, attached is build.log
Created attachment 848641 [details] emerge --info
*** Bug 892830 has been marked as a duplicate of this bug. ***
Created attachment 849874 [details, diff] Possible patch to fix issue. This patch has not been looked at for correctness in terms of its content, rather, it was created to enable GHC to be built and install as a package.
Using ~amd64, I also was unable to build ghc-9.0.2-r3 for the same reason as the original post. The original post mentioned a fix but did not provide a patch file. I created one albeit it is not the same as mentioned in the original post but does allow GHC to build and install. I have uploaded a patch ( see Possible patch to fix issue ). NOTE: I have not explored how correct or not this patch is... my aim was to have the ghc-9.0.2-r3 build and install.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a6e2ac2de6dfe8c28396239cc5d41a1f441a64a commit 9a6e2ac2de6dfe8c28396239cc5d41a1f441a64a Author: Sam James <sam@gentoo.org> AuthorDate: 2023-02-04 23:10:36 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-02-04 23:10:36 +0000 dev-lang/ghc: fix build w/ sphinx 6 Closes: https://bugs.gentoo.org/890563 Signed-off-by: Sam James <sam@gentoo.org> dev-lang/ghc/files/ghc-9.0.2-sphinx-6.patch | 41 +++++++++++++++++++++++++++++ dev-lang/ghc/ghc-9.0.2-r3.ebuild | 1 + 2 files changed, 42 insertions(+)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=978a89b79928342990c7da40c43a1cc9b84d3e7e commit 978a89b79928342990c7da40c43a1cc9b84d3e7e Author: Sam James <sam@gentoo.org> AuthorDate: 2023-02-05 15:18:33 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-02-05 15:18:58 +0000 dev-lang/ghc: unconditionally apply sphinx patch Closes: https://bugs.gentoo.org/890563 Signed-off-by: Sam James <sam@gentoo.org> dev-lang/ghc/ghc-9.0.2-r3.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)