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

Fails to build on Windows with GHC 9.6.1 #986

Closed
Minoru opened this issue Apr 25, 2023 · 2 comments · Fixed by #997
Closed

Fails to build on Windows with GHC 9.6.1 #986

Minoru opened this issue Apr 25, 2023 · 2 comments · Fixed by #997
Labels

Comments

@Minoru
Copy link
Collaborator

Minoru commented Apr 25, 2023

I attempted to add GHC 9.6.1 to our CI config, but the build of 6791e77 fails on Windows 2022 with:

[51 of 56] Compiling Hakyll.Web.Feed  ( lib\Hakyll\Web\Feed.hs, D:\\a\hakyll\hakyll\dist-newstyle\build\x86_64-windows\ghc-9.6.1\hakyll-4.15.1.1\build\Hakyll\Web\Feed.o )
ghc-9.6.1.exe:  | C:\sr\ghc-9.6.1\network-3.1.2.8-8ccbc4dc50a14d19b54bceabfbac9ee74837a109\lib\libHSnetwork-3.1.2.8-8ccbc4dc50a14d19b54bceabfbac9ee74837a109.a: unknown symbol `__mingw_vsprintf'
ghc-9.6.1.exe:  | C:\sr\ghc-9.6.1\network-3.1.2.8-8ccbc4dc50a14d19b54bceabfbac9ee74837a109\lib\libHSnetwork-3.1.2.8-8ccbc4dc50a14d19b54bceabfbac9ee74837a109.a: unknown symbol `getWSErrorDescr'
ghc-9.6.1.exe:  | C:\sr\ghc-9.6.1\network-3.1.2.8-8ccbc4dc50a14d19b54bceabfbac9ee74837a109\lib\libHSnetwork-3.1.2.8-8ccbc4dc50a14d19b54bceabfbac9ee74837a109.a: unknown symbol `networkzm3zi1zi2zi8zm8ccbc4dc50a14d19b54bceabfbac9ee74837a109_NetworkziSocketziInternal_throwSocketError1_info'
ghc-9.6.1.exe:  | C:\sr\ghc-9.6.1\network-3.1.2.8-8ccbc4dc50a14d19b54bceabfbac9ee74837a109\lib\libHSnetwork-3.1.2.8-8ccbc4dc50a14d19b54bceabfbac9ee74837a109.a: unknown symbol `networkzm3zi1zi2zi8zm8ccbc4dc50a14d19b54bceabfbac9ee74837a109_NetworkziSocketziSyscall_zdwsocket_closure'
ghc-9.6.1.exe:  | C:\sr\ghc-9.6.1\wai-3.2.3-59fda19bdf0e39e8d6b4999a23c46ed371d20a5d\lib\libHSwai-3.2.3-59fda19bdf0e39e8d6b4999a23c46ed371d20a5d.a: unknown symbol `networkzm3zi1zi2zi8zm8ccbc4dc50a14d19b54bceabfbac9ee74837a109_NetworkziSocketziInfo_zdwzdcshowsPrec2_closure'
ghc-9.6.1.exe:  | C:\sr\ghc-9.6.1\wai-app-static-3.1.7.4-a363cbf89679d48a971b5fbeeb955a12780ebf4b\lib\libHSwai-app-static-3.1.7.4-a363cbf89679d48a971b5fbeeb955a12780ebf4b.a: unknown symbol `waizm3zi2zi3zm59fda19bdf0e39e8d6b4999a23c46ed371d20a5d_NetworkziWaiziInternal_zdtcResponseReceived_closure'
ghc-9.6.1.exe:  | D:\a\hakyll\hakyll\dist-newstyle\build\x86_64-windows\ghc-9.6.1\hakyll-4.15.1.1\build\Hakyll\Core\Configuration.o: unknown symbol `waizmappzmstaticzm3zi1zi7zi4zma363cbf89679d48a971b5fbeeb955a12780ebf4b_WaiAppStaticziTypes_zdtcStaticSettings_closure'
ghc-9.6.1.exe: Could not load Object Code D:\a\hakyll\hakyll\dist-newstyle\build\x86_64-windows\ghc-9.6.1\hakyll-4.15.1.1\build\Hakyll\Core\Configuration.o.


<no location info>: error: 
[52 of 56] Compiling Paths_hakyll     ( D:\\a\hakyll\hakyll\dist-newstyle\build\x86_64-windows\ghc-9.6.1\hakyll-4.15.1.1\build\autogen\Paths_hakyll.hs, D:\\a\hakyll\hakyll\dist-newstyle\build\x86_64-windows\ghc-9.6.1\hakyll-4.15.1.1\build\Paths_hakyll.o )
[53 of 56] Compiling Hakyll.Check     ( lib\Hakyll\Check.hs, D:\\a\hakyll\hakyll\dist-newstyle\build\x86_64-windows\ghc-9.6.1\hakyll-4.15.1.1\build\Hakyll\Check.o )
[54 of 56] Compiling Hakyll.Commands  ( lib\Hakyll\Commands.hs, D:\\a\hakyll\hakyll\dist-newstyle\build\x86_64-windows\ghc-9.6.1\hakyll-4.15.1.1\build\Hakyll\Commands.o )
[55 of 56] Compiling Hakyll.Main      ( lib\Hakyll\Main.hs, D:\\a\hakyll\hakyll\dist-newstyle\build\x86_64-windows\ghc-9.6.1\hakyll-4.15.1.1\build\Hakyll\Main.o )
Error: cabal.exe: Failed to build hakyll-4.15.1.1 (which is required by
test:hakyll-tests from hakyll-4.15.1.1 and exe:hakyll-init from
hakyll-4.15.1.1).

Error: Process completed with exit code 1.

There is a report against the network package haskell/network#544, but it was closed without any satisfactory resolution. It's possible that GitHub Actions is the one at fault, but I'm not sure. FWIW, the build passes on Ubuntu 22.04.

@Minoru Minoru added the bug label Apr 25, 2023
@mpilgrem
Copy link

There is also this issue in the Cabal repository: haskell/cabal#8858. I am getting similar error messages with the new GHC 9.4.5. I don't think it is GitHub Actions-related; I'm getting these messages locally.

@mpilgrem
Copy link

I did ask at GHC's repository: https://gitlab.haskell.org/ghc/ghc/-/issues/23309.

Minoru added a commit to Minoru/hakyll that referenced this issue Aug 6, 2023
The issue in the network package seem to be fixed, so let's retry the
build.

Fixes jaspervdj#986.
Minoru added a commit that referenced this issue Aug 6, 2023
The issue in the network package seem to be fixed, so let's retry the
build.

Fixes #986.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants