Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to GHC 9.4.1 #20

Closed
wants to merge 9 commits into from
Closed

Upgrade to GHC 9.4.1 #20

wants to merge 9 commits into from

Conversation

tfausak
Copy link
Owner

@tfausak tfausak commented Aug 17, 2022

No description provided.

@tfausak
Copy link
Owner Author

tfausak commented Aug 17, 2022

The build failed on Windows: https://github.com/tfausak/monadoc/runs/7878716092?check_suite_focus=true#step:17:259

Configuring library for double-conversion-2.0.4.1..
cabal.exe: Missing dependencies on foreign libraries:

  • Missing (or bad) C libraries: stdc++-6, gcc_s_seh-1

I think that's this problem: haskell/text#461 (comment)

"editor.rulers": [
80
],
"purple-yolk.haskell.formatter.command": "docker/devcontainer/cabal-shim.sh ormolu --no-cabal",
"purple-yolk.haskell.formatter.command": "false",
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"purple-yolk.haskell.interpreter.command": "cabal repl --repl-options -ddump-json",
"purple-yolk.haskell.linter.command": "docker/devcontainer/cabal-shim.sh hlint --json --no-exit-code -",
"purple-yolk.haskell.linter.onSave": true
"purple-yolk.haskell.linter.command": "false",
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tfausak
Copy link
Owner Author

tfausak commented Aug 22, 2022

Build failed on Windows because of the entropy package: haskell/entropy#73

@tfausak
Copy link
Owner Author

tfausak commented Aug 22, 2022

Huh, now the linker is failing on Windows: https://github.com/tfausak/monadoc/runs/7951924132?check_suite_focus=true#step:18:407

ld.lld: error: undefined symbol: zzlibzm0zi6zi3zi0zm7a1fd273333adaed1e8191ca71010df5e5891eaf_CodecziCompressionziZZlibziStream_WindowBits_con_info
>>> referenced by libHShttp-client-0.7.13.1-14e9e8816a02ad856cc68a5a21b9fdfff5874186.a(Body.o):(httpzmclientzm0zi7zi13zi1zm14e9e8816a02ad856cc68a5a21b9fdfff5874186_NetworkziHTTPziClientziBody_makeGzzipReader3_closure)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ghc-9.4.1.exe: `clang.exe' failed in phase `Linker'. (Exit code: 1)
cabal.exe: Failed to build exe:monadoc from monadoc-0.2022.8.9.
Failed to build test:monadoc-test-suite from monadoc-0.2022.8.9.

There are many other linker errors. That was just the last one in the logs. The problem is not specific to http-client.

This is necessary to avoid linker errors on Windows.
<https://gitlab.haskell.org/ghc/ghc/-/issues/22085>
@tfausak
Copy link
Owner Author

tfausak commented Aug 22, 2022

The build succeeds now. I think I'll hold off merging this until HLint and Ormolu support GHC 9.4. Otherwise I'll have a partially-working development environment.

@tfausak
Copy link
Owner Author

tfausak commented Sep 30, 2022

Done in 63a4d11.

@tfausak tfausak closed this Sep 30, 2022
@tfausak tfausak deleted the 2022-08-16-ghc-9.4.1 branch September 30, 2022 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant