Open tomjaguarpaw opened 3 years ago
I cannot immediately reproduce. Does LC_ALL=C cabal install lhs2tex
make a difference?
It does not (nor do I have any LC_
or LOCALE
variables set normally).
(I should also point out that this is on WSL2, which may make a difference. On the other hand I would expect WSL2 to be identical to any other Linux with the exception of very low level OS functionality, such as networking.)
Could you then rerun with cabal -v3
? The output should then contain a line such as
Redirecting build log to {handle:
/root/.cabal/logs/ghc-8.8.4/lhs2tex-1.24-60dc6bf83841046178b347c20c2d9db4a62f4cdf26a64d2dc8e965e73fe8b7f6.log}
for the build of lhs2tex
. Could you paste that redirected build log file?
Oh, I think I understand now. Can you try putting the GHC you want to build with into your PATH, so that ghci
starts the correct version, rather than just specifying via --with-ghc
?
When building the documentation, that setting is currently not respected, it seems. I'm also not sure how easy it is to fix, unfortunately.
Ah, that works. Thanks!
If it's not easy to fix the issue then a diagnostic message could be helpful, and in any case at least this issue will now appear on search engines and hopefully help anyone else who comes across the problem.
The problem is solved for me. Shall I close the issue?
Let's leave it open, as it's not really fixed.
Seems to be related to https://github.com/kosmikus/lhs2tex/issues/84 but I'm not seeing any particularly clear resolution to that issue.
EDIT: This is on WSL2, which I expect not to be relevant, but there's a small chance it is.