composewell / streamly

High performance, concurrent functional programming abstractions
https://streamly.composewell.com
Other
856 stars 64 forks source link

Fix the appveyor CI #2594

Closed adithyaov closed 7 months ago

adithyaov commented 11 months ago

The appveyor CI is failing because of Streamly.Internal.Data.Serialize module. Having template haskell splices in it for some reason causes the build to fail with the following error:

...
streamly-core      > [ 77 of 101] Compiling Streamly.Internal.Data.Serialize.TH
streamly-core      > [ 78 of 101] Compiling Streamly.Internal.Data.Serialize
streamly-core      > ghc-9.2.7.exe: addLibrarySearchPath: C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\msys2-20221216\mingw64\lib (Win32 error 3): The system cannot find the path specified.
streamly-core      > ghc-9.2.7.exe: addLibrarySearchPath: C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\msys2-20221216\mingw64\bin (Win32 error 3): The system cannot find the path specified.
streamly-core      > ghc-9.2.7.exe: addLibrarySearchPath: C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\msys2-20221216\mingw64\lib (Win32 error 3): The system cannot find the path specified.
streamly-core      > ghc-9.2.7.exe: addLibrarySearchPath: C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\msys2-20221216\mingw64\bin (Win32 error 3): The system cannot find the path specified.
streamly-core      > ghc-9.2.7.exe: addLibrarySearchPath: C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\msys2-20221216\mingw64\lib (Win32 error 3): The system cannot find the path specified.
streamly-core      > ghc-9.2.7.exe: addLibrarySearchPath: C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\msys2-20221216\mingw64\bin (Win32 error 3): The system cannot find the path specified.
streamly-core      > ghc-9.2.7.exe: addLibrarySearchPath: C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\msys2-20221216\mingw64\lib (Win32 error 3): The system cannot find the path specified.
streamly-core      > ghc-9.2.7.exe: addLibrarySearchPath: C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\msys2-20221216\mingw64\bin (Win32 error 3): The system cannot find the path specified.
streamly-core      > ghc-9.2.7.exe: addLibrarySearchPath: C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\msys2-20221216\mingw64\lib (Win32 error 3): The system cannot find the path specified.
streamly-core      > ghc-9.2.7.exe: addLibrarySearchPath: C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\msys2-20221216\mingw64\bin (Win32 error 3): The system cannot find the path specified.
streamly-core      > ghc-9.2.7.exe: addLibrarySearchPath: C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\msys2-20221216\mingw64\lib (Win32 error 3): The system cannot find the path specified.
streamly-core      > ghc-9.2.7.exe: addLibrarySearchPath: C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\msys2-20221216\mingw64\bin (Win32 error 3): The system cannot find the path specified.
streamly-core      > ghc-9.2.7.exe:  | C:\pkg\core\.stack-work\dist\8a54c84f\build\Streamly\Internal\Data\Time\Clock\Type.o: unknown symbol `clock_gettime_win32_threadtime'
streamly-core      > ghc-9.2.7.exe: Could not load Object Code C:\pkg\core\.stack-work\dist\8a54c84f\build\Streamly\Internal\Data\Time\Clock\Type.o.
streamly-core      > 
streamly-core      > 
streamly-core      > <<ghc: 99960563632 bytes, 2634 GCs, 103630630/184906440 avg/max bytes residency (43 samples), 526M in use, 0.000 INIT (0.000 elapsed), 85.875 MUT (97.698 elapsed), 39.141 GC (39.333 elapsed) :ghc>>
Error: [S-7282]
       Stack failed to execute the build plan.

       While executing the build plan, Stack encountered the error:

       [S-7011]
       While building package streamly-core-0.2.0 (scroll up to its section to
       see the error) using:
       C:\pkg\core\.stack-work\dist\8a54c84f\setup\setup --verbose=1 --builddir=.stack-work\dist\8a54c84f build lib:streamly-core --ghc-options ""
       Process exited with code: ExitFailure 1 
Error: Command [stack --no-terminal --stack-yaml stack.yaml build --haddock --no-haddock-deps --test --bench --no-run-benchmarks --ghc-options="-Werror" --flag streamly-benchmarks:-opt] failed. Exiting.
Command exited with code 1

This is an irrelevant error. Find the problem and fix the CI.

Similar problem in the past: https://gitlab.haskell.org/ghc/ghc/-/issues/14183 (This may not be relevant but the problem looks awfully similar)